hi i am using ccs compiler from many years now .. i also used many compilers along with it .. but only problem i often face is the lcd doesn't work .. why it is .. why why why some time this problem makes u feel like u don't know anything of programming ..
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Sun May 18, 2014 4:11 am
I feel sorry for you. We all had those times that things that should work just didn't work. Very frustrating.
If you want us to help you you will have to post a small program demonstrating your problem. Make the program small, maximum about 40 lines and the program should be complete so we can copy/paste it into our compiler.
Tell us what is working and what isn't.
While I've never had a problem with the CCS driver, I normally use the 'flex LCD driver' that PCM programmer coded and uploaded to the 'code library'.
As it's more 'flexible' most guys here probably use it.
Some of the usual problems with LCD modules are ...
1) NOT having a delay_ms(500); BEFORE the lcd_init(); function.This delay is necessary to allow the LCD module time to 'get organised' BEFORE the PIC accesses it the first time.
2) miswiring of the LCD to the PIC.Easy to do when you decide to change the hardware of the PIC..
3) incorrect contrast adjustment. That's the voltage needed on pin 3. typically about .5 volts but varies from mfr/make of LCD.
4)wrong defines for the LCD pins.Although the driver has a set of default pins, if your hardware doesn't use them OR you don't predefine your set, the driver won't function correctly.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum