3 wire mode has the advantage of latched outputs
so backlight control is steady vs flashing in the case of two wire mode.
When using 3 wire mode, it is possible to have direct control over E
rather than have to drive E from the shift register.
This reduces the SR updates to 1 per nibble and if you want to
give up backlight control, it can be 1 SR update per byte.
To do this you wire
AVR pin to lcd E pin
AVR pin to SR data pin
AVR pin to SR clock pin
lcd RS pin to SR data pin.
You clock in the data.
Set the data pin for the RS state.
Raise and lower E directly.
If you give up the backlight control you can even do 8 bit mode
on non latching parts like the 74ls164
or the latching 4094 (doesn't slip a bit like the HC595)
HC595 would have to run in 4 bit mode with the wiring
shifted down to compensate for the bit slip
when rclk and sclk are tied together.
See this page for an example of how to wire this up:
http://frank.bol.ucla.edu/AVR2LCD.htm
--- bill
Original issue reported on code.google.com by
bperry...@gmail.comon 13 Feb 2012 at 8:29