Generating PWM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Generating PWM

跳至解决方案
2,679 次查看
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 项奖励
回复
1 解答
2,635 次查看
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 项奖励
回复
3 回复数
2,636 次查看
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 项奖励
回复
2,655 次查看
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 项奖励
回复
2,658 次查看
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 项奖励
回复