LPC84X FRO Configuration Example

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

LPC84X FRO Configuration Example

ソリューションへジャンプ
2,634件の閲覧回数
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 解決策
2,141件の閲覧回数
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 返答(返信)
2,142件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

2,143件の閲覧回数
NeoTsai
Contributor II

LPCopen? or MCU SDK?

0 件の賞賛
返信
2,143件の閲覧回数
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 件の賞賛
返信
2,143件の閲覧回数
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 件の賞賛
返信