Skip to main content
Graduate II
December 17, 2024
Solved

Timer Output Compare example TIM_OCActive

  • December 17, 2024
  • 1 reply
  • 694 views

I am using a NUCLEO-G071RB, STM32CubeIDE v1.17.0, and STM32Cube_FW_G0_V1.6.0 with patch STM32Cube_FW_G0_V1.6.2. I compiled and downloaded the timer example TIM_OCActive.

Please confirm that the four output signals turn permanently active (high) after the specified time period.

If a pulse stream is needed (output is on/off at a specified frequency), is the example TIM_OCToggle the right code? Also, is a 'pulse counter' available that would stop a pulse stream after N active (high) pulses? 

Thank you!

 

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

    > Please confirm that the four output signals turn permanently active (high) after the specified time period.

    Read out and check TIMx_CCMRx.OCxM - if it's set to 0b0001 (note it is a not continuous bitfield), then yes. See description of that register in the TIM chapter in Reference Manual (RM).

    JW

    1 reply

    Super User
    December 17, 2024

    > Please confirm that the four output signals turn permanently active (high) after the specified time period.

    Read out and check TIMx_CCMRx.OCxM - if it's set to 0b0001 (note it is a not continuous bitfield), then yes. See description of that register in the TIM chapter in Reference Manual (RM).

    JW