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



Similar documents
HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

HD44780-Based LCD Modules. Introduction to the LM018L

HD61202U. (Dot Matrix Liquid Crystal GraphicDisplay Column Driver)

GDM1602A SPECIFICATIONS OF LCD MODULE. Features. Outline dimension

OPTREX CORP. LCD MODULE

NT7606. STN LCDController/Driver. RAM-Map STN LCD Controller/Driver. Preliminary

LCD MODULE DEM SYH-LY

LCD Module User Manual

LCD MODULE DEM SYH-LY

Specification. For. LCD Module CCM1620CSL

DOT MATRIX CHARACTER LCD MODULE USER S MANUAL

HT1632C 32 8 &24 16 LED Driver

SPECIFICATIONS FOR LIQUID CRYSTAL DISPLAY

WS0010 IC SPECIFICATION. Model No: WS0010

LMB162ABC LCD Module User Manual

KS0108B 64CH SEGMENT DRIVER FOR DOT MATRIX LCD INTRODUCTION 100 QFP

LCM NHD-12032BZ-FSW-GBW. User s Guide. (Liquid Crystal Display Graphic Module) RoHS Compliant. For product support, contact

HD61203U. (Dot Matrix Liquid Crystal Graphic Display 64-Channel Common Driver)

SHENZHEN JINGHUA DISPLAYS CO.,LTD.

DS1621 Digital Thermometer and Thermostat

