I've got a dmtimer running (with interrupts), but I'm having some trouble verifying my configuration and there seems to be a difference between the StarterWare code and the TRM.
The TRM states that the clock rate is calculated as: (0xFFFFFFFF - TLDR + 1) * clock_period * prescaler_val
However, the sysdelay code in the StarterWare (which uses the 24MHz input clock with prescaler disabled) sets the TLDR value to 0x5DC0 (24000) exactly rather than 0x5DBF (23999) which I would expect if you wanted the equation in the TRM to give you 0.001 seconds exactly.
I realize that the difference is 24 millionths of a second, however I don't want this off-by-one to bite me if I start working with other clock inputs/prescalers in the future. I tried to measure it using a gpio/oscilloscope, however it doesn't have enough accuracy to detect the difference between the two possible values.
I tried setting up the 32.768kHz internal clock source where the difference would be more obvious, however the interrupt only goes off once (and then never again) and I can't figure out why, so that's not helping either.
If somebody could clarify this I would greatly appreciate it. I'm running on a beaglebone black, rev A5B.
Matt T