exact BPM clock in Shruthi
  • How to generate the exact BPM clock in Shruthi. I have tried in 1msec task. But all odd clock div is inaccurate (see my code)

    bpm value from 40-240
    note div from 1/1, 1/2, 1/3, 1/4, 1/6, 1/8, 1/12, 1/16, 1/24, 1/32, 1/48

  • My code:

    BPM_code.txt
    1K
  • Now.. i find a better result :)

    I have calc the bpm clock in the DAC out task (40KHz interrupt) with higher accuracy..

    bpm_isr.txt
    2K