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
解決済! 解決策の投稿を見る。
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.
thanks Alice I will check it out.
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.