Hi Dave,
I went over your suggested connection scheme again and it looks OK. I would expect the LCD segments to at least be visible with the contrast pot is turned towards one end - that's what I've seen on other displays. But don't worry, get it all connected and get some basic code into the PIC.
I'm not 100% sure if the LCDOut commands automatically sets the TRIS registers for the Enable and RS bit of the LCD but it certanly doesn't hurt to do that "manually" just to be sure it's correct. And, as mackrackit already pointed out, don't forget the ADC.
I think these DEFINEs should match your connection scheme:
Code:
DEFINE LCD_DREG PORTA 'Databus, D4-D7 on PortA
DEFINE LCD_DBIT 0 'Starting at PortA.0
DEFINE LCD_RSREG PORTA 'LCD RegisterSelect on PortA...
DEFINE LCD_RSBIT 4 '...bit4
DEFINE LCD_EREG PORTB 'LCD Enable-signal on PortB...
DEFINE LCD_EBIT 3 '...bit 3
DEFINE LCD_LINES 2 'LCD has two lines and...
DEFINE LCD_BITS 4 '...is using 4 bit databus
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
/Henrik.
Bookmarks