KEAZ128 Clock Problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KEAZ128 Clock Problem

跳至解决方案
2,546 次查看
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 项奖励
回复
1 解答
2,513 次查看
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.pngjingpan_0-1634020456714.png

 

2. Core clock.

 

Regards,

Jing

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,514 次查看
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.pngjingpan_0-1634020456714.png

 

2. Core clock.

 

Regards,

Jing

0 项奖励
回复
2,496 次查看
fanziyu
Contributor IV

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

 

 

0 项奖励
回复