lcd hd44780u (lcd-ii) pc 1601-f + pc 0802-a - codes
DESCRIPTION
DatasheetTRANSCRIPT
-
!"#$
%& ')(+* , - . * / / 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- : 04 5 - 5E2 : 0 0 -!* 8=I!JLK KM N OJP Q=RTS Q U V WX+YJ!Z [ [
Y+P \ Q U P ] ] ^ UE_`JEU V a ^ U!Xb [ C
0 0 0 0 0 0 0 0 1 *
0 0 0 1
CGA
DDA
CGA
DDA
40us x250270
RS R/W DB DB DB DB DB DB DB DB7 6 5 4 2 1 03Description
Clears all display and returnsthe cursor to the home position(Address 0).
fosc is 250 kHz)
Execution Time
Returns the cursor to the homeposition (Address 0). Also returnsthe display being shifted to theoriginal position. DD RAMcontents remain unchanged.
0 0 0 0 0 0 0 S1 I/D
Set the cursor move directionand specifies or not to shift thedisplay. These operations areperformed during data write andread.Sets ON/OFF of all display (D),cursor ON/OFF (C), and blink ofcursor position character (B).
Clear Display
Return Home
Entry ModeSet
Display ON/OFF control
0 0 0 0 0 0 BCD1
0 0 0 0 0 0 0 0 0 1
Moves the cursor and shifts thedisplay without changing DDRAM contents.
0 0 0 0 0 **1 S/C R/L
Sets interface data length (DL),number of display lines(L) andcharacter font (F).
0 **FNDL
Cursor orDisplay Shift
Function Set
Set CG RAMAddress
Set DD RAMAddress
Sets the CG RAM address. CGRAM data is sent and receivedafter this setting.Sets the DD RAM address. DDRAM data is sent and receivedafter this setting.Reads Busy flag (BF) indicatinginternal operation is beingperformed and reads addresscounter contents.
Read BusyFlag &Address
0 0 0 1
0
0 0 1
1 BF
Write Datato CG or DD
DD RAM
Read Datafrom CG or
Write data into DD RAM or
Read data from DD RAM orCG RAM.
CG RAM.RAM
1.64 ms
1.64 ms
40 us
40 us
40 us
40 us
40 us
40 us
40 us
40 us
0 us
1 0
1 1
Write Data
Read Data
AC
Instruction Word for the LCD Controller & Driver (Hitachis HD44780)
S/C = 1: Display shift
I/D = 1: IncrementI/D = 0: Decrement
S = 1: Accompanies display shift
S/C = 0: Cursor moveR/L = 1: Shifts to the rightR/L = 0: Shifts to the left
N = 1: 2 lines, N = 0: 1 line
BF = 1: Internally operatingBF = 0: Can accept instruction
F = 1: 5x10 dots, F = 0: 5x7 dots
DL = 1: 8 bits, DL = 0: 4 bits
DD RAM: Display data RAMCG RAM: Character generator
RAM
AC: Address counter used forboth of DD and CG RAMaddress
: CG RAM address
: DD RAM addressCoresponds to cursoraddress.
Execution timechanges whenfrequencychanges.
= 37 us
fosc is 270 kHz:When fcp or(Example)
InstructionCode
* Dont Care
(when fcp or
G1 > 3 . 0H C H c& 3 FF5 . d* 8=(+* FF5 ,?4 28 * .+- : 0e!B!f f g h iE- d A?0(+* , - . * / / 0 .
H h