[sdiy] DsPIC timer issue when used as DCO!
Dave Manley
dlmanley at sonic.net
Thu Dec 10 22:04:22 CET 2009
Tom Wiltshire wrote:
>
> No, you can do that on dsPIC too. There's TMRx registers that store the
> current timer count. You can set those to whatever you like.
> The tricky bit is the working out *what* the correct value should be.
How about: write the TMRx reg with a value a few ticks less than the
current Period Register. In a few ticks the timer will reset. Then
write the new period value.
-Dave
More information about the Synth-diy
mailing list