SCT PWM start level High/low setting.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SCT PWM start level High/low setting.

ソリューションへジャンプ
786件の閲覧回数
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 解決策
722件の閲覧回数
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 返答(返信)
741件の閲覧回数
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 件の賞賛
返信
735件の閲覧回数
skanda19
Contributor III

thanks Alice I will check it out. 

 

0 件の賞賛
返信
723件の閲覧回数
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 件の賞賛
返信