Datasheet docs

Unknown manufacturer

DFRobot DFR0063 I2C 16x2 LCD Display Module

Public datasheet page with the original PDF, converted markdown, extracted images, and search APIs.

HD44780U (LCD-II)

(Dot Matrix Liquid Crystal Display Controller/Driver)

HITACHI

ADE-207-272(Z) '99.9 Rev. 0.0

Description

The HD44780U dot-matrix liquid crystal display controller and driver LSI displays alphanumerics, Japanese kana characters, and symbols. It can be configured to drive a dot-matrix liquid crystal display under the control of a 4- or 8-bit microprocessor. Since all the functions such as display RAM, character generator, and liquid crystal driver, required for driving a dot-matrix liquid crystal display are internally provided on one chip, a minimal system can be interfaced with this controller/driver.

A single HD44780U can display up to one 8-character line or two 8-character lines.

The HD44780U has pin function compatibility with the HD44780S which allows the user to easily replace an LCD-II with an HD44780U. The HD44780U character generator ROM is extended to generate 208 5 × 8 dot character fonts and 32 5 × 10 dot character fonts for a total of 240 different character fonts

The low power supply (2.7V to 5.5V) of the HD44780U is suitable for any portable battery-driven product requiring low power dissipation.

Features

• 5 × 8 and 5 × 10 dot matrix possible

• Low power operation support:  2.7 to 5.5V

• Wide range of liquid crystal display driver power  3.0 to 11V

• Liquid crystal drive waveform

 A (One line frequency AC waveform)

• Correspond to high speed MPU bus interface  2 MHz (when $\mathrm { V } _ { \mathrm { C C } } = 5 \mathrm { V } )$

• 4-bit or 8-bit MPU interface enabled

• 80 × 8-bit display RAM (80 characters max.)

• 9,920-bit character generator ROM for a total of 240 character fonts

 208 character fonts (5 × 8 dot)

 32 character fonts (5 × 10 dot)

HD44780U

• 64 × 8-bit character generator RAM

 8 character fonts (5 × 8 dot)

 4 character fonts (5 × 10 dot)

• 16-common × 40-segment liquid crystal display driver

• Programmable duty cycles

 1/8 for one line of 5 × 8 dots with cursor

 1/11 for one line of 5 × 10 dots with cursor

 1/16 for two lines of 5 × 8 dots with cursor

• Wide range of instruction functions:

 Display clear, cursor home, display on/off, cursor on/off, display character blink, cursor shift, display shift

• Pin function compatibility with HD44780S

• Automatic reset circuit that initializes the controller/driver after power on

• Internal oscillator with external resistors

• Low power consumption

Ordering Information

Type No.PackageCGROM
HD44780UA00FSFP-80BJapanese standard font
HCD44780UA00Chip
HD44780UA00TFTFP-80F
HD44780UA02FSFP-80BEuropean standard font
HCD44780UA02Chip
HD44780UA02TFTFP-80F
HD44780UBxxFSFP-80BCustom font
HCD44780UBxxChip
HD44780UBxxTFTFP-80F

Note: xx: ROM code No.

HD44780U Block Diagram

HD44780U Pin Arrangement (FP-80B)

SEG23SEG24SEG25SEG26SEG27SEG28SEG29SEG30SEG31SEG32SEG33SEG34SEG35SEG36SEG37SEG38
80797877767574737271706968676665
SEG221
SEG212
SEG203
SEG194
SEG185
SEG176
SEG167
SEG158
SEG149
SEG1310
SEG1211
SEG1112
SEG1013
SEG914
SEG815
SEG716
SEG617
SEG518
SEG419
SEG320
SEG221
SEG122
GND23
OSC124

HD44780U Pin Arrangement (TFP-80F)

SEG21SEG22SEG23SEG24SEG25SEG26SEG27SEG28SEG29SEG30SEG31SEG32SEG33SEG34SEG35SEG36SEG37SEG38SEG39SEG40
8079787776757473727170696867666564636261
SEG201COM16
SEG192COM15
SEG183COM14
SEG174COM13
SEG165COM12
SEG156COM11
SEG147COM10
SEG138COM9
SEG129COM8
SEG1110COM7
SEG1011COM6
SEG912COM5
SEG813COM4
SEG714COM3
SEG615COM2
SEG516COM1
SEG417DB7
SEG318DB6
SEG219DB5
SEG120DB4
GND2122232425262728293031323334353637383940
OSC122232425262728293031323334353637383940
OSC2232425262728293031323334353637383940

HD44780U Pad Arrangement

HCD44780U Pad Location Coordinates

CoordinateCoordinate
Pad No.FunctionX (um)Y (um)Pad No.FunctionX (um)Y (um)
1SEG22-2100231341DB22070-2290
2SEG21-2280231342DB32260-2290
3SEG20-2313208943DB42290-2099
4SEG19-2313183344DB52290-1883
5SEG18-2313161745DB62290-1667
6SEG17-2313140146DB72290-1452
7SEG16-2313118647COM12313-1186
8SEG15-231397048COM22313-970
9SEG14-231375549COM32313-755
10SEG13-231353950COM42313-539
11SEG12-231332351COM52313-323
12SEG11-231310852COM62313-108
13SEG10-2313-10853COM72313108
14SEG9-2313-32354COM82313323
15SEG8-2313-53955COM92313539
16SEG7-2313-75556COM102313755
17SEG6-2313-97057COM112313970
18SEG5-2313-118658COM1223131186
19SEG4-2313-140159COM1323131401
20SEG3-2313-161760COM1423131617
21SEG2-2313-183361COM1523131833
22SEG1-2313-207362COM1623132095
23GND-2280-229063SEG4022962313
24OSC1-2080-229064SEG3921002313
25OSC2-1749-229065SEG3816172313
26V1-1550-229066SEG3714012313
27V2-1268-229067SEG3611862313
28V3-941-229068SEG359702313
29V4-623-229069SEG347552313
30V5-304-229070SEG335392313
31CL1-48-229071SEG323232313
32CL2142-229072SEG311082313
33 $V_{cc}$ 309-229073SEG30-1082313
34M475-229074SEG29-3232313
35D665-229075SEG28-5392313
36RS832-229076SEG27-7552313
37R/W1022-229077SEG26-9702313
38E1204-229078SEG25-11862313
39DB01454-229079SEG24-14012313
40DB11684-229080SEG23-16172313

HD44780U

Pin Functions

SignalNo. of LinesI/ODevice Interfaced withFunction
RS1IMPUSelects registers.0: Instruction register (for write) Busy flag: address counter (for read)1: Data register (for write and read)
R/W1IMPUSelects read or write.0: Write1: Read
E1IMPUStarts data read/write.
DB4 to DB74I/OMPUFour high order bidirectional tristate data bus pins. Used for data transfer and receive between the MPU and the HD44780U. DB7 can be used as a busy flag.
DB0 to DB34I/OMPUFour low order bidirectional tristate data bus pins. Used for data transfer and receive between the MPU and the HD44780U.These pins are not used during 4-bit operation.
CL11OExtension driverClock to latch serial data D sent to the extension driver
CL21OExtension driverClock to shift serial data D
M1OExtension driverSwitch signal for converting the liquid crystal drive waveform to AC
D1OExtension driverCharacter pattern data corresponding to each segment signal
COM1 to COM1616OLCDCommon signals that are not used are changed to non-selection waveforms. COM9 to COM16 are non-selection waveforms at 1/8 duty factor and COM12 to COM16 are non-selection waveforms at 1/11 duty factor.
SEG1 to SEG4040OLCDSegment signals
V1 to V55—Power supplyPower supply for LCD drive $V_{cc} - V5 = 11 \text{ V (max)}$
$V_{cc}$ , GND2—Power supply $V_{cc}$ : 2.7V to 5.5V, GND: 0V
OSC1, OSC22—Oscillation resistor clockWhen crystal oscillation is performed, a resistor must be connected externally. When the pin input is an external clock, it must be input to OSC1.

Function Description

Registers

The HD44780U has two 8-bit registers, an instruction register (IR) and a data register (DR).

The IR stores instruction codes, such as display clear and cursor shift, and address information for display data RAM (DDRAM) and character generator RAM (CGRAM). The IR can only be written from the MPU.