DS1621 Digital Thermometer and Thermostat

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16400(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JAN.19,2000 TOTAL PAGE : 7 APPROVED BY:

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS (LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : DEC.01,1999 TOTAL PAGE : 7 APPROVED BY:

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

BATRON DOCUMENT NUMBER AND REVISION VL-FS-BTHQ 21605VSS-02 REV.A (BTHQ 21605VSS-FSTF-LED05W(1 DIE)) Feb/2002 BTHQ FSTF-LED WHITE 1/15

SPECIFICATION NO. : DS D A T E O F I S S U E : July 16, R E V I S I O N : September 1, 2010 (00) : : :

LCM Design Engineering SPECIFICATION FOR LCD MODULE TYPE ITEM NO.: MDLS MDLS16265-LV-G-LED04G (BB) (DOC. REVISION 1.0)

EMERGING DISPLAY CUSTOMER ACCEPTANCE SPECIFICATIONS 16290(LED TYPES) EXAMINED BY : FILE NO. CAS ISSUE : JUL.03,2001 TOTAL PAGE : 7

Features. Instruction. Decoder Control Logic, And Clock Generators. Address Compare amd Write Enable. Protect Register V PP.

SPECIFICATION CUSTOMER : APPROVED BY: ( FOR CUSTOMER USE ONLY ) SALES BY APPROVED BY CHECKED BY PREPARED BY ISSUED DATE:

DS1307ZN. 64 x 8 Serial Real-Time Clock

MAR. 15, 2004 Version 1.8

Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

T 1 3 T 1 2 T 1 5 T 1 4 T 6 T 1 1 T 7 T 9 T 8 T 1 S 3 5 S 3 4 S 3 3 S 3 2 S 3 1 S 3 0 S 2 9 S 2 8 S 2 7 S 2 6 S 2 5 S 2 4 S 2 3 S 2 2 S 2 1 1

LCD MODULE SPECIFICATION MODEL NO. BG12864EFPHHn

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

DS1821 Programmable Digital Thermostat and Thermometer

CAT28C64B F R E E. 64K-Bit CMOS PARALLEL EEPROM L E A D FEATURES DESCRIPTION BLOCK DIAGRAM

MGL x64 Graphic LCD Module User Manual

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

HCF4056B BCD TO 7 SEGMENT DECODER /DRIVER WITH STROBED LATCH FUNCTION

LC7218, 7218M, 7218JM

NJU6061. Full Color LED Controller Driver with PWM Control GENERAL DESCRIPTION PACKAGE OUTLINE FEATURES

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

DS Wire Digital Thermometer and Thermostat

Revision History. Date Page Summary. Approved By: Document Number: OG24161 r.0 Page 1 of 11

Application Notes (Preliminary)

SSD1298. Advance Information. 240 RGB x 320 TFT LCD Controller Driver integrated Power Circuit, Gate and Source Driver with built-in RAM

PC2004A-L (20x4) Character LCD Display

SPECIFICATIONS FOR LCD MODULE

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

DS1220Y 16k Nonvolatile SRAM

8254 PROGRAMMABLE INTERVAL TIMER

Sitronix Preliminary ST7036. Features

DS Real Time Clock FEATURES PIN ASSIGNMENT PIN DESCRIPTION

VACUUM FLUORESCENT DISPLAY MODULE SPECIFICATION. Model: CU16025ECPB-W6J

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

LCD MODULE SPECIFICATION MODEL NO. BC1602E series

FEATURES DESCRIPTION APPLICATIONS BLOCK DIAGRAM. PT2272 Remote Control Decoder

How To Use A Gmbh Gmbhl-E2A (Gmbh-E1) (Gbh-A2A) (Gebh) (For A Test Drive) (Solder) (Powerboard

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

Semiconductor MSM82C43

SED1520/21 DOT MATRIX LCD DRIVER S-MOS

BATRON. Specification for BTHQ 21605V-FSTF-I2C-COG

INTEGRATED CIRCUITS. 74LVC08A Quad 2-input AND gate. Product specification IC24 Data Handbook Jun 30

USB to serial chip CH340

DS2187 Receive Line Interface

TOSHIBA CMOS DIGITAL INTEGRATED CIRCUIT SILICON MONOLITHIC T6963C

OLED DISPLAY MODULE. Product Specification. INTERNAL APPROVALS Product Mgr Mech. Eng Electr. Eng. Date: Aug Date: Aug.04.

SSD1306. Advance Information. 128 x 64 Dot Matrix OLED/PLED Segment/Common Driver with Controller

CD4511BM CD4511BC BCD-to-7 Segment Latch Decoder Driver

DS2401 Silicon Serial Number

TONE/PULSE DIALER WITH REDIAL

OPTIONS & SELECTION GUIDES

AT89C Bit Microcontroller with 1 Kbyte Flash. Features. Description. Pin Configuration

0832 Dot Matrix Green Display Information Board User s Guide

Application Note [AN-029] Interfacing and set-up of Toshiba T6963C

ILI9335. a-si TFT LCD Single Chip Driver 240RGBx320 Resolution and 262K color. Datasheet

Interfacing To Alphanumeric Displays

CMOS PARALLEL-TO-SERIAL FIFO 256 x 16, 512 x 16, 1,024 x 16

LCD MODULE DEM B FGH-PW

POWER-VOLTAGE MONITORING IC WITH WATCHDOG TIMER

SFP-TX 1000BASE-T SFP Transceiver 10/100/1000M SFP Transceiver

DS1220Y 16k Nonvolatile SRAM

DG2302. High-Speed, Low r ON, SPST Analog Switch. Vishay Siliconix. (1-Bit Bus Switch with Level-Shifter) RoHS* COMPLIANT DESCRIPTION FEATURES

A N. O N Output/Input-output connection

ULC Technology: High-performance gate array package using multiple metal layer CMOS technology featuring sub-micron channel lengths (0.

EN25P64 EN25P Megabit Uniform Sector, Serial Flash Memory FEATURES GENERAL DESCRIPTION

How To Power A Power Supply On A Microprocessor (Mii) Or Microprocessor Power Supply (Miio) (Power Supply) (Microprocessor) (Miniio) Or Power Supply Power Control (Power) (Mio) Power Control

64 x 8, Serial, I 2 C Real-Time Clock

DP8570A DP8570A Timer Clock Peripheral (TCP)

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Transcription:

HD4478U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver) ADE-27-272(Z) '99.9 Rev.. Description The HD4478U 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 HD4478U can display up to one 8-character line or two 8-character lines. The HD4478U has pin function compatibility with the HD4478S which allows the user to easily replace an LCD-II with an HD4478U. The HD4478U character generator ROM is extended to generate 28 5 8 dot character fonts and 32 5 dot character fonts for a total of 24 different character fonts. The low power supply (2.7V to 5.5V) of the HD4478U is suitable for any portable battery-driven product requiring low power dissipation. Features 5 8 and 5 dot matrix possible Low power operation support: 2.7 to 5.5V Wide range of liquid crystal display driver power 3. to V Liquid crystal drive waveform A (One line frequency AC waveform) Correspond to high speed MPU bus interface 2 MHz (when V CC = 5V) 4-bit or 8-bit MPU interface enabled 8 8-bit display RAM (8 characters max.) 9,92-bit character generator ROM for a total of 24 character fonts 28 character fonts (5 8 dot) 32 character fonts (5 dot)

HD4478U 64 8-bit character generator RAM 8 character fonts (5 8 dot) 4 character fonts (5 dot) 6-common 4-segment liquid crystal display driver Programmable duty cycles /8 for one line of 5 8 dots with cursor / for one line of 5 dots with cursor /6 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 HD4478S Automatic reset circuit that initializes the controller/driver after power on Internal oscillator with external resistors Low power consumption Ordering Information Type No. Package CGROM HD4478UAFS HCD4478UA HD4478UATF HD4478UA2FS HCD4478UA2 HD4478UA2TF HD4478UBxxFS HCD4478UBxx HD4478UBxxTF Note: xx: ROM code No. FP-8B Chip TFP-8F FP-8B Chip TFP-8F FP-8B Chip TFP-8F Japanese standard font European standard font Custom font 2

HD4478U HD4478U Block Diagram OSC OSC2 CL CL2 Reset circuit ACL CPG Timing generator M 8 Instruction register (IR) 7 D RS R/W E MPU interface Instruction decoder Display data RAM (DDRAM) 8 8 bits 6-bit shift register Common signal driver COM to COM6 DB4 to DB7 DB to DB3 Input/ output buffer 8 7 Data register (DR) Busy flag Address counter 7 8 7 8 8 8 4-bit shift register 4 4-bit latch circuit Segment signal driver LCD drive voltage selector SEG to SEG4 GND Character generator RAM (CGRAM) 64 bytes Character generator ROM (CGROM) 9,92 bits Cursor and blink controller 5 5 Parallel/serial converter and attribute circuit V CC V V2 V3 V4 V5 3

HD4478U 4 HD4478U Pin Arrangement (FP-8B) 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 2 2 22 23 24 8 79 78 77 76 75 74 73 72 7 7 69 68 67 66 65 64 63 62 6 6 59 58 57 56 55 54 53 52 5 5 49 48 47 46 45 44 43 42 4 25 26 27 28 29 3 3 32 33 34 35 36 37 38 39 4 FP-8B (Top view) SEG39 SEG4 COM6 COM5 COM4 COM3 COM2 COM COM COM9 COM8 COM7 COM6 COM5 COM4 COM3 COM2 COM DB7 DB6 DB5 DB4 DB3 DB2 SEG22 SEG2 SEG2 SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG SEG SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG GND OSC SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG3 SEG3 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 OSC2 V V2 V3 V4 V5 CL CL2 V CC M D RS R/W E DB DB SEG38

HD4478U 5 HD4478U Pin Arrangement (TFP-8F) 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 2 8 79 78 77 76 75 74 73 72 7 7 69 68 67 66 65 64 63 62 6 6 59 58 57 56 55 54 53 52 5 5 49 48 47 46 45 44 43 42 4 2 22 23 24 25 26 27 28 29 3 3 32 33 34 35 36 37 38 39 4 TFP-8F (Top view) COM6 COM5 COM4 COM3 COM2 COM COM COM9 COM8 COM7 COM6 COM5 COM4 COM3 COM2 COM DB7 DB6 DB5 DB4 SEG2 SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG SEG SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 SEG3 SEG2 SEG SEG2 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG3 SEG3 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG4 GND OSC OSC2 V V2 V3 V4 V5 CL CL2 V CC M D RS R/W E DB DB DB2 DB3

HD4478U HD4478U Pad Arrangement Chip size: Coordinate: Origin: Pad size: 4.9 4.9 mm 2 Pad center (µm) Chip center 4 4 µm 2 2 8 63 Y Type code HD4478U 23 X 42 6

HD4478U HCD4478U Pad Location Coordinates Coordinate Coordinate Pad No. Function X (um) Y (um) Pad No. Function X (um) Y (um) SEG22 2 233 4 DB2 27 229 2 SEG2 228 233 42 DB3 226 229 3 SEG2 233 289 43 DB4 229 299 4 SEG9 233 833 44 DB5 229 883 5 SEG8 233 67 45 DB6 229 667 6 SEG7 233 4 46 DB7 229 452 7 SEG6 233 86 47 COM 233 86 8 SEG5 233 97 48 COM2 233 97 9 SEG4 233 755 49 COM3 233 755 SEG3 233 539 5 COM4 233 539 SEG2 233 323 5 COM5 233 323 2 SEG 233 8 52 COM6 233 8 3 SEG 233 8 53 COM7 233 8 4 SEG9 233 323 54 COM8 233 323 5 SEG8 233 539 55 COM9 233 539 6 SEG7 233 755 56 COM 233 755 7 SEG6 233 97 57 COM 233 97 8 SEG5 233 86 58 COM2 233 86 9 SEG4 233 4 59 COM3 233 4 2 SEG3 233 67 6 COM4 233 67 2 SEG2 233 833 6 COM5 233 833 22 SEG 233 273 62 COM6 233 295 23 GND 228 229 63 SEG4 2296 233 24 OSC 28 229 64 SEG39 2 233 25 OSC2 749 229 65 SEG38 67 233 26 V 55 229 66 SEG37 4 233 27 V2 268 229 67 SEG36 86 233 28 V3 94 229 68 SEG35 97 233 29 V4 623 229 69 SEG34 755 233 3 V5 34 229 7 SEG33 539 233 3 CL 48 229 7 SEG32 323 233 32 CL2 42 229 72 SEG3 8 233 33 V CC 39 229 73 SEG3 8 233 34 M 475 229 74 SEG29 323 233 35 D 665 229 75 SEG28 539 233 36 RS 832 229 76 SEG27 755 233 37 R/W 22 229 77 SEG26 97 233 38 E 24 229 78 SEG25 86 233 39 DB 454 229 79 SEG24 4 233 4 DB 684 229 8 SEG23 67 233 7

HD4478U Pin Functions Signal No. of Lines I/O Device Interfaced with Function RS I MPU Selects registers. : Instruction register (for write) Busy flag: address counter (for read) : Data register (for write and read) R/W I MPU Selects read or write. : Write : Read E I MPU Starts data read/write. DB4 to DB7 4 I/O MPU Four high order bidirectional tristate data bus pins. Used for data transfer and receive between the MPU and the HD4478U. DB7 can be used as a busy flag. DB to DB3 4 I/O MPU Four low order bidirectional tristate data bus pins. Used for data transfer and receive between the MPU and the HD4478U. These pins are not used during 4-bit operation. CL O Extension driver Clock to latch serial data D sent to the extension driver CL2 O Extension driver Clock to shift serial data D M O Extension driver Switch signal for converting the liquid crystal drive waveform to AC D O Extension driver Character pattern data corresponding to each segment signal COM to COM6 6 O LCD Common signals that are not used are changed to non-selection waveforms. COM9 to COM6 are non-selection waveforms at /8 duty factor and COM2 to COM6 are non-selection waveforms at / duty factor. SEG to SEG4 4 O LCD Segment signals V to V5 5 Power supply Power supply for LCD drive V CC V5 = V (max) V CC, GND 2 Power supply V CC : 2.7V to 5.5V, GND: V OSC, OSC2 2 Oscillation resistor clock When crystal oscillation is performed, a resistor must be connected externally. When the pin input is an external clock, it must be input to OSC. 8

HD4478U Function Description Registers The HD4478U 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 ). Busy Flag (BF) When the busy flag is, the HD4478U is in the internal operation mode, and the next instruction will not be accepted. When RS = and R/W = (Table ), the busy flag is output to DB7. The next instruction must be written after ensuring that the busy flag is. 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 (decremented by ). The AC contents are then output to DB to DB6 when RS = and R/W = (Table ). Table Register Selection RS R/W Operation IR write as an internal operation (display clear, etc.) Read busy flag (DB7) and address counter (DB to DB6) DR write as an internal operation (DR to DDRAM or CGRAM) DR read as an internal operation (DDRAM or CGRAM to DR) 9

HD4478U Display Data RAM (DDRAM) Display data RAM (DDRAM) stores display data represented in 8-bit character codes. Its extended capacity is 8 8 bits, or 8 characters. The area in display data RAM (DDRAM) that is not used for display can be used as general data RAM. See Figure for the relationships between DDRAM addresses and positions on the liquid crystal display. The DDRAM address (A DD ) is set in the address counter (AC) as hexadecimal. -line display (N = ) (Figure 2) When there are fewer than 8 display characters, the display begins at the head position. For example, if using only the HD4478, 8 characters are displayed. See Figure 3. When the display shift operation is performed, the DDRAM address shifts. See Figure 3. AC (hexadecimal) High order bits Low order bits Example: DDRAM address 4E AC6 AC5 AC4 AC3 AC2 AC AC Figure DDRAM Address Display position (digit) 2 3 4 5 79 8 DDRAM address (hexadecimal) 2 3 4.................. 4E 4F Figure 2 -Line Display Display position 2 3 4 5 6 7 8 DDRAM address 2 3 4 5 6 7 For shift left 2 3 4 5 6 7 8 For shift right 4F 2 3 4 5 6 Figure 3 -Line by 8-Character Display Example

HD4478U 2-line display (N = ) (Figure 4) Case : When the number of display characters is less than 4 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 HD4478 is used, 8 characters 2 lines are displayed. See Figure 5. When display shift operation is performed, the DDRAM address shifts. See Figure 5. Display position 2 3 4 5 39 4 DDRAM address (hexadecimal) 2 3 4.................. 26 27 4 4 42 43 44.................. 66 67 Figure 4 2-Line Display Display position 2 3 4 5 6 7 8 DDRAM address 2 3 4 5 6 7 4 4 42 43 44 45 46 47 For shift left 2 3 4 5 6 7 8 4 42 43 44 45 46 47 48 For shift right 27 67 2 3 4 5 6 4 4 42 43 44 45 46 Figure 5 2-Line by 8-Character Display Example

HD4478U Case 2: For a 6-character 2-line display, the HD4478 can be extended using one 4-output extension driver. See Figure 6. When display shift operation is performed, the DDRAM address shifts. See Figure 6. Display position 2 3 4 5 6 7 8 9 2 3 4 5 6 DDRAM address 2 3 4 5 6 7 8 9 A BC D E F 4 4 42 43 44 45 46 47 48 49 4A 4B4C 4D 4E 4F HD4478U display Extension driver display For shift left 2 3 4 5 6 7 8 9 A BC D E F 4 42 43 44 45 46 47 48 49 4A 4B4C 4D 4E 4F 5 For shift right 27 2 3 4 5 6 7 8 9 A BC D E 67 4 4 42 43 44 45 46 47 48 49 4A 4B4C 4D 4E Figure 6 2-Line by 6-Character Display Example 2

HD4478U Character Generator ROM (CGROM) The character generator ROM generates 5 8 dot or 5 dot character patterns from 8-bit character codes (Table 4). It can generate 28 5 8 dot character patterns and 32 5 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 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:. 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. 3

HD4478U Hitachi User Start Computer processing Determine character patterns Create character pattern listing 5 Create EPROM address data listing 2 Evaluate character patterns Write EPROM 3 No OK? EPROM Hitachi 4 Yes Art work M/T Masking Trial Sample Sample evaluation 6 OK? No Yes Mass production Note: For a description of the numbers used in this figure, refer to the preceding page. Figure 7 Character Pattern Development Procedure 4

HD4478U Programming character patterns This section explains the correspondence between addresses and data used to program character patterns in EPROM. The HD4478U character generator ROM can generate 28 5 8 dot character patterns and 32 5 dot character patterns for a total of 24 different character patterns. Character patterns EPROM address data and character pattern data correspond with each other to form a 5 8 or 5 dot character pattern (Tables 2 and 3). Table 2 Example of Correspondence between EPROM Address Data and Character Pattern (5 8 Dots) EPROM Address AA A9 A8 A7 A6 A5 A4 A3 A2 A A Data LSB O4 O3 O2 O O Cursor position Character code Line position Notes:. EPROM addresses A to A4 correspond to a character code. 2. EPROM addresses A3 to A specify a line position of the character pattern. 3. EPROM data O4 to O correspond to character pattern data. 4. EPROM data O5 to O7 must be specified as. 5. A lit display position (black) corresponds to a. 6. Line 9 and the following lines must be blanked with s for a 5 8 dot character fonts. 5

HD4478U Handling unused character patterns. EPROM data outside the character pattern area: Always input s. 2. EPROM data in CGRAM area: Always input s. (Input s to EPROM addresses H to FFH.) 3. EPROM data used when the user does not use any HD4478U 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 s after it is erased.) b. When unused character patterns are programmed as s: 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 Dots) EPROM Address AA A9 A8 A7 A6 A5 A4 A3 A2 A A Data LSB O4 O3 O2 O O Cursor position Character code Line position Notes:. EPROM addresses A to A3 correspond to a character code. 2. EPROM addresses A3 to A specify a line position of the character pattern. 3. EPROM data O4 to O correspond to character pattern data. 4. EPROM data O5 to O7 must be specified as. 5. A lit display position (black) corresponds to a. 6. Line and the following lines must be blanked with s for a 5 dot character fonts. 6

