How to use PWM to control light on an LED

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

How to use PWM to control light on an LED

跳至解决方案
897 次查看
eugenferaru
Contributor I

System is k60, MQX 3.8.

The MQX_3.8\demo\pe_demo\cw10\pe_demo_twrk60n512 makes a reference to the PWM_Init and PWM_Enable functions.

I have tried to i port this sample project and it does not compile.

Questions:

1. How can the project be imported in CodeWarrior 10.2 and compile?

2. Where are these PWM_Init and PWM_Enable functions defined?

3. How can FTM be used to control light on an LED?

Thanks,

标记 (4)
0 项奖励
1 解答
332 次查看
c0170
Senior Contributor III

Hello Eugen Feraru,

this thread provides some information regarding PWM and MQX:

https://community.freescale.com/message/94112#94112

PWM driver is not part of the MQX therefore there's component you should add to your bsp to have PWM functions available.

Those particular questions are more related to PE than MQX. If you don't receive proper response, please start new thread in PE section and we lock or delete this thread. Thx.

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
1 回复
333 次查看
c0170
Senior Contributor III

Hello Eugen Feraru,

this thread provides some information regarding PWM and MQX:

https://community.freescale.com/message/94112#94112

PWM driver is not part of the MQX therefore there's component you should add to your bsp to have PWM functions available.

Those particular questions are more related to PE than MQX. If you don't receive proper response, please start new thread in PE section and we lock or delete this thread. Thx.

Regards,

MartinK

0 项奖励