The correct picture is this one. PULSOUT is in the interrupt handler only after the RESET TIMER action. Why is this bad?
![]()
The correct picture is this one. PULSOUT is in the interrupt handler only after the RESET TIMER action. Why is this bad?
![]()
The general rule is to get in and out of an interupt as fast as possible. But in your case, the problem is a bit different. the pulse for the servo's should be every 20 msec. you have an interupt every 5 msec. so you are updating the servo 4 times as fast as you want to.
-Bert
The glass is not half full or half empty, Its twice as big as needed for the job!
http://foamcasualty.com/ - Warbird R/C scratch building with foam!
Bookmarks