LPC84x - how to read FRO frequency programmatically

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

LPC84x - how to read FRO frequency programmatically

跳至解决方案
436 次查看
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 解答
422 次查看
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 回复数
423 次查看
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 项奖励
回复
425 次查看
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 项奖励
回复