LPC84x - how to read FRO frequency programmatically

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

LPC84x - how to read FRO frequency programmatically

Jump to solution
1,277 Views
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.

Tags (2)
0 Kudos
Reply
1 Solution
1,263 Views
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

View solution in original post

Tags (2)
0 Kudos
Reply
2 Replies
1,264 Views
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

Tags (2)
0 Kudos
Reply
1,266 Views
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 Kudos
Reply