How to use PWM to control light on an LED

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

How to use PWM to control light on an LED

Jump to solution
895 Views
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,

Tags (4)
0 Kudos
1 Solution
330 Views
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

View solution in original post

0 Kudos
1 Reply
331 Views
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 Kudos