So you need a delay that relies on time passed rather then cpu cycles?
Timer0_isr_interval does something like that for longer delays. For
short, blocking delays, you should monitor a time. Please put the code
into a library since this is the one that is still missing.

2010/2/27 Sunish Issac <[email protected]>:
> I know delay.jal and am using it.But, delay.jal in turn uses _usec_delay
> which as per documentation is affected by any ISR usage.
>
> Sunish
>
> On Sat, Feb 27, 2010 at 10:47 PM, Joep Suijs <[email protected]> wrote:
>>
>> Hi Sunish,
>>
>> Do you know delay.jal? Is this accurate enough? If not, what kind of
>> accuracy do you need?
>>
>> Joep
>>
>> 2010/2/27 Sunish Issac <[email protected]>:
>> > Recently I too had this issue where variable parameter was required.
>> > Accurate delay with variable param would be great.
>> >
>> > Sunish
>> >
>> > On Fri, Feb 26, 2010 at 12:05 PM, Sebastien Lelong
>> > <[email protected]> wrote:
>> >>
>> >> Hi Matt,
>> >>
>> >> 2010/2/25 mattschinkel <[email protected]>
>> >>>
>> >>> I use _usec_delay for everything because I do not like the delay
>> >>> library.
>> >>
>> >> I'm not using _usec_delay for everything because it takes a constant as
>> >> parameter, and I often need to produce variable delay according to
>> >> what's
>> >> happening within the PIC. Don't you need this ?
>> >> Cheers,
>> >> Seb
>> >>
>> >> --
>> >> 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.
>> >
>> > --
>> > 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.
>> >
>>
>> --
>> 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.
>>
>
> --
> 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.
>

-- 
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