HD4478U Table 4 Correspondence between Character Codes and Character Patterns (ROM Code: A) Lower 4 Bits Upper 4 Bits xxxx CG RAM () xxxx (2) xxxx (3) xxxx (4) xxxx (5) xxxx (6) xxxx (7) xxxx (8) xxxx () xxxx (2) xxxx (3) xxxx (4) xxxx (5) xxxx (6) xxxx (7) xxxx (8) Note: The user can specify any pattern for character-generator RAM. 7

HD4478U Table 4 Correspondence between Character Codes and Character Patterns (ROM Code: A2) Lower 4 Bits Upper 4 Bits xxxx CG RAM () xxxx (2) xxxx (3) xxxx (4) xxxx (5) xxxx (6) xxxx (7) xxxx (8) xxxx () xxxx (2) xxxx (3) xxxx (4) xxxx (5) xxxx (6) xxxx (7) xxxx (8) 8

HD4478U 9 Table 5 Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character Patterns (CGRAM Data) Character Codes (DDRAM data) CGRAM Address Character Patterns (CGRAM data) 7 6 5 4 3 2 5 4 3 2 7 6 5 4 3 2 High Low High Low High Low Character pattern () Cursor position Character pattern (2) Cursor position For 5 8 dot character patterns Notes:. Character code bits to 2 correspond to CGRAM address bits 3 to 5 (3 bits: 8 types). 2. CGRAM address bits 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 as the cursor display. If the 8th line data is, bits will light up the 8th line regardless of the cursor presence. 3. Character pattern row positions correspond to CGRAM data bits 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. However, since character code bit 3 has no effect, the R display example above can be selected by either character code H or 8H. 5. for CGRAM data corresponds to display selection and to non-selection. Indicates no effect.

