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.
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!
-----------------------------------------------------------------------------------------------------------------------