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

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

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

418 Views
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.

Labels (1)
0 Kudos
1 Reply

312 Views
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 Kudos