KEAZ128 Clock Problem

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

KEAZ128 Clock Problem

Jump to solution
1,104 Views
fanziyu
Contributor IV

Mcu: s9keaz128amlh

Tool: S32 Design Studio for ARM Version 2018.R1

Problem1:What is wrong with my following calculation? I think it's 20Mhz core clock in the example. 

ICSFLLCLK = 8Mhz/256*1280 = 40Mhz;

Core/System Clock = ICSOUTCLK = ICSFLLCLK / BDIV = 20Mhz;   

fanziyu_1-1633701436751.png

fanziyu_2-1633701782922.png

 

Problem2:Which clock should i  use to calculate the time Program takes, Bus clock or core clock?

Because there's a lot of computation in my project, and I need to know how long it takes to run.

Thanks!

 

 

 

 

0 Kudos
1 Solution
1,071 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @fanziyu ,

1. Yes, the core clock is 20Mhz. If you want core clock to be 40M, SIM_CLKDIV should bd 0x01000000.

jingpan_0-1634020456714.png

 

2. Core clock.

 

Regards,

Jing

View solution in original post

0 Kudos
2 Replies
1,072 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @fanziyu ,

1. Yes, the core clock is 20Mhz. If you want core clock to be 40M, SIM_CLKDIV should bd 0x01000000.

jingpan_0-1634020456714.png

 

2. Core clock.

 

Regards,

Jing

0 Kudos
1,054 Views
fanziyu
Contributor IV

the example code is right,I am too careless.Sorry for bothering!

 

 

0 Kudos