KEAZ128 Clock Problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

KEAZ128 Clock Problem

ソリューションへジャンプ
1,195件の閲覧回数
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 解決策
1,162件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
1,163件の閲覧回数
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 件の賞賛
返信
1,145件の閲覧回数
fanziyu
Contributor IV

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

 

 

0 件の賞賛
返信