Can you have a constant so the user may choose to count in seconds or
milliseconds? This way the ISR won't run as often if the user chooses.

Matt.

On Aug 5, 7:56 am, Eur van Andel <[email protected]> wrote:
> On 2 Aug 2010, at 06:36 , vasile surducan wrote:
>
> > hi Eur,
>
> > Why did you stop on all yours/Roman Black bresenham libraries to  
> > generate 1 second?
>
> Because that is what I need.
>
> > If you generate 1milisecond (or less) instead, you have a real time  
> > library process usefull for something else than clock, then maybe  
> > the question of how long  the ISR can be, may be actual.
>
> I might be able to do that. But do tell me what you want.
>
> Should I make a millisecond word that counts to 1000?
> Should I keep the second, or will you or others check every second  
> and update the clock?
>
> I'm not too fond of doing calendar stuff in an isr. IMHO an ISR  
> should not be < 100 asm instructions, preferably < 20.
> My old rtc_isr_tmr0 was 19 instructions, the new one is 69. This is  
> not an improvement, I think.
>
> Concerning the length: a millisecond counter, with a 100-instruction  
> ISR spends 10% of the time in the ISR, if running on 4 MHz.
>
>
>
>
>
> > Vasile
>
> > On Sat, Jul 31, 2010 at 3:13 PM, <[email protected]> wrote:
> > Revision: 2170
> > Author: eur.van.andel
> > Date: Sat Jul 31 15:12:29 2010
> > Log:  made a new all-jal, 5 line RTC ISR with TMR3, needs 50 lines  
> > comment
>
> >http://code.google.com/p/jallib/source/detail?r=2170
>
> > Added:
> >  /trunk/include/jal/rtc_isr_tmr3.jal
> > Modified:
> >  /trunk/include/jal/rtc_isr_tmr0.jal
>
> > --
> > You received this message because you are subscribed to the Google  
> > Groups "jallib" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to jallib
> > [email protected].
> > For more options, visit this group athttp://groups.google.com/
> > group/jallib?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google  
> > Groups "jallib" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to jallib
> > [email protected].
> > For more options, visit this group athttp://groups.google.com/
> > group/jallib?hl=en.
>
> ---
> ir EE van Andel [email protected]  http://www.fiwihex.nl
> Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
> tel+31-546-491106 fax+31-546-491107

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to