Hello Folks.
Does anyone know how to control the LCD manually using 4 bits? Can someone give a example?
Here is how I do it using 8 bits:
Enable Var Porta.1
LCDDataCommand Var Porta.0
...
...
Portb=x+45 " or Whatever Value" (To display numbers)
LCDDataCommand=(High or low depending on if it is a command or data)
Toggle Enable to send that data to the LCD.
endProgram.
This is using all 8 bits of the LCD pins.
I would like to use the LSB 0-4 for data/command, but don't know how to toggle the data into the LCD.
My guess would be Toggling twice... one time with High Order bits, then immediately following with Low order bits. But then How do you make sure the LCD is in 4 bit Mode, and not 8 bit?
The purpose of this, is because I have very very little overhead, if I use my own LCD writing, compared to using a subroutine
Thanks very much.
Dwayne
Bookmarks