Generating PWM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,678件の閲覧回数
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,634件の閲覧回数
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,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 件の賞賛
返信
2,654件の閲覧回数
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,657件の閲覧回数
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 件の賞賛
返信