SCT PWM start level High/low setting.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SCT PWM start level High/low setting.

跳至解决方案
686 次查看
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 

标签 (1)
标记 (4)
0 项奖励
回复
1 解答
622 次查看
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 项奖励
回复
3 回复数
641 次查看
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 项奖励
回复
635 次查看
skanda19
Contributor III

thanks Alice I will check it out. 

 

0 项奖励
回复
623 次查看
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 项奖励
回复