Revision: 1654
Author: [email protected]
Date: Thu Feb 4 21:10:09 2010
Log: small modification to isr
http://code.google.com/p/jallib/source/detail?r=1654
Modified:
/trunk/include/external/motor/servo/servo.jal
=======================================
--- /trunk/include/external/motor/servo/servo.jal Thu Feb 4 00:50:54 2010
+++ /trunk/include/external/motor/servo/servo.jal Thu Feb 4 21:10:09 2010
@@ -116,7 +116,11 @@
procedure _servo_isr() is
pragma interrupt
-
+
+ if ! INTCON_TMR0IF then -- Exit if it is not a timer0 interupt
+ return
+ end if
+
if _servo_isr_count == 0 then -- do pulse high width
INTCON_TMR0IF = off -- reset counter
tmr0 = _servo_pulse[_servo_number_count] -- set timer to pulse
high width
--
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.