question about IntervalTimer

Status
Not open for further replies.

Dimitree

Member
hello
I'm trying to add a precise clock to my program (on Teensy 3.5),
essentially I need a clock with <=1mS precision to periodically trigger some MIDI events.
The thing is, the time (in mS) is not always constant, but could be varied with a potentiometer, even while the clock is running.
Also, I cannot do this task by polling, since my main loop contains some blocking routines that would interfere quite a lot with precision.

I used to generate 16bit precision (variable) clock in Arduino Uno by manually setting its 16bit timer,

but I'm wondering, can I do the same using IntervalTimer?
or should I manually set one of the timers? if so, is there some docs about those timers besides the Teensy 3.5 uC datasheet?
 
Status
Not open for further replies.
Back
Top