complementary pwm with dead-time

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

complementary pwm with dead-time

Jump to solution
1,876 Views
mohit2904
Contributor I

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.

0 Kudos
Reply
1 Solution
1,790 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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:

Alice_Yang_0-1685609902561.png

 

BR

Alice

 

View solution in original post

0 Kudos
Reply
6 Replies
1,852 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @mohit2904 

How about use MCUXpresso peripheral tool to config complementary PWM signals,

then generate code, refer to the code:

Alice_Yang_0-1685415134080.png

If still can't work, how about send your whole project to me , I help to check on my side.

BR

Alice

 

0 Kudos
Reply
1,805 Views
mohit2904
Contributor I

Dear Alice,

            Thanks for your response please find the attachment for MCUXpresso peripheral tool settings and also find my complete project file and confirm what is issue exactly to getting complementary PWM in my case.

 

0 Kudos
Reply
1,791 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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:

Alice_Yang_0-1685609902561.png

 

BR

Alice

 

0 Kudos
Reply
1,781 Views
mohit2904
Contributor I

Thank you @ Alice_Yang !!!

For your support it is working now after doing changes suggested by you...

 

0 Kudos
Reply
1,650 Views
mohit2904
Contributor I

@Alice_Yang 

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.

0 Kudos
Reply
1,643 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @mohit2904 

This thread is too long, about your new question, please create a new case with more detail description,

thanks.

 

BR

Alice

0 Kudos
Reply