LPC824 SCT output PWM muxing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC824 SCT output PWM muxing

809 Views
nantunes
Contributor I

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:

nantunes_0-1631004712735.png

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

 

Labels (2)
Tags (1)
0 Kudos
Reply
1 Reply

778 Views
FelipeGarcia
NXP Employee
NXP Employee

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. 

------------------------------------------------------------------------------ 

0 Kudos
Reply