Hello,
I have two different PWM signals (with a phase shift) that need to be output by the MCU depending on a external signal. I thought this would be possible using states, but events that trigger before the state switch will not reflect on the output after state change, what means a fraction of the signal I wish to mux on the output does not appear:
Am I correct? Is there a way to handle this directly with SCT in a generic way - that is, for any Match 3 and Match 4 value, even if Match 3 > Match 4 (180° phase difference)?
Best regards,
Nuno Antunes
Hi Nuno,
I recommend you to check the sctimer_multi_state_pwm example from the SDK. I think this is similar to what you are trying to accomplish. In the example when the user presses a switch the PWM signal will be seen from Out 2 and when user presses the switch again PWM signal on Out 2 will turn off. The PWM signal from Out 4 will remain active all the time.
Have a great day,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------