Can someone help me to debug this problem?
Above LCD with above PIC have been conected and programmed...
the LCD displays absolutly nothing not even at power on...
I have purchased two identical and neither display anything at power on...
I have a 38K serial2 going to a com port on my PC which works perfectly...
i'm using all 8 data bits connected to PORT D...
RS (pin 4) is connected to PORTC.5
RW (pin 5) is connected to PORTC.6
E (pin6) is connected to PORTC.7
Contrast is connected to +5V via 1.5K resister
My defines are as follows...
TRISC and D are set to all outputs, i don't know if this is correct or not?DEFINE LCD_DREG PORTD 'LCD data port
DEFINE LCD_DBIT 0 'LCD data starting bit 0 or 4
DEFINE LCD_RSREG PORTC 'LCD register select port
DEFINE LCD_RSBIT 5 'LCD register select bit
DEFINE LCD_EREG PORTC 'LCD enable port
DEFINE LCD_EBIT 7 'LCD enable bit
DEFINE LCD_RWREG PORTC 'LCD read/write port
DEFINE LCD_RWBIT 6 'LCD read/write bit
DEFINE LCD_BITS 8 'LCD bus size 4 or 8
DEFINE LCD_LINES 2 'Number lines on LCD
DEFINE LCD_COMMANDUS 2000 'Command delay time in us
DEFINE LCD_DATAUS 50 'Data delay time in us
I think their is 'some' activity on the LCD data and controll lines but i only have a digital multimeter so, can't be sure.
I'm using PORTA and E for analogue, PWM 0 and 1 (RC1 and RC2), TMR1 in counter mode using PORTC0 as input and PORTB for digital output and SER2 PC telemetry link...
I have no idea where to begin to find the problem, so any help appreciated...
Thanks
Bookmarks