Hi robert,
If i refer to my, i'll get :
- 1 line contrast squares, 1 line blank, 1 line contrast squares, 1 line blank.
What is the difference between using a 4 bit bus vs an 8 bit bus? I am trying to use 8 bits 'cause, well I have them. I figured that 8 bits would either give faster communication or some other advantage.
i always use LCD in 4bit mode. This way you save I/O ( duh! ). It can be more faster... it has too but... who will see it??? i think nobody 
Don't forget the LCD Defines... 4 lines and blah blah blah. Be sure you disable analog comparator and place pull-up on RA4 pin.
In my case i'll place all LCD pins on PORTB. The define lines will look something like this
Code:
'********************** Lcd pinout ******************************
'
' B0-B3 : Data port
' B4 : Rs Bit
' B5 : E Bit
'
define LCD_DREG PORTB ' Set data pin of LCD to
define LCD_DBIT 0 ' PORTB.0-PORTB.3
define LCD_RSREG PORTB ' Set RS bit of LCD to
define LCD_RSBIT 4 ' PORTB.4
define LCD_EREG PORTB ' Set E bit of LCD to
define LCD_EBIT 5 ' PORTB.5
define LCD_LINES 4
Last edited by mister_e; - 31st January 2005 at 03:30.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks