You are on page 1of 1

 


    ! " 
#$
%& ')(+* , - . * / / 0 .)1 2!3 2 0 4- *- 5 6 07 5 . 0 * 8+5 / /9- : 0 / * ;/ 0 < 0 /=7 * , - . * /2 1 > ,?5 / 2+. 0 @ 3 1 . 0 48 * .)A . * A?0 .!1 , - 0 . 8 5 7 0 ;)1 - :- : 0
%()BC D): 0)8 * / / * ;)1 , >E1 , 8 * . F5 - 1 * , 1 ,G1 > 3 . 0EH C HE1 2+- 5 6 0 ,8 . * F- : 0 4 5 - 5E2 : 0 0 -!* 8=I!JLK KM N OJ P Q=RTS Q U V W X+YJ!Z [ [
Y+P \ Q U P ] ] ^ UE_`JEU V a ^ U!Xb [ C

Instruction Word for the LCD Controller & Driver (Hitachi’s HD44780)

Code Execution Time


Instruction Description (when fcp or
RS R/W DB 7 DB 6 DB 5 DB 4 DB 3 DB 2 DB 1 DB 0 fosc is 250 kHz)

Clears all display and returns


Clear Display 0 0 0 0 0 0 0 0 0 1 the cursor to the home position 1.64 ms
(Address 0).
Returns the cursor to the home
position (Address 0). Also returns
Return Home 0 0 0 0 0 0 0 0 1 * the display being shifted to the 1.64 ms
original position. DD RAM
contents remain unchanged.
Set the cursor move direction
Entry Mode and specifies or not to shift the
0 0 0 0 0 0 0 1 I/D S display. These operations are 40 us
Set
performed during data write and
read.
Sets ON/OFF of all display (D),
Display ON/ 0 0 0 0 0 0 1 D C B cursor ON/OFF (C), and blink of 40 us
OFF control cursor position character (B).
Cursor or Moves the cursor and shifts the
Display Shift 0 0 0 0 0 1 S/C R/L * * display without changing DD 40 us
RAM contents.
Sets interface data length (DL),
Function Set 0 0 0 0 1 DL N F * * number of display lines(L) and 40 us
character font (F).
Sets the CG RAM address. CG
Set CG RAM 0 0 0 1 A RAM data is sent and received 40 us
Address CG after this setting.
Set DD RAM Sets the DD RAM address. DD
Address 0 0 1 A RAM data is sent and received 40 us
DD after this setting.
Read Busy Reads Busy flag (BF) indicating
Flag & 0 1 BF AC internal operation is being 0 us
Address performed and reads address
counter contents.
Write Data Write data into DD RAM or
to CG or DD 1 0 Write Data CG RAM. 40 us
RAM
Read Data Read data from DD RAM or
from CG or 1 1 Read Data 40 us
CG RAM.
DD RAM
I/D = 1: Increment DD RAM: Display data RAM Execution time
I/D = 0: Decrement CG RAM: Character generator changes when
S = 1: Accompanies display shift RAM frequency
S/C = 1: Display shift A : CG RAM address changes.
S/C = 0: Cursor move CG
R/L = 1: Shifts to the right A : DD RAM address (Example)
R/L = 0: Shifts to the left DD Coresponds to cursor When fcp or
DL = 1: 8 bits, DL = 0: 4 bits address. fosc is 270 kHz:
N = 1: 2 lines, N = 0: 1 line AC: Address counter used for 250
F = 1: 5x10 dots, F = 0: 5x7 dots both of DD and CG RAM 40us x
BF = 1: Internally operating 270
address
BF = 0: Can accept instruction = 37 us
* Don’t Care

G1 > 3 . 0 H C H c& 3 FF5 . d * 8=(+* FF5 ,?4 28 * .+- : 0e!B!f f g h iE- d A?0(+* , - . * / / 0 .

Hh

You might also like