SCT PWM start level High/low setting.

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

SCT PWM start level High/low setting.

Jump to solution
908 Views
skanda19
Contributor III

Hello, 

I wrote some code that lets me create a Sine PWM signal through the SCT block and DMA.

Now that this is working, I need to be able to generate a complementary Sine PWM, I would it be possible to generate another signal with the opposite starting level than the original signal ?????

which register would be involved ???

 

Thanks 

Labels (1)
Tags (4)
0 Kudos
Reply
1 Solution
844 Views
skanda19
Contributor III

For anyone else who might need to do this on their own project. 

Registers:

/*signal A*/

LPC_SCT->OUT[x].SET =   event_a;

LPC_SCT->OUT[x].CLR =  event_b;

 

if you need to create a complementary signal A 

 

LPC_SCT->OUT[x].SET = event_b;

LPC_SCT->OUT[x].CLR = event_a;

 

regards. 

View solution in original post

0 Kudos
Reply
3 Replies
863 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @skanda19 

You can refer to AN11538, or use MCUXpresso config tool:

Alice_Yang_0-1698744986550.png

Alice_Yang_1-1698745018873.png

 

BR

Alice

 

 

0 Kudos
Reply
857 Views
skanda19
Contributor III

thanks Alice I will check it out. 

 

0 Kudos
Reply
845 Views
skanda19
Contributor III

For anyone else who might need to do this on their own project. 

Registers:

/*signal A*/

LPC_SCT->OUT[x].SET =   event_a;

LPC_SCT->OUT[x].CLR =  event_b;

 

if you need to create a complementary signal A 

 

LPC_SCT->OUT[x].SET = event_b;

LPC_SCT->OUT[x].CLR = event_a;

 

regards. 

0 Kudos
Reply