Hi,
I am using K64F FlexTimer channel0 as my PWM output. I am using PE to configure channel0 as output compare with toggle output.
I disable the software output control and interrupt...
In my main rountine, I just change FTM0_MOD register to get the different PMW output(50/50) every second. It works fine. The only problem is that PWM out frequency can be changed in middle.
Could you tell me how to control the loading point of the new value, like always after complete PWM output?
Another question: Is it possible to change the polarity of channel0?
Thanks,
Christie
Solved! Go to Solution.
Hello Christie,
(1) Do you want to change the frequency of PWM ? if yes , update the MOD register we can refer to the RM here :
(2) About change the polarity of channel0 , we can use "ELSnB "and "ELSnA" :
( 40.3.6 Channel (n) Status And Control (FTMx_CnSC) )
Hope it helps
Alice
Hello Christie,
(1) Do you want to change the frequency of PWM ? if yes , update the MOD register we can refer to the RM here :
(2) About change the polarity of channel0 , we can use "ELSnB "and "ELSnA" :
( 40.3.6 Channel (n) Status And Control (FTMx_CnSC) )
Hope it helps
Alice