The DR temporarily stores data to be written into DDRAM or CGRAM and temporarily stores data to be read from DDRAM or CGRAM. Data written into the DR from the MPU is automatically written into DDRAM or CGRAM by an internal operation. The DR is also used for data storage when reading data from DDRAM or CGRAM. When address information is written into the IR, data is read and then stored into the DR from DDRAM or CGRAM by an internal operation. Data transfer between the MPU is then completed when the MPU reads the DR. After the read, data in DDRAM or CGRAM at the next address is sent to the DR for the next read from the MPU. By the register selector (RS) signal, these two registers can be selected (Table 1).

Busy Flag (BF)

When the busy flag is 1, the HD44780U is in the internal operation mode, and the next instruction will not be accepted. When RS = 0 and R/W = 1 (Table 1), the busy flag is output to DB7. The next instruction must be written after ensuring that the busy flag is 0.

Address Counter (AC)

The address counter (AC) assigns addresses to both DDRAM and CGRAM. When an address of an instruction is written into the IR, the address information is sent from the IR to the AC. Selection of either DDRAM or CGRAM is also determined concurrently by the instruction.

After writing into (reading from) DDRAM or CGRAM, the AC is automatically incremented by 1 (decremented by 1). The AC contents are then output to DB0 to DB6 when RS = 0 and R/W = 1 (Table 1).

Table 1 Register Selection

RSR/WOperation
00IR write as an internal operation (display clear, etc.)
01Read busy flag (DB7) and address counter (DB0 to DB6)
10DR write as an internal operation (DR to DDRAM or CGRAM)
11DR read as an internal operation (DDRAM or CGRAM to DR)

Display Data RAM (DDRAM)

Display data RAM (DDRAM) stores display data represented in 8-bit character codes. Its extended capacity is 80 × 8 bits, or 80 characters. The area in display data RAM (DDRAM) that is not used for display can be used as general data RAM. See Figure 1 for the relationships between DDRAM addresses and positions on the liquid crystal display.

The DDRAM address (A ) is set in the address counter (AC) as hexadecimal.

• 1-line display (N = 0) (Figure 2)

 When there are fewer than 80 display characters, the display begins at the head position. For example, if using only the HD44780, 8 characters are displayed. See Figure 3.

When the display shift operation is performed, the DDRAM address shifts. See Figure 3.


Figure 1 DDRAM Address


Figure 2 1-Line Display


Figure 3 1-Line by 8-Character Display Example

• 2-line display (N = 1) (Figure 4)

 Case 1: When the number of display characters is less than 40 × 2 lines, the two lines are displayed from the head. Note that the first line end address and the second line start address are not consecutive. For example, when just the HD44780 is used, 8 characters × 2 lines are displayed. See Figure 5.

When display shift operation is performed, the DDRAM address shifts. See Figure 5.


Figure 4 2-Line Display


Figure 5 2-Line by 8-Character Display Example

HD44780U

 Case 2: For a 16-character × 2-line display, the HD44780 can be extended using one 40-output extension driver. See Figure 6.

When display shift operation is performed, the DDRAM address shifts. See Figure 6.


Figure 6 2-Line by 16-Character Display Example

Character Generator ROM (CGROM)

The character generator ROM generates 5 × 8 dot or 5 × 10 dot character patterns from 8-bit character codes (Table 4). It can generate 208 5 × 8 dot character patterns and 32 5 × 10 dot character patterns. Userdefined character patterns are also available by mask-programmed ROM.

Character Generator RAM (CGRAM)

In the character generator RAM, the user can rewrite character patterns by program. For 5 × 8 dots, eight character patterns can be written, and for 5 × 10 dots, four character patterns can be written.

Write into DDRAM the character codes at the addresses shown as the left column of Table 4 to show the character patterns stored in CGRAM.

See Table 5 for the relationship between CGRAM addresses and data and display patterns.

Areas that are not used for display can be used as general data RAM.

Modifying Character Patterns

• Character pattern development procedure

The following operations correspond to the numbers listed in Figure 7:

  1. Determine the correspondence between character codes and character patterns.

  2. Create a listing indicating the correspondence between EPROM addresses and data.

  3. Program the character patterns into the EPROM.

  4. Send the EPROM to Hitachi.

  5. Computer processing on the EPROM is performed at Hitachi to create a character pattern listing, which is sent to the user.

  6. If there are no problems within the character pattern listing, a trial LSI is created at Hitachi and samples are sent to the user for evaluation. When it is confirmed by the user that the character patterns are correctly written, mass production of the LSI proceeds at Hitachi.


Figure 7 Character Pattern Development Procedure

HITACHI

• Programming character patterns

This section explains the correspondence between addresses and data used to program character patterns in EPROM. The HD44780U character generator ROM can generate 208 5 × 8 dot character patterns and 32 5 × 10 dot character patterns for a total of 240 different character patterns.

 Character patterns

EPROM address data and character pattern data correspond with each other to form a 5 × 8 or 5 × 10 dot character pattern (Tables 2 and 3).

Table 2 Example of Correspondence between EPROM Address Data and Character Pattern (5 × 8 Dots)

$$
\begin{array}{c c} \text {EPROM Address} & \text {Data} \ \hline A 1 1 A 1 0 A 9 A 8 A 7 A 6 A 5 A 4 & \text {LSB} \ \hline 0 & 1 1 0 0 0 1 0 \ \hline & \text {Cursor position} \ \hline & \text {Line position} \ \hline & \end{array}
$$

Notes: 1. EPROM addresses A11 to A4 correspond to a character code.

  1. EPROM addresses A3 to A0 specify a line position of the character pattern.

  2. EPROM data O4 to O0 correspond to character pattern data.

  3. EPROM data O5 to O7 must be specified as 0.

  4. A lit display position (black) corresponds to a 1.

  5. Line 9 and the following lines must be blanked with 0s for a 5 × 8 dot character fonts.

HD44780U

 Handling unused character patterns

  1. EPROM data outside the character pattern area: Always input 0s.

  2. EPROM data in CGRAM area: Always input 0s. (Input 0s to EPROM addresses 00H to FFH.)

  3. EPROM data used when the user does not use any HD44780U character pattern: According to the user application, handled in one of the two ways listed as follows.

a. When unused character patterns are not programmed: If an unused character code is written into DDRAM, all its dots are lit. By not programing a character pattern, all of its bits become lit. (This is due to the EPROM being filled with 1s after it is erased.)

b. When unused character patterns are programmed as 0s: Nothing is displayed even if unused character codes are written into DDRAM. (This is equivalent to a space.)

Table 3 Example of Correspondence between EPROM Address Data and Character Pattern (5 × 10 Dots)

Notes: 1. EPROM addresses A11 to A3 correspond to a character code.
2. EPROM addresses A3 to A0 specify a line position of the character pattern.
3. EPROM data O4 to O0 correspond to character pattern data.
4. EPROM data O5 to O7 must be specified as 0.
5. A lit display position (black) corresponds to a 1.
6. Line 11 and the following lines must be blanked with 0s for a 5 × 10 dot character fonts.

Table 4 Correspondence between Character Codes and Character Patterns (ROM Code: A00)

