Timer usage
Posted: Fri Oct 10, 2014 12:38 am
Hello,
I am trying to use the timer functionality on Y11/B0 and I don't seem to get it to work as on other pins.
t = pyb.Timer(1, freq=1000, mode=pyb.Timer.CENTER)
ch2 = t.channel(2, pyb.Timer.PWM, pin=pyb.Pin.board.Y11, pulse_width=(t.period() + 1) // 2)
The datasheet shows: PB0: TIM1_CH2N, TIM3_CH3, TIM8_CH2N
I think there is some configuration issue with inverted timer channels (TIM1_CH2N).
Did someone try this on Y11?
I am trying to use the timer functionality on Y11/B0 and I don't seem to get it to work as on other pins.
t = pyb.Timer(1, freq=1000, mode=pyb.Timer.CENTER)
ch2 = t.channel(2, pyb.Timer.PWM, pin=pyb.Pin.board.Y11, pulse_width=(t.period() + 1) // 2)
The datasheet shows: PB0: TIM1_CH2N, TIM3_CH3, TIM8_CH2N
I think there is some configuration issue with inverted timer channels (TIM1_CH2N).
Did someone try this on Y11?