Clock Calibration Counters

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
givac_3601531
Level 1
Level 1

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

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

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!

View solution in original post

0 Likes
1 Reply
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

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!

0 Likes