Hi
You might want to make sure that the dutycycle is set to 0 before enabling the PWM module.
As it is now, when you "activate" the LCD sections, there will be a 7 second delay between the PWM module being enabled (you setting CCP4CON at the start of the program) and the time at which the ramp up actually starts, ie when you actually set the dutycycle to 0.
/Henrik.
Bookmarks