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.
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.