Hi Joerg,
Nope, no need to disable interrupts when using DIV32 with DT_INTS.
System variables are saved and restored on each Interrupt.
ON INTERRUPT GOTO doesn't do that, so it has problems.
Good question though.
<br>
Hi Joerg,
Nope, no need to disable interrupts when using DIV32 with DT_INTS.
System variables are saved and restored on each Interrupt.
ON INTERRUPT GOTO doesn't do that, so it has problems.
Good question though.
<br>
DT
Hi Darrel,
very good, thank you for your very fast reply.
Best Regards,
Joerg
Your code doesn't resemble the code example in the manual:
b = 500
c = 1000
dummy = b * c
a = DIV32 100
Your code:
Periode2 = Periode / 2
Dummy = 2500*3000
Vitesse = DIV32 Periode2
The right numbers are not on the stack when the DIV32 occurs.
Last edited by Brock; - 10th November 2007 at 00:54.
Bookmarks