1 Reply Latest reply on Nov 22, 2018 6:42 PM by ring

    Clock Calibration Counters

    vaidyab_3601531

      Hi,

      The Technical Reference Manual for pSoc6 mentions that pSoC6 has builtin hardware calibration counters. Thus high frequency clock could be used to accurately measure the low frequency clock. Where do i get further details for performing this calibration.

       

      Regards,

      Girish

        • 1. Re: Clock Calibration Counters
          ring

          Girish,

           

          You can open a creator project, and search the API : Cy_SysClk_StartClkMeasurementCounters

           

          cy_en_sysclk_status_t Cy_SysClk_StartClkMeasurementCounters(cy_en_meas_clks_t clock1, uint32_t count1, cy_en_meas_clks_t clock2)

           

          Then you can read the API description. The API description tells us how to do it.

           

          1: call the below API first:

          cy_en_sysclk_status_t Cy_SysClk_StartClkMeasurementCounters(cy_en_meas_clks_t clock1, uint32_t count1, cy_en_meas_clks_t clock2)

          2: call the below API second:

          Cy_SysClk_ClkMeasurementCountersDone()

          3: call the below API third:

          Cy_SysClk_ClkMeasurementCountersGetFreq()

           

          Read the Function introduction carefully, then you can know how to do it simply.

          Hope it can be helpful for you!