Processor expert and PWM in Complimentary mode

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

Processor expert and PWM in Complimentary mode

1,470 Views
tsvetanmudrov
Contributor III

Hello. I'm using CW.10.6 with PE on K20 device. I'm trying to set a 2 channel PWM in Complimentary mode. As I understand, the right component in PE should be Init_FTM. But it doesn't have any user interface, except initialization function of the module. As minimum, I need enable and disable functions, to start and stop the outputs generation.

The other option is to use two PWM components, but I don't see a easy way to command them in synchronous way (start/stop the outputs).

Did I miss something in PE?

Tags (3)
3 Replies

1,144 Views
tsvetanmudrov
Contributor III

Sorry, but have you read my post at all?

I know how to use Init_FTM, but it's just an initialization function, without any interface. It's just start the module with predefined settings. There is no functions to stop/start and reconfigure the module, to catch events and etc. There is another higher level driver which is called PWM, but it doesn't support multichannel PWMs.

Anyway, a have written the code by myself. But it will be good to think about this in future releases of PE software.

0 Kudos
Reply

1,144 Views
ankur_kala
NXP Employee
NXP Employee

Hi,

I am sorry if I was not clear at the first place. Please see the sanpshots of the project attached in the previous reply. I have also attached the basic project. I dont know how you are using Init_FTM, but in my case I can configure PWMs in Complementary mode as well access the basic FTM functions.

Please let us know if any confusion still remains.

1,144 Views
ankur_kala
NXP Employee
NXP Employee

Hi,

You can go to Components Library -> Assistant -> Complete initialization of a peripheral/module -> Flexible Timer (FTM) and configure combined channel for enabling complementary mode. Attached the snapshots for the configuration.

0 Kudos
Reply