Re: Interesting result on a 16F688 with ADC and LCD

Originally Posted by
wdmagic
Code:
i
DEFINE LCD_DREG PORTC ' LCD Data bits on PORTC
DEFINE LCD_DBIT 2 ' PORTC starting address
The DBIT might be your problem - It has to be either 0 or 4 - you have to have your data lines as pins 0-3 or 4-7.
From the manual:
"If an 8-bit bus is used, all 8 bits must be on one port. If a 4-bit bus is used,
the top 4 LCD data bits must be connected to either the bottom 4 or top 4 bits of
one port. Enable and Register Select may be connected to any port pin. R/W may
be tied to ground if the LCDIN command is not used."
"I have noticed that even those who assert that everything is predestined and that
we can change nothing about it still look both ways before they cross the street"
-Stephen Hawking
Bookmarks