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

USB superspeed peripherals Forum Discussions

DiDi_4439146
Level 3
Level 3
10 replies posted 10 questions asked 5 replies posted

Hi,

I understand that when using a 19.2 or 38.4 MHz clock, the system clock frequency will be 384 MHz.
When using a 26 or 52 MHz clock, the system clock will be 416 MHz.

Is there a way to check in the firmware which frequency the system clock is running on?

Thank you.

 

 

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please note that when clockConfig.setSysClk400 = CyTrue; system clock will be set to greater then 400MHz.

To check the system clock frequency, please call this API CyU3PDeviceGetSysClkFreq. This function can be used to identify the current SYS_CLK frequency on the FX3 device. This should only be called
after the CyU3PDeviceInit API has been called.

Regards,
Rashi

View solution in original post

0 Likes
3 Replies
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello,

Please note that when clockConfig.setSysClk400 = CyTrue; system clock will be set to greater then 400MHz.

To check the system clock frequency, please call this API CyU3PDeviceGetSysClkFreq. This function can be used to identify the current SYS_CLK frequency on the FX3 device. This should only be called
after the CyU3PDeviceInit API has been called.

Regards,
Rashi
0 Likes

If I have

clock.Config.setSysClk400 = CyFalse;

Will the sysclock stay at 384MHz even with a 26MHz clock attached to the chip?

0 Likes

Hello,

As per the source of CyU3PDeviceInit API in the SDK, the system clock frequency will be set as 416 MHz when clock source of 26MHz or 52MHz is used.

To confirm the system clock frequency, please call CyU3PDeviceGetSysClkFreq

Regards,
Rashi
0 Likes