Anyone use PWM on the iMX23 system?

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

Anyone use PWM on the iMX23 system?

1,238 Views
blsousan
Contributor III

We are looking at using the iMX23 system for project that also needs PWM to control a motor.  My question is that does the iMX23 BSP Linux system come with drivers for PWM?  And if so, has anyone got the PWM drivers to work on the iMX23 system?  Or can someone point me to some sample code/docs?

Thanks,

Bill

Labels (2)
0 Kudos
4 Replies

739 Views
SergioSolis
NXP Employee
NXP Employee

Hello Bill,

Yes, the Linux BSP for the i.MX23 has drivers for PWM.

Unfortunately we do not have sample code available, I apologize for the inconvenience.

740 Views
blsousan
Contributor III

Thanks Sergio.  One last thing, can you tell me where I would find the API docs/description/header files (for calling the PWM functions) ?

Best,

Bill

0 Kudos

740 Views
SergioSolis
NXP Employee
NXP Employee

Bill,

Taken from the Linux reference manual of the i.MX23:

- - - - - - - - - - - -

29.2 Software Operation

The PWM LED driver software implementation conforms with the Linux LED driver model. The driver

provides the functions necessary to register as a standard Linux LED class driver. Refer to

Documentation/leds-class.txt for full information on the Linux LED Class API. The driver uses the

PWM active time and period registers to implement an 8-bit resolution brightness control.

- - - - - - - - - - - - -

You can get full information on the class API in /documentation/leds-class.txt

740 Views
alexandrlapshin
Contributor I

Hi All!

Somebody has successfully launched PWM_leds on imx23.

I copy led_pwm code initialisation from mx28_evk.c to mx23_evk23.c

Enable  in kernel:
<*> LED Class Support

<*> Support for PWM LEDs on MXS 

But on pin no pwm signal

0 Kudos