Is it possible to use FTM0 CH0 as PWM and CH1 as normal Timer channel with enabling interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to use FTM0 CH0 as PWM and CH1 as normal Timer channel with enabling interrupt

700 Views
hanisamara
Contributor III

Hello, 

I am using the Kinetis EA series and i would like to use the FTM0 timer ch0 as PWM and ch1 as normal timer channel. If i do that ch1 is not working correctly! I think the Problem is some where in the FTM0_cnt register!

thank you in advance

Hani

Tags (1)
1 Reply

443 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Hani,

For the fixed period PWM(CH0), the FTM0_MOD is fixed. So the period of timer(CH1) is equal to the period of PWM(CH0).
Alought the FTM0_C0V and FTM0_C01V can be different, it will only cause interrupt happen at different time.

But a fixed period timer may not suit your needs.
You can refer below image which tested on TRK-KEA8 board. I am using KDS3.2 with Processor Expert.

FTM0 CH0 PWM CH1 timer.png

Best Regards,

Robin