FTM doesn't work

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

FTM doesn't work

580 Views
robertogiovinet
Contributor III

Hello everybody.

I'm trying to configure a simple two channels CPWM on FTM0 using MKE02Z32VLD, but I can't. I've tried several ways but no one works. It happens that all register are configured, but FTM0_C0V and FTM0_C1V are set equal to 0. So one channel is always at 100% and one is at 0%, because of the ES1A and ES1B settings. I've tried to write to this registers in several ways but the result is always the same. I don't know why. Pins are redirect in a correct way so I can see FTM0_CH0 and FTM0_CH1 on pin 32 and 33. Clock is gated... Any other suggestion?

Thanks a lot to everybody!

Roberto

FTM.jpg

Tags (1)
0 Kudos
Reply
1 Reply

422 Views
robertogiovinet
Contributor III

Hello Everybody

I found how to make it works fine. Below the text to configure CPWM on FTM0 channels. Is mandatary the order to set registers, and wite a value (for example 0) in FTM0_CNT register.

FTM.jpg

I hope this can help.

Roberto

0 Kudos
Reply