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?

919 次查看
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 回复

813 次查看
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 项奖励
回复