Hitachi 44780 Initialisation:
Order: Instruction: Code: Description:
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
1 Function Set 0 0 0 0 1 1 - - - - Startup initialization. Put display in command mode.
Put a delay of 4.1 ms or more between byte 1 and 2.
Put a delay of 100 μs or more between byte 2 and 3.
BUSY-flag cannot be read during first 3 bytes.
2 Function Set 0 0 0 0 1 1 - - - -
3 Function Set 0 0 0 0 1 1 - - - -
4 Function Set 0 0 0 0 1 DL N F - - Sets interface data length (DL), number of display lines (N) and character size (F)
5 Display On / Off Control 0 0 0 0 0 0 1 D C B Sets entire display ON / OFF (D), Cursor ON / OFF (C), and blink of cursor position character (B)
6 Clear Display 0 0 0 0 0 0 0 0 0 1 Clears entire display and sets DD RAM address 0 in address counter
4 Entry Mode Set 0 0 0 0 0 0 0 1 I / D S Sets cursor move direction and specifies shift of display. These operations are performed during data write and read.
DL = 1 : 8 bits; 0 : 4 bits
N = 1 : 2 lines; 0 : 1 line
F = 1 : 5x10 dots; 0 : 5x7 dots
I / D = 1 : Increment
I / D = 0 : Decrement
S = 1 : Accompanies display shift
- = no effect
DD RAM: Display Data RAM