HD4478U 2 Table 5 Relationship between CGRAM Addresses, Character Codes (DDRAM) and Character Patterns (CGRAM Data) (cont) Character Codes (DDRAM data) CGRAM Address Character Patterns (CGRAM data) 7 6 5 4 3 2 5 4 3 2 7 6 5 4 3 2 High Low High Low High Low Character pattern Cursor position For 5 dot character patterns Notes:. Character code bits and 2 correspond to CGRAM address bits 4 and 5 (2 bits: 4 types). 2. CGRAM address bits to 3 designate the character pattern line position. The th line is the cursor position and its display is formed by a logical OR with the cursor. Maintain the th line data corresponding to the cursor display positon at as the cursor display. If the th line data is, bits will light up the th line regardless of the cursor presence. Since lines 2 to 6 are not used for display, they can be used for general data RAM. 3. Character pattern row positions are the same as 5 8 dot character pattern positions. 4. CGRAM character patterns are selected when character code bits 4 to 7 are all. However, since character code bits and 3 have no effect, the P display example above can be selected by character codes H, H, 8H, and 9H. 5. for CGRAM data corresponds to display selection and to non-selection. Indicates no effect.

HD4478U 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 6 common signal drivers and 4 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 HD4478U 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 8H, the cursor position is displayed at DDRAM address 8H. AC6 AC5 AC4 AC3 AC2 AC AC AC For a -line display Display position DDRAM address (hexadecimal) 2 3 2 4 3 5 4 6 5 7 6 8 7 9 8 9 A For a 2-line display cursor position Display position 2 3 4 5 6 7 8 9 DDRAM address (hexadecimal) 4 4 2 42 3 43 4 44 5 45 6 46 7 47 8 48 9 49 A 4A cursor position Note: The cursor or blinking appears when the address counter (AC) selects the character generator RAM (CGRAM). However, the cursor and blinking become meaningless. The cursor or blinking is displayed in the meaningless position when the AC is a CGRAM address. Figure 8 Cursor/Blink Display Example 2

HD4478U Interfacing to the MPU The HD4478U 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 DB to DB3 are disabled. The data transfer between the HD4478U 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, DB 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 (DB to DB7) are used. RS R/W E DB7 IR7 IR3 BF AC3 DR7 DR3 DB6 IR6 IR2 AC6 AC2 DR6 DR2 DB5 IR5 IR AC5 AC DR5 DR DB4 IR4 IR AC4 AC DR4 DR Instruction register (IR) write Busy flag (BF) and address counter (AC) read Data register (DR) read Figure 9 4-Bit Transfer Example 22

HD4478U Reset Function Initializing by Internal Reset Circuit An internal reset circuit automatically initializes the HD4478U 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 = ). The busy state lasts for ms after V CC rises to 4.5 V.. Display clear 2. Function set: DL = ; 8-bit interface data N = ; -line display F = ; 5 8 dot character font 3. Display on/off control: D = ; Display off C = ; Cursor off B = ; Blinking off 4. Entry mode set: I/D = ; Increment by S = ; 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 HD4478U. 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 HD4478U can be controlled by the MPU. Before starting the internal operation of the HD4478U, 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 HD4478U is determined by signals sent from the MPU. These signals, which include register selection signal (RS), read/ write signal (R/W), and the data bus (DB to DB7), make up the HD4478U instructions (Table 6). There are four categories of instructions that: Designate HD4478U functions, such as display format, data length, etc. Set internal RAM addresses Perform data transfer with internal RAM Perform miscellaneous functions 23

