Generating PWM

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

Generating PWM

Jump to solution
1,845 Views
Andrei13
Contributor III

Hi! I am using FRDM KE16Z and i have sdk 2.13. I setted up the FTM driver for generating pwm on FTM0 ch0, ch1, ch2, ch3. I put a wire on pin no 23, wich is PTC0 and i see nothing on the osciloscope. The other function in the photo is for updating the pwm dutycycle.  In main is just called the init function and in while(1) part i just updated the pwm dutycycle and added a delay after.

I also added photos with pin and peripherals tools. 

TY!

Andrei13_0-1680445753884.pngAndrei13_1-1680445866932.png

Andrei13_2-1680445892295.png

0 Kudos
Reply
1 Solution
1,801 Views
Andrei13
Contributor III

I fixed it. If you use the PTC pin it s ok, the pwm output is on the pin, but if you use PTD the pwm output is on the led.

View solution in original post

0 Kudos
Reply
3 Replies
1,802 Views
Andrei13
Contributor III

I fixed it. If you use the PTC pin it s ok, the pwm output is on the pin, but if you use PTD the pwm output is on the led.

0 Kudos
Reply
1,821 Views
Andrei13
Contributor III

I changed the order of functions in init function, but he output is visible on the blue led, not on the pins. Why? TY!

0 Kudos
Reply
1,824 Views
Andrei13
Contributor III

Forgot to add this photo from pins. One is with label and identifier bc i tried  to see if that s the problem, but it isn t.

0 Kudos
Reply