Anyone use PWM on the iMX23 system?

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

Anyone use PWM on the iMX23 system?

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

标签 (2)
0 项奖励
回复
4 回复数

1,691 次查看
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.

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

1,692 次查看
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

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