imxrt1061 set semc clock to 133Mhz

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imxrt1061 set semc clock to 133Mhz

Jump to solution
980 Views
MCW
Contributor III

Hi all,

 

I find the default semc clock frequency is around 163Mhz in evkbmimxrt1060_semc sample code.

And the clock frequency is changed to about 109Mhz when I set the value of  kCLOCK_SemcDiv to 2.

However, I want to change the clock frequecny to 133Mhz.

So how could I reduce the semc clock to 133Mhz?

MCW_1-1694747640589.png

Best regards,

Doris

 

Labels (1)
0 Kudos
Reply
1 Solution
934 Views
mjbcswitzerland
Specialist V

Hi

You can achieve 132MHz SEMC_CLK_ROOT by removing the line CLOCK_InitSys_Pdf() [this leaves PLL2-PDF2 at its default value of 396MHz] or setting it to CLOCK_InitSys_Pdf(24).
and setting CLOCK_SetDiv(KClock_SemcDiv, 2).

For the explications see pages 20 and 5 of https://www.utasker.com/docs/iMX/i.MX_RT_1021_uTasker.pdf

Regards

Mark

For i.MX and Kinetis stock availability see https://www.utasker.com/Shop/semi.html

View solution in original post

0 Kudos
Reply
2 Replies
935 Views
mjbcswitzerland
Specialist V

Hi

You can achieve 132MHz SEMC_CLK_ROOT by removing the line CLOCK_InitSys_Pdf() [this leaves PLL2-PDF2 at its default value of 396MHz] or setting it to CLOCK_InitSys_Pdf(24).
and setting CLOCK_SetDiv(KClock_SemcDiv, 2).

For the explications see pages 20 and 5 of https://www.utasker.com/docs/iMX/i.MX_RT_1021_uTasker.pdf

Regards

Mark

For i.MX and Kinetis stock availability see https://www.utasker.com/Shop/semi.html

0 Kudos
Reply
841 Views
MCW
Contributor III

Hi @mjbcswitzerland ,

 

Thanks for your help.

The semc clock is set to 132Mhz now.

 

Best regards,

Doris

0 Kudos
Reply