LPC84X FRO Configuration Example

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

LPC84X FRO Configuration Example

跳至解决方案
1,613 次查看
mark_stokes
Contributor II

The datasheet states there is an API ROM Routine for setting the FPO frequency.  It shows how it works (parameter, etc.), but it doesn't show how to use it.  I don't see anywhere what the API command code is (I assume it's like the IAP commands, but don't know).

Is there any example code (preferably for IAR) that shows how to set the frequency of the FRO?  Something that shows implementation of set_fro_frequency() referenced in the manual.

And let me just complain one more time about not updating LPC_Open for the LPC84X.  I realize there would be some work involved, but since you're not doing it, I'm wasting good development time making it work so I can use it (port my existing LPC824 code over) instead of developing my application.

Thanks

标记 (5)
1 解答
1,120 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Mark Stokes,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
Regarding to calling the set_fro_frequency() API, you can refer to LPC845 example code bundle.
And good news: LPC845 SDK will be released in the Q1, 2018.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

4 回复数
1,121 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Mark Stokes,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
Regarding to calling the set_fro_frequency() API, you can refer to LPC845 example code bundle.
And good news: LPC845 SDK will be released in the Q1, 2018.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,122 次查看
NeoTsai
Contributor II

LPCopen? or MCU SDK?

0 项奖励
1,122 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Neo Tsai,

The bundle type is different from the SDK or LPCOpen, it doesn't contains abstract level and configures the hardware peripheral registers directly.

Hope this is clear.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
1,122 次查看
mark_stokes
Contributor II

Thanks for the reply.  I realized I had already downloaded it and found the implementation.  This leads me to another question.  I don't really like the way this uses #defines to setup the FPO frequency.  It looks like the intent is to have it set once for a project and never change it.  While I'm writing a library for the clock system, I'm wanting to give the opportunity to change the base FPO clock and I can use the example you send above.  However, there is no way for the code (after a reboot for example) to know what the base frequency is.  I see how I can use the ReadFAIM function to get the div8 value and the FROOSCCTRL to determine the fpo_oscout value (needed to calculate baud rates, I2C rates, etc., but without any access to the result of a previous call to set_fro_frequency(), this can't be calculated.

0 项奖励