Hi,
I am trying to generate the processor expert code for FTM. The Init_FTM module was added and the following changes were made. I am using FTM0_CH4.
When I port the code onto the target hardware, FTM_CNT increments , but FTM_C4V doesn't increment. What am I missing in the configuration to generate a PWM on the pin corresponding to FTM0_CH4.
I have attached snapshots of the PE configuration for reference.
Please do suggest the modification needed
Hello alex,
Why the register of FTM_C4V increase?
When you configure the channel to the PWM function , this register store the match value the
PWM output, when the FTM counter (FTM_CNT) match the value of Cnv , refer to the different PWM mode
, there will be different result , for the detail information , please refer to this part :
For example :
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------