Jan said:
And I do not see how you can select a line in a 4 line display with one bit.
Are you talking about one bit on the interface or one bit in the LCD
control registers ??
Pin number Symbol Level I/O Function
1 Vss - - Power supply (GND)
2 Vcc - - Power supply (+5V)
3 Vee - - Contrast adjust
4 RS 0/1 I 0 = Instruction input/1 = Data input
5 R/W 0/1 I 0 = Write to LCD module/1 = Read from LCD module
6 E 1, 1->0 I Enable signal
7 DB0 0/1 I/O Data bus line 0 (LSB)
8 DB1 0/1 I/O Data bus line 1
9 DB2 0/1 I/O Data bus line 2
10 DB3 0/1 I/O Data bus line 3
11 DB4 0/1 I/O Data bus line 4
12 DB5 0/1 I/O Data bus line 5
13 DB6 0/1 I/O Data bus line 6
14 DB7 0/1 I/O Data bus line 7 (MSB)
I think the OP was wanting to use one bit on his micro to toggle the R/W
line.
As far as reading the busy bit, any character write to the display takes
about 40 uSec to process.
In the past when I used these controllers, I has used a 1mSec interrupt
to control a FIFO out to the LCD.
No looping at all.
If the display was large enough, you might see a flicker.
But a 20x2 display looks solid.
See:
http://ouwehand.net/~peter/lcd/lcd0.shtml
donald