Change the SYS clock frequency dynamically

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

cross mob
FrPo_1282226
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

Hello there,

Do you know if is possible to change the sysclock frequency for a PSOC 4 dynamically?

I need to run most of the time the PSoC @ 1.5 MHz, but occasionally I need to run at 48 MHz.

CySysClkWriteSysclkDiv(); should do the job... but it doesn't seems to work. 

Do you have any suggestions?

 

Thank you!

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

Yes, it is possible to change the sysclock frequency for PSoC 4 dynamically.

 

View solution in original post

3 Replies
MikeAustin
Level 4
Level 4
25 replies posted 25 sign-ins 10 replies posted

Have a look at the response to this post I put up last year - it makes mention of changing the IMO frequency dynamically.  I never ended up trying it, as I was able to solve my issue using a different approach

https://community.cypress.com/t5/PSoC-4-MCU/Changing-IMO-and-ADC-Sampling-frequencies-in-code/m-p/11...

Cheers,

Mike

lock attach
Attachments are accessible only for community members.
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello,

Yes, it is possible to change the sysclock frequency for PSoC 4 dynamically.

 

Thank you!

0 Likes