Subject:
|
Re: Time available during 1 kHz system interrupt?
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 2 Nov 1999 17:18:40 GMT
|
Original-From:
|
Chuck McManis <cmcmanis@mcmanisANTISPAM.com>
|
Viewed:
|
821 times
|
| |
| |
At 07:47 AM 11/2/99 -0500, Bruce Moore wrote:
> Interesting discussion but it raises a few more questions.
>
> Are there any (bad) side effects when user code that is inserted in the ISR
> takes longer to execute than the 1 msec interrupt cycle.
Mostly PWM will get jerkier. If you sit to long in there and the motors
happen to be 'on' then you can go faster than you would like :-)
You also "lose time" in the sense that msleep is no longer accurate so
there are issues with tasks that are waiting a set number of milleseconds
to execute.
In general, if you are taking too much time in the ISR then either:
1) You need a faster processor
2) You need to re-evalutate what you need to do at
"interrupt time" vs "user time"
--Chuck
|
|
Message is in Reply To:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|