Does the TWR-K64F120M have an output pin that I can toggle based on the programmable delay block (PDB) counter? I would like to pulse a digital output each time the PDB triggers a DAC channel, e.g.
Hi Andy,
Maybe you can refer the method described in AN4822(Tips and Tricks Using PDB in Motor Control Applications on Kinetis).
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Andy
You can use the PDB DMA source (DMAMUX0_CHCFG_SOURCE_PDB 48) to trigger a transfer of a fixed value to a port toggle register to cause any GPIO output to change state each time the PDBIF flag is set (it can then not be used to generate an interrupt although the DMA transfer interrupt can be used instead if both DMA and interrupt are needed).
Regards
Mark
Kinetis: http://www.utasker.com/kinetis.html
Kinetis K64:
- http://www.utasker.com/kinetis/FRDM-K64F.html
- http://www.utasker.com/kinetis/TWR-K64F120M.html
- http://www.utasker.com/kinetis/TEENSY_3.5.html
- http://www.utasker.com/kinetis/Hexiwear-K64F.html
ADC/DAC: http://www.utasker.com/docs/uTasker/uTaskerADC.pdf
Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M
Professional Kinetis support, one-on-one training and complete fast-track project solutions: http://www.utasker.com/support.html