Hello,
I am trying to implement complementary PWM with dead-time for UPS application.
But as you can find in attached image dead time is working but not getting complementary PWM with this.
I am attaching Source code Please check and support me to solve this issue.
解決済! 解決策の投稿を見る。
Hello @mohit2904
I tested your project on my side, find the issue,
Please change
/* SCTimer output 1 mask */
#define SCT0_OUTPUT_1 (1 << kSCTIMER_Out_1)
to
/* SCTimer output 1 mask */
#define SCT0_OUTPUT_1 (0 << kSCTIMER_Out_1)
Then it can work well, below is my test result:
BR
Alice
Hello @mohit2904
How about use MCUXpresso peripheral tool to config complementary PWM signals,
then generate code, refer to the code:
If still can't work, how about send your whole project to me , I help to check on my side.
BR
Alice
Hello @mohit2904
I tested your project on my side, find the issue,
Please change
/* SCTimer output 1 mask */
#define SCT0_OUTPUT_1 (1 << kSCTIMER_Out_1)
to
/* SCTimer output 1 mask */
#define SCT0_OUTPUT_1 (0 << kSCTIMER_Out_1)
Then it can work well, below is my test result:
BR
Alice
Thank you @ Alice_Yang !!!
For your support it is working now after doing changes suggested by you...
Hello Alice,
We are using SCT0 to generate complementary PWM that we have done but we need to adjust rise time around 2 nsec in our case so please help us how we can change it.
Hello @mohit2904
This thread is too long, about your new question, please create a new case with more detail description,
thanks.
BR
Alice