Complementary mode in FTM PWM of MBDT in KV5x

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

Complementary mode in FTM PWM of MBDT in KV5x

799 Views
CauTran
Contributor I

Dear @nxp

I would like to use FTM PWM in Complementary mode. 

I see the example in KV3x about this ( scalar control example); 

But, I can not get anything that I want about complementary mode. 2 pwm channels is independent. 

How can I configure to get this one? 

Thank you so much.

0 Kudos
1 Reply

774 Views
nxa11767
NXP Employee
NXP Employee

Hi @CauTran ,

You can use the same approach also on KV5x. The SDK API on KV5x is the same as on KV3x.

The PWM mode selection should be done from the MCUX Configuration Tool (the .mex file of the model). When we released the toolbox, the mcux configuration tool had a limitation - complementary mode and deadtime insertion was not available for selection in the UI. I'm tracking the issue and it looks to be fixed - let me check it on my side and I will let you know on this thread.

Meanwhile, you can try with the custom code block, same approach as on KV3x motor control example.

 

BR,

Alexandra

0 Kudos