Processor expert and PWM in Complimentary mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Processor expert and PWM in Complimentary mode

2,958 次查看
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?

标记 (3)
3 回复数

2,632 次查看
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 项奖励
回复

2,629 次查看
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.

2,625 次查看
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 项奖励
回复