HD4478U Normally, instructions that perform data transfer with internal RAM are used the most. However, autoincrementation by (or auto-decrementation by ) of internal HD4478U RAM addresses after each data write can lighten the program load of the MPU. Since the display shift instruction (Table ) 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 while an instruction is being executed, check it to make sure it is before sending another instruction from the MPU. Note: Be sure the HD4478U is not in the busy state (BF = ) before sending an instruction from the MPU to the HD4478U. 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 Code Execution Time (max) (when f cp or Instruction RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB DB Description f OSC is 27 khz) Clear display Return home Entry mode set Display on/off control Cursor or display shift Function set Set CGRAM address Set DDRAM address Read busy flag & address Clears entire display and sets DDRAM address in address counter. Sets DDRAM address in address counter. Also returns display from being shifted to original position. DDRAM contents remain unchanged. I/D S Sets cursor move direction and specifies display shift. These operations are performed during data write and read. D C B Sets entire display (D) on/off, cursor on/off (C), and blinking of cursor position character (B). S/C R/L Moves cursor and shifts display without changing DDRAM contents. DL N F Sets interface data length (DL), number of display lines (N), and character font (F). ACG ACG ACG ACG ACG ACG Sets CGRAM address. CGRAM data is sent and received after this setting. ADD ADD ADD ADD ADD ADD ADD Sets DDRAM address. DDRAM data is sent and received after this setting. BF AC AC AC AC AC AC AC Reads busy flag (BF) indicating internal operation is being performed and reads address counter contents..52 ms 37 µs 37 µs 37 µs 37 µs 37 µs 37 µs µs 24

