AnsweredAssumed Answered

TIM3 OC problem

Question asked by n.serina on Apr 17, 2018
Latest reply on Apr 19, 2018 by n.serina

Hello , 

I am using NUCLEOf446re board and i have some issues with TIM3 OC getting 50Kz waveform on channel 1 . 

 

when i derive systemclock from PLL . it works fine . 

systemclock = 180Mhz

APB1CLK = 45MHz

TIM3CLK = 90Mz 

prescaler of timer= 9 

timer cnt clk = 9Mhz  ..

OC pulse value = 9000000/50000

this configuration work fine . 

 

but when i switch to HSI , the code doesnt work . 

in HSI i use the below config 

systemclock = 16Mhz

APB1CLK  = 16Mhz

TIM3CLK = 16Mhz

timer cnt clk = 16Mhz  ..

prescaler of timer = 0

OC pulse value = 16000000/50000.

this config doesnt work at all .  it just generated wave of ~122Hz . 

can you please help to debug the issue ?

Outcomes