Output pin for PDB Pulse Out on TWR-K64F120M

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Output pin for PDB Pulse Out on TWR-K64F120M

1,551 次查看
aberger
Senior Contributor I

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.

标记 (3)
0 项奖励
回复
2 回复数

1,352 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Andy,

Maybe you can refer the method described in AN4822(Tips and Tricks Using PDB in Motor Control Applications on Kinetis).

Routing the PDB pre-trigger onto a GPIO pin.jpg

Best Regards,

Robin

 

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

0 项奖励
回复

1,352 次查看
mjbcswitzerland
Specialist V

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

0 项奖励
回复