be sure your r/w pin (pin 5) on LCD is ground. Is when you're increase voltage on Vo (pin 3, kind of contrast) you see some black square block?
by the way PORTC is only 6 bits.... so you must you this define
; Set starting Data BIT (0 OR 4) IF 4-BIT bus
DEFINE LCD_DBIT 2 ;instead of 4
but not sure if it's gonna work
May use
DEFINE LCD_DBIT 0
do you use internal or external clock. In case you use internal clock you have to define OSCCON for proper clock mode.... factory is 32khz...really slow
datasheet p31 (pdf)
OSCCON=$60 ;set to internal 4MHZ clock
that will work now!!!
Last edited by mister_e; - 21st November 2004 at 22:38.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks