Timer PWM: Get State of PWM
Hello,
I am planning to use the PWM feature in the timer (PWM Generation CH1). I want to send that PWM signal to an external device and am doing preliminary testing on the code. This PWM duty cycle changes based on the press of a button. I want to verify the signal but I do not have access to a oscilloscope at the moment. To get around this, my plan is to slow down the PWM (0.1 Hz signal) and create an LED tester. The function would be:
If PWM State = High: LED ON
If PWM State = Low: LED OFF
Then I can visually confirm the PWM signal via an LED visual.
The part I cannot find is a function that checks the state of the Timer PWM pulse. Is this possible?
If it is not, is there another way to verify the PWM signal without an oscilloscope or similar hardware?
EDIT:
For additional information, I am using an STM32H7B3I-EVAL evaluation board that has push buttons, LEDs and an LCD display.
