Problem in controlling display backlight using PWM

shiva
Hi,

Thank you very much for providing valuable information on this site.

I am new to work with WinCE. Presently I am working on developing device
drivers for our board.We are using I.MX25 as main processor and controlling
backlight using pwm(standard PWM pin of processor).

For this we set PWM maximum and minimum period, enabled the PWM driver in
catalog item and setting the duty cycle percentage. 

Here the problem is we need to set pwm duration(duration of the sample in
(msec)). Once you set this with a perticular time, processor is generating
the PWM for that time duration only. Once this duration elapses it is not
generating the PWM. So we put the time duration for 10msec and running a
thread to continuously load the duration value.

Due to this we are obseving flickering at low brightness level.Can anybody
suggest what we need to do to reduce this flickering and generating PWM
continuously.


Regards,
SHiva