Log in

View Full Version : PIC18F458 and LCD



Uffe
- 5th September 2005, 19:16
Hi: I'm a new user of this forum and hope I do it right.
hmmm.whel Here is my Question:

I got a PIC18F458 and 4bit connected LCD Display
connected as follow

DEFINE LCD_DREG PORTC
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTE
DEFINE LCD_RSBIT 2
DEFINE LCD_EREG PORTC
DEFINE LCD_EBIT 4
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_RWREG 0
DEFINE LCD_RWBIT 0
DEFINE LCD_COMMANDUS 5000
DEFINE LCD_DATAUS 100
DEFINE LCD_INITMS 100

I also set ADCON to I/O state.

The display show the chars I want but it don't
take the $ commands at all so
I't will not clear display or change row I only got the
charWalue and cursor jump displayed.
Do you got a' clue of what it can depend on?

ps: exuse my inglish but it i think it's better than your
swedish

mister_e
- 5th September 2005, 19:34
first time i heard about that!! Can you provide you LCD model?

Uffe
- 5th September 2005, 20:05
I hawe alredy fix the problem Melanie Told me to take away R/W Defines
After that it works nice.
The funny part is that it workt well whit PIC16F874A before I changed it.
And In The PBP Manual it is rekomended to Put R/W Defines to 0 when
R/W is conected to ground

Uffe
- 5th September 2005, 20:16
Sorry forgott to tell you about the LCD it is an LCM
GCT-16026-TS6L2C with LCDcore KS0066U + KS0065B