This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Use lower frequency(32 KHz) to measure higher frequency(8 MHz) ticks/counts for 1 second

Hi all,

I want to measure higher frequency (8 MHz) count/ticks by using the lower frequency (32 KHz) is there is any method to do it or any examples.

I want to measure the count as shown in the figure.

Thanks in advance..

Parents
  • Hi,

    There is no count mode on the low frequency timers (RTC), this is only available in the high frequency TIMER peripherals. Also, how should the lower frequency timer be able to count the higher frequency signal? You would lose all the ticks of the high frequency signel that is between each clock cycle of the low frequency timer.

    Best regards,
    Jørgen

  • My bad. I wanted to measure a lower frequency using higher frequency. The intention is to calibrate the low frequency clock (32kHz LFCLK) using high frequency clock (64MHz HFCLK). I understand there could be 2 ways to do it

    1) Count the ticks of HFCLK in a single LFCLK period. Hence had asked this question

    2) Additionally, i also figured out that there is a calibration timer for this purpose (which uses CTSTART,CTSTOP,CTTO). I believe this would be a more straightforward way of achieving what i intend to do.

    Is there any sample code that i could look into for this calibration, especially using approach 2.

    Thanks,

Reply
  • My bad. I wanted to measure a lower frequency using higher frequency. The intention is to calibrate the low frequency clock (32kHz LFCLK) using high frequency clock (64MHz HFCLK). I understand there could be 2 ways to do it

    1) Count the ticks of HFCLK in a single LFCLK period. Hence had asked this question

    2) Additionally, i also figured out that there is a calibration timer for this purpose (which uses CTSTART,CTSTOP,CTTO). I believe this would be a more straightforward way of achieving what i intend to do.

    Is there any sample code that i could look into for this calibration, especially using approach 2.

    Thanks,

Children
No Data
Related