HD4478U Table 6 Instructions (cont) Code Execution Time (max) (when f cp or Instruction RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB DB Description f OSC is 27 khz) Write data to CG or DDRAM Read data from CG or DDRAM Note: Write data Writes data into DDRAM or CGRAM. Read data Reads data from DDRAM or CGRAM. I/D = : Increment I/D = : Decrement S = : Accompanies display shift S/C = : Display shift S/C = : Cursor move R/L = : Shift to the right R/L = : Shift to the left DL = : 8 bits, DL = : 4 bits N = : 2 lines, N = : line F = : 5 dots, F = : 5 8 dots BF = : Internally operating BF = : Instructions acceptable DDRAM: Display data RAM CGRAM: Character generator RAM ACG: CGRAM address ADD: DDRAM address (corresponds to cursor address) AC: Address counter used for both DD and CGRAM addresses 37 µs t ADD = 4 µs 37 µs t ADD = 4 µs Execution time changes when frequency changes Example: When f cp or f OSC is 25 khz, 27 37 µs = 4 µs 25 indicates no effect. After execution of the CGRAM/DDRAM data write or read instruction, the RAM address counter is incremented or decremented by. The RAM address counter is updated after the busy flag turns off. In Figure, t ADD is the time elapsed after the busy flag turns off until the address counter is updated. Busy signal (DB7 pin) Busy state Address counter (DB to DB6 pins) A A + t ADD Note: t ADD depends on the operation frequency t ADD =.5/(f cp or f OSC ) seconds Figure Address Counter Update 25

HD4478U Instruction Description Clear Display Clear display writes space code 2H (character pattern for character code 2H must be a blank pattern) into all DDRAM addresses. It then sets DDRAM address 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 (increment mode) in entry mode. S of entry mode does not change. Return Home Return home sets DDRAM address 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 = ) or decrements (I/D = ) the DDRAM address by when a character code is written into or read from DDRAM. The cursor or blinking moves to the right when incremented by and to the left when decremented by. The same applies to writing and reading of CGRAM. S: Shifts the entire display either to the right (I/D = ) or to the left (I/D = ) when S is. The display does not shift if S is. If S is, 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 and off when D is. When off, the display data remains in DDRAM, but can be displayed instantly by setting D to. C: The cursor is displayed when C is and not displayed when C is. 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 th line for the 5 dot character font selection (Figure 3). B: The character indicated by the cursor blinks when B is (Figure 3). The blinking is displayed as switching between all blank dots and displayed characters at a speed of 49.6-ms intervals when f cp or f OSC is 25 khz. The cursor and blinking can be set to display simultaneously. (The blinking frequency changes according to f OSC or the reciprocal of f cp. For example, when f cp is 27 khz, 49.6 25/27 = 379.2 ms.) 26