Ttelmah
Joined: 11 Mar 2010 Posts: 20058
|
|
Posted: Sun Sep 24, 2017 1:23 pm |
|
|
You disable_interrupts(GLOBAL), but never re-enable it....
Then as far as I understand it the pulse should only be triggered by the edge. Sp the timer interrupt never wants to be enabled in the main.
Haven't worked out your timer count values, but on your original code, dms could only take about 8 values. I'd just have a look up table for the timer values for a limited number of entries. Faster and easier. |
|