Generating Timer Interrupt between 1BPM to 999BPM
Is there a way to use timers to trigger an interrupt at between 1.00BPM and 999.00BPM, with a 2 decimal resolution? I'm currently using an STM32F373 with 8Mhz clock for my timers, and set the Timer Prescaller to 8000-1, and set the ARR register to dynamically set the BPM. The problem is I get very high resolution at lower BPM settings ( ARR = 60000 ), but not enough resolution at higher BPM ( Incrementing ARR from 100 to 101 results in BPM changing from 594.05 to 588.23. ) I would like to be able to set the timer to generate BPMs between 594 and 588 as well. Do I need to combine a second cascading timer to create an offset, or do I need to somehow change the Prescaler register as well to obtain a linear change?
Thanks!
