LPC84x - how to read FRO frequency programmatically

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

LPC84x - how to read FRO frequency programmatically

ソリューションへジャンプ
1,285件の閲覧回数
pepoja
Contributor II

Hello all,
In others LPC microcontroller I can determine the input frequency to the core and to the peripherials from running application.
But in the LPC84x series I don't know how.
Fro can be 30 MHz/24 MHz/18 MHz and I able to set it by set_fro_frequency API call.
But how to read it?

 

Thanks.

タグ(2)
0 件の賞賛
返信
1 解決策
1,271件の閲覧回数
pepoja
Contributor II

Thank You for your quick reply.

Yes, I know UM11029.pdf of course.
Due to the minimalization components count, I don't use external clock input/external crystal.

For my applications was FRO good solution. I was think....
All application timing is based on it. I must to know the input frequencu to clock generation engine.


Finnaly solution is:
Write desired FRO frequency by API call after each MCU reset.


p.s. Why API doesn't include get_fro_frequency also? It's a unbreakable problem?

 

Petetr

元の投稿で解決策を見る

タグ(2)
0 件の賞賛
返信
2 返答(返信)
1,272件の閲覧回数
pepoja
Contributor II

Thank You for your quick reply.

Yes, I know UM11029.pdf of course.
Due to the minimalization components count, I don't use external clock input/external crystal.

For my applications was FRO good solution. I was think....
All application timing is based on it. I must to know the input frequencu to clock generation engine.


Finnaly solution is:
Write desired FRO frequency by API call after each MCU reset.


p.s. Why API doesn't include get_fro_frequency also? It's a unbreakable problem?

 

Petetr

タグ(2)
0 件の賞賛
返信
1,274件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Unfortunately, there is nowhere to read the clock for the core and a specific peripheral directly.

Pls refer to section 8.5.1 Clock generation in UM11029.pdf, the application code can define the external crystal clock frequency or the clock frequency from CLKIN pin, then read the clock source mux and divider register to figure out the core clock frequency and peripheral clock frequency.

BR

XiangJun Rong

0 件の賞賛
返信