how to control the time interrupt for PDB with KDS 3.2 + KSDK 2.0?

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

how to control the time interrupt for PDB with KDS 3.2 + KSDK 2.0?

913件の閲覧回数
erickleones
Contributor I

Hi!, I´m working with the FRDM K64-F and I would want to know how to control the time interrupt for the programable delay block (PDB). I alredy checked the K-64 user´s manual and KSDK API Reference and those documents says that I have to configure the 'prescaler divider' and the 'Divider multiplication factor' and I can control the time interrupting by the PDB modulus register, but it doesn´t interrupt at the time that I want (I want the PDB to interrupt 1000 times per second). I'm getting the bus clock frequency by the instruction  CLOCK_GetFreq(kCLOCK_BusClk); but i can´t still control the interrupt timing.

ラベル(1)
0 件の賞賛
返信
1 返信

807件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Erick,

I think this demo project under the KSDK2.0 installation can help you :

SDK_2.0_FRDM-K64F\boards\frdmk64f\driver_examples\pdb\delay_interrupt

Please test it , check this can work well on your side .


Have a great day,
Alice

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

0 件の賞賛
返信