I face some problems about using DMA to change PWM.But i do not know how to trigger the DMA periodically.I found we can use TRGMUX, But i do not found some example project or code. So, please give me help.
Hello,
You can use direct DMA trigger from FTM as reference manual express:
The available example SW is in SDK package:
I am not fmailiar with those examples, but I see some FTM interrupt ones, which after slight modification according to above can be used to trigger DMA.
best regards,
Peter
The requriment that i need use DMA to control the FTM register then change the PWM output.So I need use orther register to trigger the DMA.
Hello,
On which event you need to use DMA to configure FTM?
Best regards,
Peter
hello
Actually, I need use DMA to carry an array to FTM,Then use cnv and cncs register to change the PWM. But How to trigger the DMA prodically is the problems i am facing.
I find DMAMUX can triggered by TRGMUX, So i want to know how to use DMAMUX and TRGMUX。
best wishs
Yang
Hello,
I find DMAMUX can triggered by TRGMUX, So i want to know how to use DMAMUX and TRGMUX
Yes, that is correct.
In order to understand your requirement, on which event you want to trigger DMA via TRGMUX?
On some ADC done conversion? PWM period reload? or just simple periodic trigger every time interval? etc...
Best regards,
Peter
I am having the same issue and want to trigger every period of the FTM PWM output.