cancel
Showing results for 
Search instead for 
Did you mean: 

Timer Output Compare example TIM_OCActive

Kmax18
Senior II

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions

> 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

View solution in original post

1 REPLY 1

> 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