Lower 4 Bits0000000100100011010001010110011110001001101010111100110111101111
xxxx0000CG RAM (1)99P`P-?=?P
xxxx0001(2)!1ADa?..?????
xxxx0010(3)!2BRbP????P?
xxxx0011(4)#3CScs.?????
xxxx0100(5)#4DTdt.?????
xxxx0101(6)?5EUeu..?????
xxxx0110(7)&6FUFv??==??
xxxx0111(8)?7GWgw??????
xxxx1000(1)(8HXhx??????
xxxx1001(2)?9IYiy??JJ?Y
xxxx1010(3)+:JZJZ??????
xxxx1011(4)+;KLKL??????
xxxx1100(5),<L#ll??????
xxxx1101(6)-=MJm???????
xxxx1110(7),>N^n+=????
xxxx1111(8)/?0...o+??????

Note: The user can specify any pattern for character-generator RAM.

Table 4 Correspondence between Character Codes and Character Patterns (ROM Code: A02)

Lower 4 Bits\Upper 40000000100100011010001010110011110001001101010111100110111101111
xxxx0000CG RAM(1)99PP6IIIUAD35
xxxx0001(2)1A0a4HJi±AN3N
xxxx0010(3)2BRbrWΓΦ2AD3D
xxxx0011(4)3CScs3πξ3AD3D
xxxx0100(5)4DTdtHΣxEAδ3δ
xxxx0101(6)5EUeuNσ¥UAδ3δ
xxxx0110(7)6FVFvJθιθεδ2δ
xxxx0111(8)7GWgwΠτΣCxφ÷
xxxx1000(1)8Hxhxy#φωεφεφ
xxxx1001(2)9IYiyWθΩ1εΩεΩ
xxxx1010(3):JZjz4o3ρεΩεΩ
xxxx1011(4):KLk(IIIδxxεΩεΩ
xxxx1100(5)<L\llIIIxIIKiΩiΩ
xxxx1101(6)=MJm?b##Kiγiγ
xxxx1110(7)>H^n-WεΩγiβiβ
xxxx1111(8)?Ooo3Ω:ziβiβ

Table 5 Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character Patterns (CGRAM Data)
For 5 × 8 dot character patterns

Character Codes(DDRAM data)CGRAM AddressCharacter Patterns(CGRAM data)
7 6 5 4 3 2 1 0High Low5 4 3 2 1 0High Low7 6 5 4 3 2 1 0High Low
0 0 0 0 * 0 0 00 0 00 0 00 0 10 1 00 1 11 0 01 0 11 0 11 1 01 1 1* * *1 1 1 1 0↑1 0 0 0 11 0 0 0 11 1 1 1 01 0 1 0 01 0 0 1 01 0 0 0 1* * *0 0 0 0 0
0 0 0 0 * 0 0 10 0 10 0 00 0 10 1 00 1 11 0 01 0 11 0 11 1 01 1 1* * *1 0 0 0 1↑0 1 0 1 01 1 1 1 11 0 0 1 0 01 1 1 1 1 10 0 1 0 00 0 1 0 0* * *0 0 0 0 0
0 0 00 0 1* * *
0 0 0 0 * 1 1 11 1 11 0 01 0 11 1 01 1 1* * *

Notes: 1. Character code bits 0 to 2 correspond to CGRAM address bits 3 to 5 (3 bits: 8 types).
2. CGRAM address bits 0 to 2 designate the character pattern line position. The 8th line is the cursor position and its display is formed by a logical OR with the cursor.
Maintain the 8th line data, corresponding to the cursor display position, at 0 as the cursor display. If the 8th line data is 1, 1 bits will light up the 8th line regardless of the cursor presence.
3. Character pattern row positions correspond to CGRAM data bits 0 to 4 (bit 4 being at the left).
4. As shown Table 5, CGRAM character patterns are selected when character code bits 4 to 7 are all 0. However, since character code bit 3 has no effect, the R display example above can be selected by either character code 00H or 08H.
5. 1 for CGRAM data corresponds to display selection and 0 to non-selection.

* Indicates no effect.

Table 5 Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character Patterns (CGRAM Data) (cont)

For 5 × 10 dot character patterns

Character Codes(DDRAM data)CGRAM AddressCharacter Patterns(CGRAM data)
7 6 5 4 3 2 1 0High Low5 4 3 2 1 0High Low7 6 5 4 3 2 1 0High Low
0 0 0 0 * 0 0 *0 00 0 0 00 0 0 10 0 1 00 0 1 10 1 0 00 1 0 10 1 1 00 1 1 11 0 0 01 0 0 11 0 1 0* * *↑1 0 1 1 01 1 0 0 11 0 0 0 11 1 1 1 01 0 0 0 01 0 0 0 01 0 0 0 00 0 0 0 00 0 0 0 001 1 0Character patternCursor position
1 0 1 11 1 0 01 1 0 11 1 1 01 1 1 1* * *↑* * *0 0 0 0 0* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0 0 0 00 0 0 1* * *↑* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0 0 0 0 * 1 1 *1 11 0 0 11 0 1 0* * *↑* * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
1 0 1 11 1 0 01 1 0 11 1 0 11 1 1 01 1 1 1* * *↑* * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Notes: 1. Character code bits 1 and 2 correspond to CGRAM address bits 4 and 5 (2 bits: 4 types).
2. CGRAM address bits 0 to 3 designate the character pattern line position. The 11th line is the cursor position and its display is formed by a logical OR with the cursor. Maintain the 11th line data corresponding to the cursor display positon at 0 as the cursor display. If the 11th line data is “1”, “1” bits will light up the 11th line regardless of the cursor presence. Since lines 12 to 16 are not used for display, they can be used for general data RAM.
3. Character pattern row positions are the same as $5 \times 8$ dot character pattern positions.
4. CGRAM character patterns are selected when character code bits 4 to 7 are all 0. However, since character code bits 0 and 3 have no effect, the P display example above can be selected by character codes 00H, 01H, 08H, and 09H.
5. 1 for CGRAM data corresponds to display selection and 0 to non-selection.

* Indicates no effect.

Timing Generation Circuit

The timing generation circuit generates timing signals for the operation of internal circuits such as DDRAM, CGROM and CGRAM. RAM read timing for display and internal operation timing by MPU access are generated separately to avoid interfering with each other. Therefore, when writing data to DDRAM, for example, there will be no undesirable interferences, such as flickering, in areas other than the display area.

Liquid Crystal Display Driver Circuit

The liquid crystal display driver circuit consists of 16 common signal drivers and 40 segment signal drivers. When the character font and number of lines are selected by a program, the required common signal drivers automatically output drive waveforms, while the other common signal drivers continue to output non-selection waveforms.

Sending serial data always starts at the display data character pattern corresponding to the last address of the display data RAM (DDRAM).

Since serial data is latched when the display data character pattern corresponding to the starting address enters the internal shift register, the HD44780U drives from the head display.

Cursor/Blink Control Circuit

The cursor/blink control circuit generates the cursor or character blinking. The cursor or the blinking will appear with the digit located at the display data RAM (DDRAM) address set in the address counter (AC).

For example (Figure 8), when the address counter is 08H, the cursor position is displayed at DDRAM address 08H.

Figure 8 Cursor/Blink Display Example

HITACHI

Interfacing to the MPU

The HD44780U can send data in either two 4-bit operations or one 8-bit operation, thus allowing interfacing with 4- or 8-bit MPUs.

• For 4-bit interface data, only four bus lines (DB4 to DB7) are used for transfer. Bus lines DB0 to DB3 are disabled. The data transfer between the HD44780U and the MPU is completed after the 4-bit data has been transferred twice. As for the order of data transfer, the four high order bits (for 8-bit operation, DB4 to DB7) are transferred before the four low order bits (for 8-bit operation, DB0 to DB3).

The busy flag must be checked (one instruction) after the 4-bit data has been transferred twice. Two more 4-bit operations then transfer the busy flag and address counter data.

• For 8-bit interface data, all eight bus lines (DB0 to DB7) are used.


Figure 9 4-Bit Transfer Example

Reset Function

Initializing by Internal Reset Circuit

An internal reset circuit automatically initializes the HD44780U when the power is turned on. The following instructions are executed during the initialization. The busy flag (BF) is kept in the busy state until the initialization ends (BF = 1). The busy state lasts for 10 ms after $\mathrm { v _ { c c } }$ rises to 4.5 V.

  1. Display clear

  2. Function set:

DL = 1; 8-bit interface data

N = 0; 1-line display

F = 0; 5 × 8 dot character font

  1. Display on/off control:

D = 0; Display off

C = 0; Cursor off

B = 0; Blinking off

  1. Entry mode set:

I/D = 1; Increment by 1

S = 0; No shift

Note: If the electrical characteristics conditions listed under the table Power Supply Conditions Using Internal Reset Circuit are not met, the internal reset circuit will not operate normally and will fail to initialize the HD44780U. For such a case, initial-ization must be performed by the MPU as explained in the section, Initializing by Instruction.

Instructions

Outline

Only the instruction register (IR) and the data register (DR) of the HD44780U can be controlled by the MPU. Before starting the internal operation of the HD44780U, control information is temporarily stored into these registers to allow interfacing with various MPUs, which operate at different speeds, or various peripheral control devices. The internal operation of the HD44780U is determined by signals sent from the MPU. These signals, which include register selection signal (RS), read/

write signal $( \mathbb { R } / \overline { { \mathbb { W } } } )$ , and the data bus (DB0 to DB7), make up the HD44780U instructions (Table 6). There are four categories of instructions that:

• Designate HD44780U functions, such as display format, data length, etc.

• Set internal RAM addresses

• Perform data transfer with internal RAM

• Perform miscellaneous functions

HD44780U

Normally, instructions that perform data transfer with internal RAM are used the most. However, autoincrementation by 1 (or auto-decrementation by 1) of internal HD44780U RAM addresses after each data write can lighten the program load of the MPU. Since the display shift instruction (Table 11) can perform concurrently with display data write, the user can minimize system development time with maximum programming efficiency.

When an instruction is being executed for internal operation, no instruction other than the busy flag/address read instruction can be executed.

Because the busy flag is set to 1 while an instruction is being executed, check it to make sure it is 0 before sending another instruction from the MPU.

Note: Be sure the HD44780U is not in the busy state (BF = 0) before sending an instruction from the MPU to the HD44780U. If an instruction is sent without checking the busy flag, the time between the first instruction and next instruction will take much longer than the instruction time itself. Refer to Table 6 for the list of each instruc-tion execution time.

Table 6 Instructions

InstructionCodeDescriptionExecution Time (max) (when $f_{cp}$ or $f_{osc}$ is 270 kHz)
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Clear display0000000001Clears entire display and sets DDRAM address 0 in address counter.
Return home000000001—Sets DDRAM address 0 in address counter. Also returns display from being shifted to original position. DDRAM contents remain unchanged.1.52 ms
Entry mode set00000001I/DSSets cursor move direction and specifies display shift. These operations are performed during data write and read.37 μs
Display on/off control0000001DCBSets entire display (D) on/off, cursor on/off (C), and blinking of cursor position character (B).37 μs
Cursor or display shift000001S/CR/L——Moves cursor and shifts display without changing DDRAM contents.37 μs
Function set00001DLNF——Sets interface data length (DL), number of display lines (N), and character font (F).37 μs
Set CGRAM address0001ACGACGACGACGACGACGSets CGRAM address. CGRAM data is sent and received after this setting.37 μs
Set DDRAM address001ADDADDADDADDADDADDADDSets DDRAM address. DDRAM data is sent and received after this setting.37 μs
Read busy flag & address01BFACACACACACACACReads busy flag (BF) indicating internal operation is being performed and reads address counter contents.0 μs

Table 6 Instructions (cont)

InstructionCodeDescriptionExecution Time (max) (when $f_{cp}$ or $f_{OSC}$ is 270 kHz)
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Write data to CG or DDRAM10Write dataWrites data into DDRAM or CGRAM.37 μs $t_{ADD}=4 μs^*$
Read data from CG or DDRAM11Read dataReads data from DDRAM or CGRAM.37 μs $t_{ADD}=4 μs^*$
I/D= 1:IncrementDDRAM: Display data RAMExecution time changes when frequency changes
I/D= 0:DecrementCGRAM: Character generator RAM
S= 1:Accompanies display shiftACG: CGRAM addressExample:When $f_{cp}$ or $f_{OSC}$ is 250 kHz,
S/C= 1:Display shiftADD: DDRAM address (corresponds to cursor address)
S/C= 0:Cursor moveAC: Address counter used for both DD and CGRAM addresses
R/L= 1:Shift to the right
R/L= 0:Shift to the left
DL= 1:8 bits, DL = 0: 4 bits
N= 1:2 lines, N = 0: 1 line
F= 1:5 × 10 dots, F = 0: 5 × 8 dots
BF= 1:Internally operating
BF= 0:Instructions acceptable

Note: — indicates no effect.
大 After execution of the CGRAM/DDRAM data write or read instruction, the RAM address counter is incremented or decremented by 1. The RAM address counter is updated after the busy flag turns off. In Figure $1 0 , \mathfrak { t } _ { \mathtt { A D D } }$ is the time elapsed after the busy flag turns off until the address counter is updated.

Figure 10 Address Counter Update

Instruction Description

Clear Display

Clear display writes space code 20H (character pattern for character code 20H must be a blank pattern) into all DDRAM addresses. It then sets DDRAM address 0 into the address counter, and returns the display to its original status if it was shifted. In other words, the display disappears and the cursor or blinking goes to the left edge of the display (in the first line if 2 lines are displayed). It also sets I/D to 1 (increment mode) in entry mode. S of entry mode does not change.

Return Home

Return home sets DDRAM address 0 into the address counter, and returns the display to its original status if it was shifted. The DDRAM contents do not change.

The cursor or blinking go to the left edge of the display (in the first line if 2 lines are displayed).

Entry Mode Set

I/D: Increments (I/D = 1) or decrements (I/D = 0) the DDRAM address by 1 when a character code is written into or read from DDRAM.

The cursor or blinking moves to the right when incremented by 1 and to the left when decremented by 1. The same applies to writing and reading of CGRAM.

S: Shifts the entire display either to the right (I/D = 0) or to the left (I/D = 1) when S is 1. The display does not shift if S is 0.

If S is 1, it will seem as if the cursor does not move but the display does. The display does not shift when reading from DDRAM. Also, writing into or reading out from CGRAM does not shift the display.

Display On/Off Control

D: The display is on when D is 1 and off when D is 0. When off, the display data remains in DDRAM, but can be displayed instantly by setting D to 1.

C: The cursor is displayed when C is 1 and not displayed when C is 0. Even if the cursor disappears, the function of I/D or other specifications will not change during display data write. The cursor is displayed using 5 dots in the 8th line for 5 × 8 dot character font selection and in the 11th line for the 5 × 10 dot character font selection (Figure 13).

B: The character indicated by the cursor blinks when B is 1 (Figure 13). The blinking is displayed as switching between all blank dots and displayed characters at a speed of 409.6-ms intervals when $\mathrm { f _ { c p } }$ or fOSC is 250 kHz. The cursor and blinking can be set to display simultaneously. (The blinking frequency changes according to $\mathrm { f _ { O S C } }$ or the reciprocal of $\mathrm { f _ { c p } } .$ . For example, when $\mathbf { f } _ { \mathrm { c p } }$ is 270 kHz, $4 0 9 . 6 \times 2 5 0 / 2 7 0 = 3 7 9 . 2 \ \mathrm { m s } . )$

Cursor or Display Shift

Cursor or display shift shifts the cursor position or display to the right or left without writing or reading display data (Table 7). This function is used to correct or search the display. In a 2-line display, the cursor moves to the second line when it passes the 40th digit of the first line. Note that the first and second line displays will shift at the same time.

When the displayed data is shifted repeatedly each line moves only horizontally. The second line display does not shift into the first line position.

The address counter (AC) contents will not change if the only action performed is a display shift.

Function Set

DL: Sets the interface data length. Data is sent or received in 8-bit lengths (DB7 to DB0) when DL is 1, and in 4-bit lengths (DB7 to DB4) when DL is 0.When 4-bit length is selected, data must be sent or received twice.

N: Sets the number of display lines.

F: Sets the character font.

Note: Perform the function at the head of the program before executing any instructions (except for the read busy flag and address instruction). From this point, the function set instruction cannot be executed unless the interface data length is changed.

Set CGRAM Address

Set CGRAM address sets the CGRAM address binary AAAAAA into the address counter.

Data is then written to or read from the MPU for CGRAM.

RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Clear displayCode0000000001
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Return homeCode000000001*Note: * Don't care.
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Entry mode setCode00000001I/DS
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Display on/off controlCode0000001DCB
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Cursor or display shiftCode000001S/CR/L**Note: * Don't care.
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Function setCode00001DLNF**
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Set CGRAM addressCode0001AAAAAA

Figure 11 Instruction (1)

Set DDRAM Address

Set DDRAM address sets the DDRAM address binary AAAAAAA into the address counter.

Data is then written to or read from the MPU for DDRAM.

However, when N is 0 (1-line display), AAAAAAA can be 00H to 4FH. When N is 1 (2-line display), AAAAAAA can be 00H to 27H for the first line, and 40H to 67H for the second line.

Read Busy Flag and Address

Read busy flag and address reads the busy flag (BF) indicating that the system is now internally operating on a previously received instruction. If BF is 1, the internal operation is in progress. The next instruction will not be accepted until BF is reset to 0. Check the BF status before the next write operation. At the same time, the value of the address counter in binary AAAAAAA is read out. This address counter is used by both CG and DDRAM addresses, and its value is determined by the previous instruction. The address contents are the same as for instructions set CGRAM address and set DDRAM address.

Table 7 Shift Function

S/CR/L
00Shifts the cursor position to the left. (AC is decremented by one.)
01Shifts the cursor position to the right. (AC is incremented by one.)
10Shifts the entire display to the left. The cursor follows the display shift.
11Shifts the entire display to the right. The cursor follows the display shift.

Table 8 Function Set

NFNo. of Display LinesCharacter FontDuty FactorRemarks
0015 × 8 dots1/8
0115 × 10 dots1/11
1*25 × 8 dots1/16Cannot display two lines for 5 × 10 dot character font

Note: * Indicates don’t care.


Figure 12 Cursor and Blinking


Figure 13 Instruction (2)

Write Data to CG or DDRAM

Write data to CG or DDRAM writes 8-bit binary data DDDDDDDD to CG or DDRAM.

To write into CG or DDRAM is determined by the previous specification of the CGRAM or DDRAM address setting. After a write, the address is automatically incremented or decremented by 1 according to the entry mode. The entry mode also determines the display shift.

Read Data from CG or DDRAM

Read data from CG or DDRAM reads 8-bit binary data DDDDDDDD from CG or DDRAM.

The previous designation determines whether CG or DDRAM is to be read. Before entering this read instruction, either CGRAM or DDRAM address set instruction must be executed. If not executed, the first read data will be invalid. When serially executing read instructions, the next address data is normally read from the second read. The address set instructions need not be executed just before this read instruction when shifting the cursor by the cursor shift instruction (when reading out DDRAM). The operation of the cursor shift instruction is the same as the set DDRAM address instruction.

After a read, the entry mode automatically increases or decreases the address by 1. However, display shif is not executed regardless of the entry mode.

Note: The address counter (AC) is automatically incremented or decremented by 1 after the write instructions to CGRAM or DDRAM are executed. The RAM data selected by the AC cannot be read out at this time even if read instructions are executed. Therefore, to correctly read data, execute either the address set instruction or cursor shift instruction (only with DDRAM), then just before reading the desired data, execute the read instruction from the second time the read instruction is sent.

Figure 14 Instruction (3)

Interfacing the HD44780U

Interface to MPUs

• Interfacing to an 8-bit MPU

See Figure 16 for an example of using a I/O port (for a single-chip microcomputer) as an interface device.

In this example, P30 to P37 are connected to the data bus DB0 to DB7, and P75 to P77 are connected to E, R/W, and RS, respectively.


Figure 15 Example of Busy Flag Check Timing Sequence


Figure 16 H8/325 Interface (Single-Chip Mode)

• Interfacing to a 4-bit MPU

The HD44780U can be connected to the I/O port of a 4-bit MPU. If the I/O port has enough bits, 8-bit data can be transferred. Otherwise, one data transfer must be made in two operations for 4-bit data. In this case, the timing sequence becomes somewhat complex. (See Figure 17.)

See Figure 18 for an interface example to the HMCS4019R.

Note that two cycles are needed for the busy flag check as well as for the data transfer. The 4-bi operation is selected by the program.

Figure 17 Example of 4-Bit Data Transfer Timing Sequence


Figure 18 Example of Interface to HMCS4019R

HD44780U

Interface to Liquid Crystal Display

Character Font and Number of Lines: The HD44780U can perform two types of displays, $5 \times 8$ dot and $5 \times 1 0$ dot character fonts, each with a cursor.

Up to two lines are displayed for $5 \times 8$ dots and one line for $5 \times 1 0$ dots. Therefore, a total of three

types of common signals are available (Table 9).

The number of lines and font types can be selected by the program. (See Table 6, Instructions.)

Connection to HD44780 and Liquid Crystal Display: See Figure 19 for the connection examples.

Table 9 Common Signals

Number of LinesCharacter FontNumber of Common SignalsDuty Factor
15 × 8 dots + cursor81/8
15 × 10 dots + cursor111/11
25 × 8 dots + cursor161/16

Figure 19 Liquid Crystal Display and HD44780 Connections

HITACHI

Since five segment signal lines can display one digit, one HD44780U can display up to 8 digits for a 1-line display and 16 digits for a 2-line display.

The examples in Figure 19 have unused common signal pins, which always output non-selection waveforms. When the liquid crystal display panel has unused extra scanning lines, connect the extra scanning lines to these common signal pins to avoid any undesirable effects due to crosstalk during the floating state.


Figure 19 Liquid Crystal Display and HD44780 Connections (cont)

HD44780U

Connection of Changed Matrix Layout: In the preceding examples, the number of lines correspond to the scanning lines. However, the following display examples (Figure 20) are made possible by altering the matrix layout of the liquid crystal display panel. In either case, the only change is the layout. The display characteristics and the number of liquid crystal display characters depend on the number of common signals or on duty factor. Note that the display data RAM (DDRAM) addresses for 4 characters × 2 lines and for 16 characters × 1 line are the same as in Figure 19.


Figure 20 Changed Matrix Layout Displays

Duty Factor
1/8, 1/111/16
Bias
Power Supply1/41/5
V1 $V_{cc}-1/4$ VLCD $V_{cc}-1/5$ VLCD
V2 $V_{cc}-1/2$ VLCD $V_{cc}-2/5$ VLCD
V3 $V_{cc}-1/2$ VLCD $V_{cc}-3/5$ VLCD
V4 $V_{cc}-3/4$ VLCD $V_{cc}-4/5$ VLCD
V5 $V_{cc}-VLCD$ $V_{cc}-VLCD$

Table 10 Duty Factor and Power Supply for Liquid Crystal Display Drive
Figure 21 Drive Voltage Supply Example

Power Supply for Liquid Crystal Display Drive

Various voltage levels must be applied to pins V1 to V5 of the HD44780U to obtain the liquid crystal display drive waveforms. The voltages must be changed according to the duty factor (Table 10).

VLCD is the peak value for the liquid crystal display drive waveforms, and resistance dividing provides voltages V1 to V5 (Figure 21).

HD44780U

Relationship between Oscillation Frequency and Liquid Crystal Display Frame Frequency

The liquid crystal display frame frequencies of Figure 22 apply only when the oscillation frequency is 270 kHz (one clock pulse of 3.7 µs).


Figure 22 Frame Frequency

HITACHI

Instruction and Display Correspondence

• 8-bit operation, 8-digit × 1-line display with internal reset

Refer to Table 11 for an example of an 8-digit × 1-line display in 8-bit operation. The HD44780U functions must be set by the function set instruction prior to the display. Since the display data RAM can store data for 80 characters, as explained before, the RAM can be used for displays such as for advertising when combined with the display shift operation.

Since the display shift operation changes only the display position with DDRAM contents unchanged, the first display data entered into DDRAM can be output when the return home operation is performed.

• 4-bit operation, 8-digit × 1-line display with internal reset

The program must set all functions prior to the 4-bit operation (Table 12). When the power is turned on, 8-bit operation is automatically selected and the first write is performed as an 8-bit operation. Since DB0 to DB3 are not connected, a rewrite is then required. However, since one operation is completed in two accesses for 4-bit operation, a rewrite is needed to set the functions (see Table 12). Thus, DB4 to DB7 of the function set instruction is written twice.

• 8-bit operation, 8-digit × 2-line display

For a 2-line display, the cursor automatically moves from the first to the second line after the 40th digit of the first line has been written. Thus, if there are only 8 characters in the first line, the DDRAM address must be again set after the 8th character is completed. (See Table 13.) Note that the display shift operation is performed for the first and second lines. In the example of Table 13, the display shift is performed when the cursor is on the second line. However, if the shift operation is performed when the cursor is on the first line, both the first and second lines move together. If the shift is repeated, the display of the second line will not move to the first line. The same display will only shift within its own line for the number of times the shift is repeated.

Note: When using the internal reset, the electrical characteristics in the Power Supply Conditions Using Internal Reset Circuit table must be satisfied. If not, the HD44780U must be initialized by instructions. See the section, Initializing by Instruction.

HD44780U

Table 11 8-Bit Operation, 8-Digit × 1-Line Display Example with Internal Reset

Step No.InstructionDisplayOperation
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
1Power supply on (the HD44780U is initialized by the internal reset circuit)Initialized. No display.
2Function setSets to 8-bit operation and selects 1-line display and $5 \times 8$ dot character font. (Number of display lines and character fonts cannot be changed after step #2.)
00001100**
3Display on/off controlTurns on display and cursor.Entire display is in space mode because of initialization.
0000001110
4Entry mode setSets mode to increment the address by one and to shift the cursor to the right at the time of write to the DD/CGRAM.Display is not shifted.
0000000110
5Write data to CGRAM/DDRAMWrites H. DDRAM has already been selected by initialization when the power was turned on.The cursor is incremented by one and shifted to the right.
1001001000
6Write data to CGRAM/DDRAMWrites I.
1001001001
7.
.
.
.
8Write data to CGRAM/DDRAMWrites I.
1001001001
9Entry mode setSets mode to shift display at the time of write.
0000000111
10Write data to CGRAM/DDRAMWrites a space.
1000100000

Table 11 8-Bit Operation, 8-Digit × 1-Line Display Example with Internal Reset (cont)

Step No.InstructionDisplayOperation
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
11Write data to CGRAM/DDRAMTACHI M_Writes M.
1001001101
12..
..
..
..
13Write data to CGRAM/DDRAMMICROKO_Writes O.
1001001111
14Cursor or display shiftMICROKOShifts only the cursor position to the left.
00000100**
15Cursor or display shiftMICROKOShifts only the cursor position to the left.
00000100**
16Write data to CGRAM/DDRAMICROCOWrites C over K.The display moves to the left.
1001000011
17Cursor or display shiftMICROCOShifts the display and cursor position to the right.
00000111**
18Cursor or display shiftMICROCO_Shifts the display and cursor position to the right.
00000101**
19Write data to CGRAM/DDRAMICROCOM_Writes M.
1001001101
20..
..
..
..
21Return homeHITACHIReturns both display and cursor to the original position (address 0).
0000000010

Table 12 4-Bit Operation, 8-Digit × 1-Line Display Example with Internal Reset

Step No.InstructionDisplayOperation
RSR/WDB7DB6DB5DB4
1Power supply on (the HD44780U is initialized by the internal reset circuit)Initialized. No display.
2Function setSets to 4-bit operation.In this case, operation is handled as 8 bits by initializa-tion, and only this instruction completes with one write.
000010
3Function setSets 4-bit operation and selects 1-line display and $5 \times 8$ dot character font. 4-bit operation starts from this step and resetting is necessary.(Number of display lines and character fonts cannot be changed after step #3.)
000010
0000**
4Display on/off controlTurns on display and cursor.Entire display is in space mode because of initialization.
000000
001110
5Entry mode setSets mode to increment the address by one and to shift the cursor to the right at the time of write to the DD/CGRAM.Display is not shifted.
000000
000110
6Write data to CGRAM/DDRAMWrites H.The cursor is incremented by one and shifts to the right.
100100
101000

Note: The control is the same as for 8-bit operation beyond step #6.

Table 13 8-Bit Operation, 8-Digit × 2-Line Display Example with Internal Reset

StepNo.InstructionDisplayOperation
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
1Power supply on (the HD44780U is initialized by the internal reset circuit)Initialized. No display.
2Function setSets to 8-bit operation and selects 2-line display and $5 \times 8$ dot character font.
00001110**
3Display on/off controlTurns on display and cursor. All display is in space mode because of initialization.
0000001110
4Entry mode setSets mode to increment the address by one and to shift the cursor to the right at the time of write to the DD/CGRAM. Display is not shifted.
0000000110
5Write data to CGRAM/DDRAMWrites H. DDRAM has already been selected by initialization when the power was turned on. The cursor is incremented by one and shifted to the right.
1001001000
6
7Write data to CGRAM/DDRAMWrites I.
1001001001
8Set DDRAM addressSets DDRAM address so that the cursor is positioned at the head of the second line.
0011000000

HD44780U

Table 13 8-Bit Operation, 8-Digit × 2-Line Display Example with Internal Reset (cont)

Step No.InstructionDisplayOperation
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
9Write data to CGRAM/DDRAMHITACHIWrites M.
1001001101M_
10..
..
..
..
11Write data to CGRAM/DDRAMHITACHIWrites O.
1001001111MICROCO_
12Entry mode setHITACHISets mode to shift display at the time of write.
0000000111MICROCO_
13Write data to CGRAM/DDRAMITACHIWrites M. Display is shifted to the left. The first and second lines both shift at the same time.
1001001101ICROCOM_
14..
..
..
..
15Return homeHITACHIReturns both display and cursor to the original position (address 0).
0000000010MICROCOM

Initializing by Instruction

If the power supply conditions for correctly operating the internal reset circuit are not met, initialization by instructions becomes necessary.

Refer to Figures 23 and 24 for the procedures on 8-bit and 4-bit initializations, respectively.

Figure 23 8-Bit Interface


Figure 24 4-Bit Interface

Absolute Maximum Ratings*

ItemSymbolValueUnitNotes
Power supply voltage (1) $V_{CC}-GND$ -0.3 to +7.0V1
Power supply voltage (2) $V_{CC}-V5$ -0.3 to +13.0V1, 2
Input voltageVt-0.3 to $V_{CC}$ +0.3V1
Operating temperature $T_{opr}$ -30 to +75°C
Storage temperature $T_{stg}$ -55 to +125°C4

Note: * If the LSI is used above these absolute maximum ratings, it may become permanently damaged. Using the LSI within the following electrical characteristic limits is strongly recommended for normal operation. If these electrical characteristic conditions are also exceeded, the LSI will malfunction and cause poor reliability.

HD44780U

DC Characteristics $( \mathbf { V _ { C C } } = 2 . 7$ to 4.5 V, $\mathbf { T _ { a } } = - 3 \mathbf { 0 }$ to $+ 7 5 ^ { \circ } \mathbf { C } ^ { * 3 } )$

ItemSymbolMinTypMaxUnitTest ConditionNotes*
Input high voltage (1) (except OSC1)VIH1 $0.7V_{cc}$ — $V_{cc}$ V6
Input low voltage (1) (except OSC1)VIL1-0.3—0.55V6
Input high voltage (2) (OSC1)VIH2 $0.7V_{cc}$ — $V_{cc}$ V15
Input low voltage (2) (OSC1)VIL2—— $0.2V_{cc}$ V15
Output high voltage (1) (DB0–DB7)VOH1 $0.75V_{cc}$ ——V $-I_{OH}=0.1 mA$ 7
Output low voltage (1) (DB0–DB7)VOL1—— $0.2V_{cc}$ V $I_{OL}=0.1 mA$ 7
Output high voltage (2) (except DB0–DB7)VOH2 $0.8V_{cc}$ ——V $-I_{OH}=0.04 mA$ 8
Output low voltage (2) (except DB0–DB7)VOL2—— $0.2V_{cc}$ V $I_{OL}=0.04 mA$ 8
Driver on resistance (COM) $R_{COM}$ —220kΩ±Id = 0.05 mA, VLCD = 4 V13
Driver on resistance (SEG) $R_{SEG}$ —230kΩ±Id = 0.05 mA, VLCD = 4 V13
Input leakage current $I_{LI}$ -1—1μAVIN = 0 to $V_{CC}$ 9
Pull-up MOS current (DB0–DB7, RS, R/W) $-I_p$ 1050120μA $V_{CC}=3 V$
Power supply current $I_{CC}$ —150300μA $R_f oscillation, external clock$ $V_{CC}=3 V,$ $f_{OSC}=270 kHz$ 10, 14
LCD voltageVLCD13.0—11.0V $V_{CC}-V5, 1/5 bias$ 16
VLCD23.0—11.0V $V_{CC}-V5, 1/4 bias$ 16

Note: * Refer to the Electrical Characteristics Notes section following these tables.

AC Characteristics $( \mathbf { V _ { C C } } = 2 . 7$ to 4.5 V, $\mathbf { T _ { a } } = - 3 \mathbf { 0 }$ to $+ 7 5 ^ { \circ } \mathbf { C } ^ { * 3 } )$

Clock Characteristics

ItemSymbolMinTypMaxUnitTest ConditionNote*
External clock operationExternal clock frequency $f_{cp}$ 125250350kHz11
External clock dutyDuty455055%
External clock rise time $t_{rcp}$ ——0.2μs
External clock fall time $t_{fcp}$ ——0.2μs
$R_f$ oscillationClock oscillation frequency $f_{osc}$ 190270350kHz $R_f=75 kΩ,V_{cc}=3 V$ 12

Note: * Refer to the Electrical Characteristics Notes section following these tables.

Bus Timing Characteristics

Write Operation

ItemSymbolMinTypMaxUnitTest Condition
Enable cycle time $t_{cycE}$ 1000——nsFigure 25
Enable pulse width (high level) $PW_{EH}$ 450——
Enable rise/fall time $t_{Er}, t_{Ef}$ ——25
Address set-up time (RS, R/W to E) $t_{AS}$ 60——
Address hold time $t_{AH}$ 20——
Data set-up time $t_{DSW}$ 195——
Data hold time $t_{H}$ 10——

Read Operation

ItemSymbolMinTypMaxUnitTest Condition
Enable cycle time $t_{cycE}$ 1000——nsFigure 26
Enable pulse width (high level) $PW_{EH}$ 450——
Enable rise/fall time $t_{Er}, t_{Ef}$ ——25
Address set-up time (RS, R/W to E) $t_{AS}$ 60——
Address hold time $t_{AH}$ 20——
Data delay time $t_{DDR}$ ——360
Data hold time $t_{DHR}$ 5——

HD44780U

Interface Timing Characteristics with External Driver

ItemSymbolMinTypMaxUnitTest Condition
Clock pulse widthHigh level $t_{CWH}$ 800——nsFigure 27
Low level $t_{CWL}$ 800——
Clock set-up time $t_{CSU}$ 500——
Data set-up time $t_{SU}$ 300——
Data hold time $t_{DH}$ 300——
M delay time $t_{DM}$ -1000—1000
Clock rise/fall time $t_{ct}$ ——200

Power Supply Conditions Using Internal Reset Circuit

ItemSymbolMinTypMaxUnitTest Condition
Power supply rise time $t_{rCC}$ 0.1—10msFigure 28
Power supply off time $t_{OFF}$ 1——

DC Characteristics $( \mathbf { V } _ { \mathrm { c c } } = 4 . 5$ to 5.5 V, $\mathbf { T _ { a } } = - 3 \mathbf { 0 }$ to $+ 7 5 ^ { \circ } \mathbf { C } ^ { * 3 } )$

ItemSymbolMinTypMaxUnitTest ConditionNotes*
Input high voltage (1) (except OSC1)VIH12.2— $V_{CC}$ V6
Input low voltage (1) (except OSC1)VIL1-0.3—0.6V6
Input high voltage (2) (OSC1)VIH2 $V_{CC}-1.0$ — $V_{CC}$ V15
Input low voltage (2) (OSC1)VIL2——1.0V15
Output high voltage (1) (DB0–DB7)VOH12.4——V $-I_{OH}=0.205 mA$ 7
Output low voltage (1) (DB0–DB7)VOL1——0.4V $I_{OL}=1.2 mA$ 7
Output high voltage (2) (except DB0–DB7)VOH20.9 $V_{CC}$ ——V $-I_{OH}=0.04 mA$ 8
Output low voltage (2) (except DB0–DB7)VOL2——0.1 $V_{CC}$ V $I_{OL}=0.04 mA$ 8
Driver on resistance (COM)RCOM—220kΩ±Id = 0.05 mA, VLCD = 4 V13
Driver on resistance (SEG)RSEG—230kΩ±Id = 0.05 mA, VLCD = 4 V13
Input leakage current $I_{LI}$ -1—1μAVIN = 0 to $V_{CC}$ 9
Pull-up MOS current (DB0–DB7, RS, R/W) $-I_p$ 50125250μA $V_{CC}=5 V$
Power supply current $I_{CC}$ —350600μA $R_f oscillation, external clock$ $V_{CC}=5 V, f_{OSC}=270 kHz$ 10, 14
LCD voltageVLCD13.0—11.0V $V_{CC}-V5, 1/5 bias$ 16
VLCD23.0—11.0V $V_{CC}-V5, 1/4 bias$ 16

Note: * Refer to the Electrical Characteristics Notes section following these tables.

HD44780U

AC Characteristics $( \mathbf { V } _ { \mathrm { c c } } = 4 . 5$ to 5.5 V, $\mathbf { T _ { a } } = - 3 \mathbf { 0 }$ to $+ 7 5 ^ { \circ } \mathbf { C } ^ { * 3 } )$

Clock Characteristics

ItemSymbolMinTypMaxUnitTest ConditionNotes*
External clock operationExternal clock frequency $f_{cp}$ 125250350kHz11
External clock dutyDuty455055%11
External clock rise time $t_{rcp}$ ——0.2μs11
External clock fall time $t_{fcp}$ ——0.2μs11
$R_f$ oscillationClock oscillation frequency $f_{osc}$ 190270350kHz $R_f=91 kΩ$ $V_{cc}=5.0 V$ 12

Note: * Refer to the Electrical Characteristics Notes section following these tables.

Bus Timing Characteristics

Write Operation

ItemSymbolMinTypMaxUnitTest Condition
Enable cycle time $t_{cycE}$ 500——nsFigure 25
Enable pulse width (high level) $PW_{EH}$ 230——
Enable rise/fall time $t_{Er}, t_{Ef}$ ——20
Address set-up time (RS, R/W to E) $t_{AS}$ 40——
Address hold time $t_{AH}$ 10——
Data set-up time $t_{DSW}$ 80——
Data hold time $t_{H}$ 10——

Read Operation

ItemSymbolMinTypMaxUnitTest Condition
Enable cycle time $t_{cycE}$ 500——nsFigure 26
Enable pulse width (high level) $PW_{EH}$ 230——
Enable rise/fall time $t_{Er}, t_{Ef}$ ——20
Address set-up time (RS, R/W to E) $t_{AS}$ 40——
Address hold time $t_{AH}$ 10——
Data delay time $t_{DDR}$ ——160
Data hold time $t_{DHR}$ 5——

Interface Timing Characteristics with External Driver

ItemSymbolMinTypMaxUnitTest Condition
Clock pulse widthHigh level $t_{CWH}$ 800——nsFigure 27
Low level $t_{CWL}$ 800——
Clock set-up time $t_{CSU}$ 500——
Data set-up time $t_{SU}$ 300——
Data hold time $t_{DH}$ 300——
M delay time $t_{DM}$ -1000—1000
Clock rise/fall time $t_{ct}$ ——100

Power Supply Conditions Using Internal Reset Circuit

ItemSymbolMinTypMaxUnitTest Condition
Power supply rise time $t_{rCC}$ 0.1—10msFigure 28
Power supply off time $t_{OFF}$ 1——

Electrical Characteristics Notes

  1. All voltage values are referred to $\mathrm { G N D } = 0 \mathrm { V }$

$$
\mathsf {A} = \mathsf {V} _ {\mathsf {C C}} - \mathsf {V 5}
$$

$$
\mathsf {B} = \mathsf {V} _ {\mathsf {C C}} - \mathsf {V 1}
$$

$$
\mathrm{A} \geq 1. 5 \mathrm{V}
$$

$$
\mathsf {B} \leq 0. 2 5 \times \mathsf {A}
$$

The conditions of V1 and V5 voltages are for proper operation of the LSI and not for the LCD output level. The LCD drive voltage condition for the LCD output level is specified as LCD voltage VLCD.

  1. $\mathrm { V } _ { \mathrm { c c } } \geq \mathrm { V } 1 \geq \mathrm { V } 2 \geq \mathrm { V } 3 \geq \mathrm { V } 4 \geq \mathrm { V } 5$ must be maintained.

  2. For die products, specified at $7 5 \mathrm { { } ^ { \circ } C } .$

  3. For die products, specified by the die shipment specification.

  4. The following four circuits are I/O pin configurations except for liquid crystal display output.

Input pin

Pin: E (MOS without pull-up)

Pins: RS, R/W (MOS with pull-up)

Output pin

Pins: CL1, CL2, M, D

  1. Applies to input pins and I/O pins, excluding the OSC1 pin.

  2. Applies to I/O pins.

  3. Applies to output pins.

  4. Current flowing through pull–up MOSs, excluding output drive MOSs.

  5. Input/output current is excluded. When input is at an intermediate level with CMOS, the excessive current flows through the input circuit to the power supply. To avoid this from happening, the input level must be fixed high or low.

  6. Applies only to external clock operation.

  1. Applies only to the internal oscillator operation using oscillation resistor $\mathrm { R } _ { \mathrm { f } } .$

$\mathsf { R } _ { \mathsf { f } }$ : 75 $k \Omega \pm 2 %$ (when ${ \mathsf { V } } _ { \mathsf { C C } } = 3 \ { \mathsf { V } } )$

$\mathsf { R } _ { \mathsf { f } }$ : 91 $k \Omega \pm 2 %$ (when $\mathsf { V } _ { \mathsf { C C } } = 5 \mathsf { V } )$

Since the oscillation frequency varies depending on the OSC1 and OSC2 pin capacitance, the wiring length to these pins should be minimized.

HD44780U

  1. RCOM is the resistance between the power supply pins $( \mathrm { V } _ { \mathrm { C C } } , \mathrm { V } 1 , \mathrm { V } 4 , \mathrm { V } 5 )$ and each common signal pin (COM1 to COM16).

RSEG is the resistance between the power supply pins $( \mathrm { V _ { C C } }$ , V2, V3, V5) and each segment signal pin (SEG1 to SEG40).

  1. The following graphs show the relationship between operation frequency and current consumption.


15. Applies to the OSC1 pin.
16. Each COM and SEG output voltage is within ±0.15 V of the LCD voltage $( \mathrm { V } _ { \mathrm { c c } } ,$ V1, V2, V3, V4, V5) when there is no load.

Load Circuits

Data Bus DB0 to DB7

External Driver Control Signals: CL1, CL2, D, M

Timing Characteristics

Figure 25 Write Operation

Figure 26 Read Operation

HITACHI


Figure 27 Interface Timing with External Driver


Figure 28 Internal Power Supply Reset

HD44780U

Cautions

  1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with third party’s rights, including intellectual property rights, in connection with use of the information contained in this document.

  2. Products and product specifications may be subject to change without notice. Confirm that you have received the latest product standards or specifications before final design, purchase or use.

  3. Hitachi makes every attempt to ensure that its products are of high quality and reliability. However, contact Hitachi’s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support.

  4. Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail safes, so that the equipment incorporating Hitachi product does not cause bodily injury, fire or other consequential damage due to operation of the Hitachi product.

  5. This product is not designed to be radiation resistant.

  6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without written approval from Hitachi.

  7. Contact Hitachi’s sales office for any questions regarding this document or Hitachi semiconductor products.

HITACHI

Hitachi, Ltd. Hitachi. Ltd.

Semiconductor & Integrated Circuits. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan Tel: Tokyo (03) 3270-2111 Fax: (03) 3270-5109

NorthAmerica http:semiconductor.hitachi.com/ Europe http://www.hitachi-eu.com/hel/ecg Asia (Singapore) http://www.has.hitachi.com.sg/grp3/sicd/index.htm Asia (Taiwan) http://www.hitachi.com.tw/E/Product/SICD\_Frame.htm Asia (HongKong) http://www.hitachi.com.hk/eng/bo/grp3/index.htm Japan http://www.hitachi.co.jp/Sicd/indx.htm

For further information write to:

Hitachi Semiconductor (America) Inc. 179 East Tasman Drive, San Jose,CA 95134 Tel: <1> (408) 433-1990 Fax: <1>(408) 433-0223

Hitachi Europe GmbH Electronic components Group Dornacher Straße 3 D-85622 Feldkirchen, Munich Germany Tel: <49> (89) 9 9180-0 Fax: <49> (89) 9 29 30 00

Hitachi Europe Ltd. Electronic Components Group. Whitebrook Park Lower Cookham Road Maidenhead Berkshire SL6 8YA, United Kingdom Tel: <44> (1628) 585000 Fax: <44> (1628) 778322

Hitachi Asia Pte. Ltd 16 Collyer Quay #20-00 Hitachi Tower Singapore 049318 Tel: 535-2100 Fax: 535-1533

Hitachi Asia (Hong Kong) Ltd. Group III (Electronic Components) 7/F., North Tower, World Finance Centre, Harbour City, Canton Road, Tsim Sha Tsui, Kowloon, Hong Kong Tel: <852> (2) 735 9218 Fax: <852> (2) 730 0281 Telex: 40815 HITEC HX

Hitachi Asia Ltd. Taipei Branch Office 3F, Hung Kuo Building. No.167, Tun-Hwa North Road, Taipei (105) Tel: <886> (2) 2718-3666 Fax: <886> (2) 2718-8180

Copyright © Hitachi, Ltd., 1998. All rights reserved. Printed in Japan.

Extracted Images

Figures and diagrams from the PDF

Preview the extracted datasheet assets and open any image in a separate tab for closer inspection.

Extracted datasheet image 05ccd4c547f5c5b246ee6dc1ad0ae61ed1b316b6bafa1dc11ad3710d3a914074.jpg.

Extracted datasheet image 05ccd4c547f5c5b246ee6dc1ad0ae61ed1b316b6bafa1dc11ad3710d3a914074.jpg.

Extracted datasheet image 0905faed622fb99025511f557c12024af87fc69e07f97ce2c4f6a3a80b40031c.jpg.

Extracted datasheet image 0905faed622fb99025511f557c12024af87fc69e07f97ce2c4f6a3a80b40031c.jpg.

Extracted datasheet image 128ae0e88deff3584eb71d80dd3e42c9be0923ad3fa796c9ebc45b99a13c9446.jpg.

Extracted datasheet image 128ae0e88deff3584eb71d80dd3e42c9be0923ad3fa796c9ebc45b99a13c9446.jpg.

Extracted datasheet image 19a79d642a6a91e5b6dc5c9aa69af5040bece80c0097abe8b2eee3b46c45d9d6.jpg.

Extracted datasheet image 19a79d642a6a91e5b6dc5c9aa69af5040bece80c0097abe8b2eee3b46c45d9d6.jpg.

Extracted datasheet image 1a571cff5ad5a3c2c794bb339c79990cb47f1cac99d6a9392ab5ff575af10883.jpg.

Extracted datasheet image 1a571cff5ad5a3c2c794bb339c79990cb47f1cac99d6a9392ab5ff575af10883.jpg.

Extracted datasheet image 1cc41fa143e0a32d83589fa42e71eef7eec9f67db7c3c8678132552e2920f243.jpg.

Extracted datasheet image 1cc41fa143e0a32d83589fa42e71eef7eec9f67db7c3c8678132552e2920f243.jpg.

HD44780 LCD segment and common electrode connection examples

HD44780 LCD segment and common electrode connection examples

Test-point input protection and capacitance circuits

Test-point input protection and capacitance circuits

Display position to DDRAM address mapping

Display position to DDRAM address mapping

Voltage-level definitions showing A and B intervals

Voltage-level definitions showing A and B intervals

HD44780 LCD electrode connection diagram

HD44780 LCD electrode connection diagram

Oscillator resistor connection between OSC1 and OSC2

Oscillator resistor connection between OSC1 and OSC2

HD44780 COM and SEG connections to a multiplexed LCD display

HD44780 COM and SEG connections to a multiplexed LCD display

HD44780 read and write bus timing signals

HD44780 read and write bus timing signals

H8/325 MCU interface to the HD44780U LCD controller

H8/325 MCU interface to the HD44780U LCD controller

Address counter AC bit layout and DDRAM address example

Address counter AC bit layout and DDRAM address example

Oscillator frequency versus feedback resistance at VCC = 5 V

Oscillator frequency versus feedback resistance at VCC = 5 V

Oscillator frequency versus feedback resistance at VCC = 3 V

Oscillator frequency versus feedback resistance at VCC = 3 V

VCC power-on and power-off timing waveform

VCC power-on and power-off timing waveform

DDRAM address mapping for display positions

DDRAM address mapping for display positions

Cursor and blink display examples

Cursor and blink display examples

DDRAM address mapping for 80 display digits

DDRAM address mapping for 80 display digits

HMCS4019R to HD44780 LCD interface

HMCS4019R to HD44780 LCD interface

HD44780 internal architecture block diagram

HD44780 internal architecture block diagram

Hitachi character-pattern development and production flow

Hitachi character-pattern development and production flow

HD44780 connections for a 16-character dot-matrix display

HD44780 connections for a 16-character dot-matrix display

HD44780 CMOS I/O pin and tristate output circuits

HD44780 CMOS I/O pin and tristate output circuits

Power-on initialization sequence for the LCD controller

Power-on initialization sequence for the LCD controller

DDRAM address-set and busy-flag read command bit fields

DDRAM address-set and busy-flag read command bit fields

DDRAM address mapping for display positions and shifting

DDRAM address mapping for display positions and shifting

IC current versus oscillator or charge-pump frequency at VCC = 3 V

IC current versus oscillator or charge-pump frequency at VCC = 3 V

Timing relationships for CL1, CL2, D, and M signals

Timing relationships for CL1, CL2, D, and M signals

Instruction write and busy-flag check timing sequence

Instruction write and busy-flag check timing sequence

Oscillator connection to OSC1 and OSC2

Oscillator connection to OSC1 and OSC2

Agent APIs

Use this datasheet from any agent

Send the page, markdown, chunks, or search endpoint to ChatGPT, Claude, embedr-app, or your own tooling.