Skip to main content
Explorer II
October 25, 2023
Solved

Timer 8 Output Compare

  • October 25, 2023
  • 1 reply
  • 1400 views

Hello,

I am using the board "STM32F407G-DISC1" and I want to implement a test code for timers in output compare mode,

Timers (2,3,4,5, and 12) worked perfectly.

but it does not work for Timer 8 Channel 2 (I used all possible pins for this channel "PB0, PB14, PC7") none of them have worked.

the code for timer 2 and timer 8 is attached 

 

Thank you, 
Dema.

    This topic has been closed for replies.
    Best answer by waclawek.jan

    TIM8 needs to have TIM_BDTR.MOE set.

    JW

    1 reply

    Super User
    October 25, 2023
    DemaQasemAuthor
    Explorer II
    October 25, 2023

    It worked ! 
    Thank you a lot.