You are on page 1of 32

DISPLAY UNIT USER’S MANUAL

Dot-Matrix
LCD Units
(with built-in controllers)
LIFE SUPPORT POLICY
SHARP components should not be used in medical devices with life support functions or in safety equipment (or similiar
applications where component failure would result in loss of life or physical harm) without the written approval of an
officer of the SHARP Corporation.

LIMITED WARRANTY
SHARP warrants to its Customer that the Products will be free from defects in material and workmanship under normal
use and service for a period of one year from the date of invoice. Customer’s exclusive remedy for breach of this warranty
is that SHARP will either (i) repair or replace, at its option, any Product which fails during the warranty period because
of such defect (if Customer promptly reported the failure to SHARP in writing) or, (ii) if SHARP is unable to repair or
replace, refund the purchase price of the Product upon its return to SHARP. This warranty does not apply to any Product
which has been subjected to misuse, abnormal service or handling, or which has been altered or modified in design or
construction, or which has been serviced or repaired by anyone other than Sharp. The warranties set forth herein are in
lieu of, and exclusive of, all other warranties, express or implied. ALL EXPRESS AND IMPLIED WARRANTIES,
INCLUDING THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR USE AND FITNESS FOR A PARTICULAR
PURPOSE, ARE SPECIFICALLY EXCLUDED. In no event will Sharp be liable, or in any way responsible, for any
incidental or consequential economic or property damage.

The above warranty is also extended to Customers of Sharp authorized distributors with the following exception: reports
of failures of Products during the warranty period and return of Products that were purchased from an authorized
distributor must be made through the distributor. In case Sharp is unable to repair or replace such Products, refunds will
be issued to the distributor in the amount of distributor cost.

SHARP reserves the right to make changes in specifications at any time and without notice. SHARP does not assume
any responsibility for the use of any circuitry described; no circuit patent licenses are implied.

© 1999 SHARP Microelectronics of the Americas Printed in the USA.


Dot-Matrix LCD Units

Contents
PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . 3

OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . 3

HARDWARE . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Interface Signals . . . . . . . . . . . . . . . . . . . . . 4
Functional Blocks . . . . . . . . . . . . . . . . . . . . . 4
Microprocessor Interface . . . . . . . . . . . . . . . . 11
Reset Function . . . . . . . . . . . . . . . . . . . . . 12

INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . 15
General Information . . . . . . . . . . . . . . . . . . . 15
Description of Instruction . . . . . . . . . . . . . . . . 15

ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . 19
Absolute Maximum Ratings . . . . . . . . . . . . . . . 19
Electrical Characteristics . . . . . . . . . . . . . . . . 19
Timing Characteristics . . . . . . . . . . . . . . . . . . 19
Power Conditions for Internal Reset . . . . . . . . . . . 20

LCD UNIT USAGE INSTRUCTIONS . . . . . . . . . . . . 21


Interface with External Microprocessor . . . . . . . . . 21
Contrast Control Voltage . . . . . . . . . . . . . . . . 24
Sample Instruction Procedures . . . . . . . . . . . . . 24

HANDLING INSTRUCTIONS . . . . . . . . . . . . . . . . 28

OPERATING RESTRICTIONS . . . . . . . . . . . . . . . 29

Display Unit User’s Manual 1


Dot-Matrix LCD Units

PREFACE
The Sharp dot-matrix LCD units, with built-in con- The LCD unit provides the user with a dot-matrix
trollers, operate under the control of a 4-bit or 8-bit display panel featuring simple interface circuitry.
microcomputer to display alphanumeric characters,
symbols, etc.
Table 1.
Dot-Matrix LCD Unit with Built-In Controllers

180%(5 2) ',63/$<
02'(/ 12
&+$5$&7(56 )250$7

/0;;;  ×  ×  GRWV

/0;;;  ×  ×  GRWV

/0;;;  ×  ×  GRWV

/0;;;  ×  ×  GRWV

2 Display Unit User’s Manual


Dot-Matrix LCD Units

FEATURES OVERVIEW
• Interface with either 4-bit or 8-bit The LCD unit receives character codes (8 bits per
microprocessor. character) from a microprocessor or microcomputer,
latches the codes to its display data RAM (80-byte
• Display data RAM DD RAM for storing 80 characters), transforms each
character code into a 5 × 7 dot-matrix character
• 80 × 8 bits (80 characters).
pattern, and displays the characters on its LCD
• Character generator ROM screen.

• 160 different 5 × 7 dot-matrix character The LCD unit incorporates a character generator
patterns. ROM which produces 160 different 5 × 7 dot-matrix
character patterns. The unit also provides a char-
• Character generator RAM acter generator RAM (64 bytes) through which the
user may define up to eight additional 5 × 7 dot-ma-
• 8 different user programmed 5 × 7 trix character patterns, as required by the applica-
dot-matrix patterns. tion.
• Display data RAM and character generator To display a character, positional data is sent via
RAM may be accessed by the the data bus from the microprocessor to the LCD
microprocessor. unit, where it is written into the instruction register.
A character code is then sent and written into the
• Numerous instructions data register. The LCD unit displays the correspond-
• Clear Display, Cursor Home, Display ing character pattern in the specified position. The
LCD unit can either increment or decrement the
ON/OFF, Cursor ON/OFF, Blink Character,
display position automatically after each character
Cursor Shift, Display Shift. entry, so that only successive characters codes
• Built-in reset circuit is triggered at power need to be entered to display a continuous character
ON. string. The display/cursor shift instruction allows the
entry of characters in either the left-to-right or right-
• Built-in oscillator. to-left direction. Since the display data RAM (DD
RAM) and the character generator RAM (CG RAM)
many be accessed by the microprocessor, unused
portions of each RAM may be used as general
purpose data areas. The LCD unit may be operated
with either dual 4-bit or single 8-bit data transers, to
accommodate interfaces with both 4-bit and 8-bit
microprocessors. The low power feature of the LCD
unit will be further appreciated when combined with
a CMOS microprocessor.

Display Unit User’s Manual 3


Dot-Matrix LCD Units

HARDWARE
Interface Signals
Table 2. Interface Signals

(;7(51$/
6,*1$/ 1$0( ,1387287387 )81&7,21
&211(&7,21

56 ,QSXW 038 5HJLVWHU VHOHFW VLJQDO

 ,QVWUXFWLRQ UHJLVWHU ZKHQ ZULWLQJ

%XV\ IODJ DQG DGGUHVV FRXQWHU ZKHQ UHDGLQJ

 'DWD UHJLVWHU ZKHQ ZULWLQJ DQG UHDGLQJ

5: ,QSXW 038 5HDGZULWH VHOHFW VLJQDO  :ULWLQJ  5HDGLQJ

( ,QSXW 038 2SHUDWLRQ GDWD UHDGZULWH HQDEOH VLJQDO

'%  '% ,QSXW2XWSXW 038 +LJKRUGHU OLQHV RI GDWD EXV ZLWK WKUHHVWDWH ELGLUFWLRQDO IXQFWLRQ IRU XVH LQ GDWD

WUDQVDFWLRQV ZLWK WKH 038 '% PD\ DOVR EH XVHG WR FKHFN WKH EXV\ IODJ

'%  '% ,QSXW2XWSXW 038 /RZRUGHU OLQHV RI GDWD EXV ZLWK WKUHHVWDWH ELGLUHFWLRQDO IXQFWLRQ IRU XVH LQ GDWD

WUDQVDFWLRQV ZLWK WKH 038

7KHVH OLQHV DUH QRW XVHG ZKHQ LQWHUIDFLQJ ZLWK D ELW PLFURSURFHVVRU

9'' 966 3RZHU 6XSSO\ 9''  9 966 *1'

9 3RZHU 6XSSO\ &RQWUDVW DGMXVWPHQW YROWDJH

Functional Blocks
Registers current operation. The data register is also used as
a temporary storage area when reading data from
The LCD unit has two 8-bit registers - an instruc- the display data RAM or character generator RAM.
tion register (IR) and a data register (DR). The When address information is written into the instruc-
instruction register stores instruction codes such as tion register, the corresponding data from the display
"clear display" or "shift cursor", and also stores data RAM or character generator RAM is moved to
address information for the display data RAM and the data register. Data transfer is completed when
character generator RAM. The IR can be accessed the microprocessor reads the contents of the data
by the microprocessor only for writing. register by the next instruction. After the transfer is
The data register is used for temporarily storing completed, data from the next address position of
data during data transactions with the microproces- the appropriate RAM is moved to the data register,
sor. When writing data to the LCD unit, the data is in preparation for subsequent reading operations by
initially stored in the data register, and is then auto- the microprocessor. One of the two registers is
matically written into either the display data RAM or selected by the register select (RS) signal.
character generator RAM, as determined by the
Table 3. Register Selection

56 5: 23(5$7,21

  :ULWH WR LQVWUXFWLRQ UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ FOHDU GLVSOD\ HWF

  5HDG EXV\ IODJ '% DQG DGGUHVV FRXQWHU '%  '%

  :ULWH WR GDWD UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ '5 → '' 5$0 RU '5 → &* 5$0
  5HDG GDWD UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ '' 5$0 → '5 RU &* 5$0 → '5

4 Display Unit User’s Manual


Dot-Matrix LCD Units

Busy Flag (BF) a. Address type a . . . .For dual-line display


When the busy flag is set at a logical "1", the LCD Display Position
Digit 1 2 3 4 5 6 7 8 9 39 40
unit is executing an internal operation, and no in-
Line 1 00H 01H 02H 03H 04H 05H 06H 07H 08H ... 26H 27H
struction will be accepted. The state of the busy flag
is output on data line DB7 in response to the register Line 2 40H 41H 42H 43H 44H 45H 46H 47H 48H ... 66H 67H

selection signals RS = 0, R/W = 1 as shown in Table DD RAM Address (HEX)


3. The next instruction may be entered after the
When a display shift takes place, the addresses
busy flag is reset to logical "0".
shift is as follows:
Address Counter (AC)
Left 01H 02H 03H 04H 05H 06H 07H 08H 09H
... 27H 00H
The address counter generates the address for Shift 41 42 43 44 45 46 47 48 49
H H H H H H H H H
... 67H 40H
the display data RAM and character generator
RAM. When the address set instruction is written ...
into the instruction register, the address information Right 27H 00H 01H 02H 03H 04H 05H 06H 07H 25H 26H
Shift 67 40 41 42 43 44 45 46 47 ... 65H 66H
is sent to the address counter. The same instruciton H H H H H H H H H

also determines which of the two RAM’s is to be The addresses for the second line are not con-
selected. tinuous to the addresses for the first line. A 40-char-
After data has been written to or read from the acter RAM area is assigned to each of the two line
display data RAM or character generator RAM, the as follows:
address counter is automatically incremented or line 1: 00H - 27H
decremented by one. The contents of the address
counter are output on data lines DB0 - DB6 in line 2: 40H - 67H
response to the register selection signals RS = 0, For an LCD unit with a display capacity of less
R/W = 1 as shown in Table 3. than 40 characters per line, characters equal in
Display Data RAM (DD RAM) number to the display capacity, as counted from
display position 1, are displayed.
This 80 x 8 bit RAM stores up to 80 8-bit character
codes as display data. The unused area of the RAM b. Address type b . . . .For single-line display with
may be used by the microprocessor as a general logically dual-line addressing
purpose RAM area. Digit Display Position
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
The display data RAM address, set in the address Line 00 01 02 03 04 05 06 07 40 41 42 43 44 45 46
H H H H H H H H H H H H H H H 47H
counter, is expressed in hexadecimal (HEX) num- 1

bers as follows: DD RAM Address (HEX)

High-order Lower-order When a display shift takes place, the addresses


Bits Bits shift as follows:
AC AC6 AC5 AC4 AC3 AC2 AC1 AC0
Left 01 02 03 04 05 06 07 08 41 42 43 44 45 46 47 48
Shift H H H H H H H H H H H H H H H H
HEX HEX
Digit Digit
Right 27 00 01 02 03 04 05 06 67 40 41 42 43 44 45 46
H H H H H H H H H H H H H H H H
Shift
Example: DD RAM address '4E'

1 0 0 1 1 1 0 The right-hand eight characters, for the purposes


of addressing and shifting, may be considered to
4 E constitute a second display line. For the address
The address of the display data RAM corre- type of each model, see Table 12.
sponds to the display position on the LCD panel as
follows:

Display Unit User’s Manual 5


Dot-Matrix LCD Units

AC6 AC5AC4 AC3 AC2 AC1 AC0


Character Generator ROM (CG ROM) AC 0 0 0 1 0 0 0

This ROM generates a 5 × 7 dot-matrix character Display Position


pattern for each of 160 different 8-bit character Digit 1 2 3 4 5 6 7 8 9 10 11
Single-Line
codes. The correspondence between character Display
00 01 02 03 04 05 06 07 08 09 0A

codes and character patterns is shown in Tables 4 DD RAM


Address (HEX)
and 5. Inquiries are invited for units with custom Cursor Position
character patterns.
Display Position
Digit 1 2 3 4 5 6 7 8 9 10 11
Character Generator RAM (CG RAM) Line 1 00 01 02 03 04 05 06 07 08 09 0A
Dual-Line
Display
This RAM stores eight arbitrary 5 x 7 dot-matrix Line 2 40 41 42 43 44 45 46 47 48 49 4A

character patterns, as programmed by the user. For DD RAM


Address (HEX)
displaying a character pattern stored in the CG Cursor Position
RAM, a character code corresponding to the left- NOTE:
The address counter has the dual function of containing either
most column in Tables 4 and 5 is written into the a DD RAM address or a CG RAM address. The cursor/blink
controller does not distinguish between these two functions,
display data RAM. and thus, when activated, it always considers the address
counter to contain a DD RAM address. To avoid spurious
For the relationship among the CG RAM address, cursor/blink effects, the cursor/blink function should be turned
off while the microprocessor writes to or reads from the CG RAM.
the display data, and the displayed pattern, see
Table 6. As shown in Table 6., the unused portion
of the CG RAM may be used as a general purpose
RAM area. Parallel-to-Serial Converter
Timing Generator This circuit converts parallel data read from the
CG ROM or CG RAM to serial data for use by the
The timing generator produces timing signals display driver.
used for the internal operation of the display data
RAM, character generator ROM,and character gen- Bias Voltage Generator
erator RAM. Timing in controlled so that read-out of This circuit provides the bias voltage level re-
the RAM for display and access to the RAM by the quired for driving the liquid crystal display. Some
external microprocessor do not interfere. Display models incorporate a temperature compensation
flicker when data is written to the display data RAM circuit which generates a temperature dependent
is eliminated. bias voltage in order to provide constant display
Cursor/Blink Controller contrast at all ambient temperature levels.

This circuit can be used to generate a cursor or LCD Driver


blink a character in the display position indicated by This circuit receives display data, timing signals,
the DD RAM address, which is set in the address and bias voltage, and produces the common and
counter (AC). The following example shows the segment display signals.
cursor position when the address counter contains
"08" (HEX). LCD Panel
This is a dot-matix liquid crystal display panel
arranged in either 1 row of 16 characters, 2 rows of
16 characters, 2 rows of 20 characters, or 2 rows of
40 characters.

6 Display Unit User’s Manual


Dot-Matrix LCD Units

EL EL
back- Inverter 5V
light (See note 2)

Display
LED Data
Segment
back- Signals 4
LCD Electrode
light Panel Drive
Circuit

Scanning
Signals 3
VLED VLSS
Common
Electrode
Drive 4
Circuit

3
3

7
Cursor/Blink
Timing 7 Controller
Generator

7 Character
8 Generator
Display Data ROM
7 RAM 8 (CG ROM)
Address (DD RAM) 7,200 bits
Counter 7 80 x 8 bits
(AC) 5 Parallel-to-Serial
8 Converter
5 6
7 7 Character
8 Generator
ROM
(CG ROM)
Instruction
512 bits
Decoder
7
8

Instruction Data Register Busy Bias


Register (/R) (DR) Flag (BF) Voltage
Generator
8 (See Note 1)
8

I/O Buffer

4 4
VDD VO VSS

RS R/W E DB4 - DB7 DB0 - DB3

NOTES:
1. LM16152 incorporates a temperature compensation circuit
within the bias voltage generator. See table 12.
2. For the inverters of EL backlights, please contact your
representative.
LCD27-6

Figure 1. Functional Block Diagram

Display Unit User’s Manual 7


Dot-Matrix LCD Units

Table 4. Character Codes

HIGH-ORDER
4 BIT
LOW- 0000 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
ORDER 4 BIT
CG
xxxx0000 RAM
(1)
(2)
xxxx0001

(3)
xxxx0010

(4)
xxxx0011

(5)
xxxx0100

(6)
xxx0101

(7)
xxx0110

(8)
xxxx0111

xxxx1000 (1)

(2)
xxxx1001

(3)
xxxx1010

(4)
xxxx1011

(5)
xxxx1100

xxxx1101 (6)

xxxx1110 (7)

xxxx1111 (8)

NOTES:
1. The CG RAM generates character patterns in accordance with the user's program.
2. Shaded areas indicate 5 x 10 dot character patterns.

8 Display Unit User’s Manual


Dot-Matrix LCD Units

Table 5. Character Codes

High-Order
Low- 4 bit 0000 0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
Order 4 bit
CG
× × × ×0 0 0 0 0 @ P \ p α p
RAM
(1)

× × × ×0 0 0 1 (2) ! 1 A Q a q ä q

× × × ×0 0 1 0
(3) " 2 B R b r β θ

× × × ×0 0 1 1 (4) # 3 C S c s ε ∞

× × × ×0 1 0 0 (5) $ 4 D T d t µ Ω

× × × ×0 1 0 1 (6) % 5 E U e u σ ü

× × × ×0 1 1 0
(7) & 6 F V f v ρ Σ

× × × ×0 1 1 1 (8) ’ 7 G W g w π

× × × ×1 0 0 0 (1) ( 8 H X h x √ x

(2) ) _1
× × × ×1 0 0 1 9 I Y i y y

× × × ×1 0 1 0 (3) : J Z j z j
*

× × × ×1 0 1 1 (4) + ; K [ k { x

(5) < L ¥ 1 | ¢
× × × ×1 1 0 0 ’

× × × ×1 1 0 1 (6) - = M ] m } £ ÷

× × × ×1 1 1 0 (7) . > N ^ n → n

× × × ×1 1 1 1 (8) / ? O _ o ← ö

Display Unit User’s Manual 9


Dot-Matrix LCD Units

Table 6. Relationship Among Character Code


(DD RAM), CG RAM Address, and Character Pattern (CG RAM)

Character Code Character Pattern


(DD RAM Data) CG RAM Address (CG RAM Data)

7 6 5 4 3 2 1 0 5 4 3 2 1 0 7 6 5 4 3 2 1 0

High-order Low-order High-order Low-order High-order Low-order


bit bit bit bit bit bit

0 0 0 * * * 1 1 1 1 0
0 0 1 1 0 0 0 1
Sample
0 1 0 1 0 0 0 1 Character
0 0 0 0 * 0 0 0 0 0 0 0 1 1 1 1 1 1 0 Pattern
(1)
1 0 0 1 0 1 0 0
1 0 1 1 0 0 1 0
1 1 0 1 0 0 0 1
1 1 1 Cursor
* * * 0 0 0 0 0
Position
0 0 0 * * * 1 0 0 0 1
0 0 1 0 1 0 1 0
Sample
0 1 0 1 1 1 1 1
Character
0 0 0 0 * 0 0 1 0 0 1 0 1 1 0 0 1 0 0 Pattern
(2)
1 0 0 1 1 1 1 1
1 0 1 0 0 1 0 0
1 1 0 0 0 1 0 0
1 1 1 * * * 0 0 0 0 0
0 0 0 * * *
0 0 1

1 1 1
0 0 0 0 * 1 1 1 1 0 0
1 0 1
1 1 0
1 1 1
* * *

NOTES:
1. Character code bits 0 - 2 correspond to CG RAM address bits 4. As shown in tables 4 and 5, character patterns in the CG RAM
3 - 5. Each of the 8 unique bit strings designates one of the 8 are accessed by character codes with bits 4 - 7 equal to '0'. For
character patterns. example, the character pattern 'R', shown in the first sample
2. CG RAM address bits 0 - 2 designate the row position of each character pattern of the table, is selected by the character code
character pattern. The 8th row is the cursor position. CG RAM '00' (HEX) or '08' (HEX), since bit 3 of the character code is a
data in the 8th row is OR'ed with the display cursor. Any '1' don't care" bit (i.e., can take either value, '00' or '1').
bits in the 8th row will result in a displayed dot regardless of the 5. CG RAM data '1' produces a dark dot, and data '0' produces a
cursor status (ON/OFF). Accordingly, if the cursor is to be light dot in the corresponding position on the display panel.
used, CG RAM data for the 8th row should be set to '0'. 6. * = Signifies a "don't care" bit
3. CG RAM data bits 0 - 4 correspond to the column position of
each character pattern bit 4 corresponding to the left most
column of the character pattern. CG RAM data bits 5 - 7 are
not used for displaying character patterns, but may be used as
a general purpose RAM area.
LCD27-8

10 Display Unit User’s Manual


Dot-Matrix LCD Units

Microprocessor Interface The high-order 4 bits (corresponding to DB4 - DB7


The LCD unit performs either dual 4-bit or single in an 8-bit transfer) are transferred first, followed by
8-bit data transers, allowing the user to interface with the low-order 4 bits (corresponding to DB0 - DB3 in
either a 4-bit or 8-bit microprocessor an 8-bit transfer). The busy flag is to be checked on
completion of the second 4-bit data transfer. Busy
4-Bit Microprocessor Interface. flag and address counter are output in two opera-
tions.
Data lines DB4 - DB7 are used for data transfers.
Data transactions with the external microprocessor 8-bit Microprocessor Interface
take place in two 4-bit data transfer operations. Each 8-bit piece of data is transferred in a single opera-
tion using the entire data bus DB0 - DB7.

RS

R/W

DB7 IR7 IR3 BF AC3 DR7 DR3

DB6 IR6 IR2 AC6 AC2 DR6 DR2

DB5 IR5 IR1 AC5 AC1 DR5 DR1

DB4 IR4 IR0 AC4 AC0 DR4 DR0

Write to Read Busy Read Data


Instruction Flag (BF) and Register (DR)
Register (IR) Address
Counter (AC)

LCD27-9

Figure 2. 4-Bit Data Transfer

Display Unit User’s Manual 11


Dot-Matrix LCD Units

Reset Function 3. Display ON/OFF Control


Initialization by Internal Reset Circuit D = 0 . . . .Display OFF
The LCD unit has an internal reset circuit for C = 0 . . . .Cursor OFF
implementing an automatic reset operation at B = 0 . . . .Blink function OFF
power-on. During the initalization operation, the
4. Entry Mode Set
busy flag is set. The busy state lasts for 10 msec
after VDD reaches 4.5 V. The following instructions I/D = 1 . . . .Increment Mode
are executed in initializing the LCD unit. S = 0 . . . .Display shift OFF
1. Clear Display CAUTION
If the power conditions stated in Table 11, "Power condi-
2. Function Set tions applicable when internal reset circuit is used," are
not satisfied, then internal reset circuit will not operate
DL = 1 . . . . 8-bit data length for interface properly and the LCD unit will not be initalized. In this
N = 0 . . . . Single-line display case, the initialization procedure must be executed by the
external microprocessor.
F = 0 . . . . 5 × 7 dot-matrix character font

12 Display Unit User’s Manual


Dot-Matrix LCD Units

Initialization by Instructions
If the power conditions for the normal operation
of the internal reset circuit are not satisfied (see
Table 11), then LCD unit must be initialized by
executing a series of instructions. The procedure
for this initialization process is as follows:

Power ON

Wait 15 ms or more
after VDD reaches 4.5 V

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1 * * * * Function Set (8-Bit Interface)

Wait 4.1 ms or more

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1 * * * * Function Set (8-Bit Interface)

Wait 100 µs or more

RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1 * * * * Function Set (8-Bit Interface)

(a) Busy flag can be checked after the following instructions


are completed. If the busy flag is not going to be checked,
then a wait time longer than the total execution time of
these instructions is required (See Table 7.)
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 1 N F * * Function Set 8-Bit Interface, Caution: At this point,
Single/Dual Line the display format
0 0 0 0 0 0 1 0 0 0 Display Off Display, Display Font an't be changed.
0 0 0 0 0 0 0 0 0 1 Display Clear
0 0 0 0 0 0 0 1 I/D S Entry Mode Set

End of Initialization
LCD21-10

Figure 3. 8-Bit Interface

Display Unit User’s Manual 13


Dot-Matrix LCD Units

4-Bit Interface

Power ON

Wait 15 ms or more
after VDD reaches 4.5 V

RS R/W DB7 DB6 DB5 DB4 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1
Function Set (8-Bit Interface)

Wait 4.1 ms or more

RS R/W DB7 DB6 DB5 DB4 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1
Function Set (8-Bit Interface)

Wait 100 µs or more

RS R/W DB7 DB6 DB5 DB4 Busy flag can't be checked before execution of this
instruction
0 0 0 0 1 1
Function Set (8-Bit Interface)

(a) Busy flag can be checked after the following instructions


are completed. If the busy flag is not going to be checked,
then a wait time longer than the total execution time of
these instructions is required (See Table 7.)
RS R/W DB7 DB6 DB5 DB4
I I Function Set (4-Bit Interface)
0 0 0 0 1 0
0 0 0 0 1 0 This instruction signals the LCD unit to begin accepting and
II sending data in dual 4-bit transfers for all subsequent
0 0 N F * * transfers for all subsequent transactions. This is the only
4-bit instruction recognized by the LCD unit.
0 0 0 0 0 0
III
0 0 1 0 0 0 II Function Set 4-Bit Interface, Caution: At this point,
Single/Dual Line the display format
0 0 0 0 0 O III Display Off Display, Display Font can't be changed.
IV
0 0 0 0 0 1 IV Display Clear
0 0 0 0 0 0 V Entry Mode Set
V
0 0 0 1 I/D S

End of Initialization
LCD21-11

Figure 4. 4-Bit Interface

14 Display Unit User’s Manual


Dot-Matrix LCD Units

INSTRUCTIONS
General Information Description of Instruction
When the LCD unit is controlled by an external Display Clear
microprocessor, the only registers which can be
RS R/W DB7 DB0
directly accessed by the microprocessor are the CODE 0 0 0 0 0 0 0 0 0 1
instruction register (IR) and data register (DR). Con-
trol information is buffered to allow the LCD unit to The display data RAM is filled with the "space"
interface with various microprocessors and periph- code, 20H. The address counter is reset to zero. If
eral control devices with different operating speeds. the display has been shifted, the original position is
The internal operation of the LCD unit is determined restored. By execution of this instruction, the dis-
by the signals sent from the external microproces- play goes off, and the cursor and character blink
sor. These signals include the register select (RS) functions, if activated, are moved to the upper, left-
signal, the read/write (R/W) signal, and the data bus most display position.
(DB0 - DB7) signals.
Display/Cursor Home
Table 7 lists the instructions available to the LCD
RS R/W DB7 DB0
unit, with their execution times. The instructions fall
CODE 0 0 0 0 0 0 0 0 1 *
into the following four categories.
NOTE: * = Don't Care
1. Instructions for setting LCD unit functions, such
as display format and data length The address counter is reset to zero. If the dis-
play has been shifted, the original position is re-
2. Instructions for addressing the internal RAM’s stored. The content of the DD RAM is not affected.
The cursor and character blink functions, if acti-
3. Instructions for transferring data to or from the vated, are moved to the upper, leftmost display
internal RAM’s position.
4. Other instructions Entry Mode Set
RS R/W DB7 DB0
In normal operation, instructions from category CODE 0 0 0 0 0 0 0 0 I/D S
(3) are used most frequently. The internal RAM
address may be incremented or decremented auto- I/D: The address counter is incremented (I/D = 1) or
matically after each data transaction, to reduce the decremented (I/D = 0) by one, following the
programming requirements of the microprocessor. reading or writing of each display data RAM
The display may also be shifted automatically after character code. The cursor and character blink
each display data write (see Sample Instruction functions move one display position to the right
Procedures section for examples). These features (I/D = 1) or left (I/D = 0). The same operation
facilitate the construction of efficient systems. takes place when data is written to or read from
the character generator RAM.
During the internal execution of an instruction, no
instruction other than the "busy flag/address counter S: When S = 1, the entire display is shifted one
read" instruction will be accepted. During internal position to the left (I/D = 1) or right (I/D = 0)
operation the busy flag is set to "1". It is necessary following the writing of a display data RAM
for the microprocessor to check that the busy flag is character code. The cursor and character blink
reset to "0" before sending the next instruction. functions do not move relative to the display
position. When S = 0, the display is not shifted.
NOTE The display is not shifted when writing data to
Either the microprocessor must check that the busy flag the character generator RAM.
is not set to "1" before sending each instruction, or the
interval waited before sending each instruction must be
made sufficiently longer than the execution time of the
previous instruction. For the execution time of each
instruction, see Table 7.

Display Unit User’s Manual 15


Dot-Matrix LCD Units

Display ON/OFF The display and/or cursor are shifted to the right
or left. For two-line displays, the cursor moves from
RS R/W DB7 DB0
the 40th position of the top line to the first position of
CODE 0 0 0 0 0 0 1 D C B
the second line. From the 40th position of the
D: When D = 1, the display is turned on. second line, the cursor does not move back to the
home position, but rather to the first position of the
When D = 0, the display is turned off with the second line.
display data retained in the display data RAM.
6& 5/

C: When C = 1, the cursor is displayed in the


  6KLIW WKH FXUVRU WR WKH OHIW $&← $&   
position specified by the address counter. When
  6KLIW WKH FXUVRU WR WKH ULJKW $& ← $& 
C = 0, the cursor is not displayed. The cursor is
  6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH OHIW
made up of five dots displayed across the 8th
display row, below the 5 × 7 dot-matrix character   6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH ULJKW

block. For 5 × 10 dot-matrix character blocks, 5 NOTE: When the display is shifted, the address counter is
dots are displayed across the 11th row. not affected.

B: When B = 1, the character at the cursor position Function Set


blinks on and off. When this function is acti- RS R/W DB7 DB0
vated, at fcp or fosc = 250 kHz, alternating CODE 0 0 0 0 1 DL N 0 * *
between all dots black, and the display charac-
ter, the character is alternately displayed for NOTE: * = Don't Care

409.6 ms and blanked for 409.6 ms. The cursor DL: Selects the interface data length. When DL = 1,
may be used simultaneously with the character 8-bit data transfers are used. When DL = 0, 4-bit
blink function. (Blink frequency varies in propor- data transfers are used.
tion to the reciprocal of fCP or fOSC.
409.6 × 250/270 = 379.2 ms; fCP = 270 kHz.) NOTE
When using a 4-bit data length, two transfer operations
are needed to transfer a complete data word to or from
the external micoprocessor.

N: Selects display format (single or dual line). See


Table 12 for the correct input value for each
model.
Cursor CAUTION
Character Font Character Font The function set instruction must be executed at the
5 x 7 dot 5 x 10 dot beginning of the microprocessor program, before all other
instructions except the busy flag/address counter read
(A) Cursor Function (B) Character Blink Function
instruction. The function set instruction cannot be exe-
LCD27-16 cuted again except to change the interface data length.
Once set, the display format cannot be changed.

Display/Cursor Shift
RS R/W DB7 DB0
CODE 0 0 0 0 0 1 S/C R/L * *
NOTE: * = Don't Care

16 Display Unit User’s Manual


Dot-Matrix LCD Units

CG RAM Address Set CG RAM/DD RAM Data Write


RS R/W DB7 DB0 RS R/W DB7 DB0

CODE 0 0 0 1 A A A A A A CODE 1 0 D D D D D D D D

The address counter is loaded with a character An 8-bit data word is written into either the char-
generator RAM address, expressed as a 6-digit acter generator RAM or display data RAM, as de-
binary number. Following the execution of this in- termined by the most recently executed address set
struction, subsequent data transactions will be be- instruciton. The data is written into the RAM location
tween the external microprocessor and the specified by the address counter. After the data is
character generator RAM. written into the RAM, the address counter is either
incremented or decremented by one, as determined
DD RAM Address Set by the current entry mode. A display shift may also
RS R/W DB7 DB0 take place after the data is written.
CODE 0 0 1 A A A A A A A
CG RAM/DD RAM Data Read
The address counter is loaded with a display data RS R/W DB7 DB0
RAM address, expressed as a 7-digit binary num- CODE 1 1 D D D D D D D D
ber. Following the execution of this instruction, sub-
sequent data transactions will be between the An 8-bit data word is read from either the charac-
external microprocessor and the display data RAM. ter generator RAM or display data RAM, as deter-
For N = 0 (single line display), the binary number, mined by a previously executed address set
ADD may have a value ranging from 00H to 4FH. For instruction. The data is read from the RAM location
N = 1 (dual line display), the binary number, ADD, specified by the address counter.
may have a value ranging from 00H to 27H for the This instruction must be immediately preceded by
first line, or 40H to 67H for the second line. the CG RAM address set instruction, the DD RAM
address set instruction, the cursor shift instruction,
Busy Flag/Address Counter Read or a previous CG RAM/DD RAM data read instruc-
RS R/W DB7 DB0 tion. Any other preceding instruction will cause in-
CODE 0 1 BF A A A A A A A1 valid data to be read. The address set instructions
cause the address counter to be loaded with a valid
The busy flag (BF) is read out, and indicates data read address.
whether or not the LCD unit is still executing the
The cursor shift command allows selected DD
previous instruction. BF = 1 indicates the busy state RAM data to be read without the necessity of reset-
(internal operation), and the next instruction will not ting the DD RAM address. Following the cursor shift
be accepted until BF = 0. This instruction also reads instruction, the CG RAM/DD RAM data read instruc-
out the contents of the address counter, expressed tion will read data from the DD RAM.
as a 7-digit binary number. The address counter is
After the execution of each data read instruction,
used for accessing both the character generator
the address counter is either incremented or decre-
RAM and the display data RAM. On read-out, the mented by one, as determined by the current entry
address counter will contain either a character gen- mode. It is not necessary to reset the RAM address
erator RAM address or a display data RAM address, before the execution of subsequent data read in-
as determined by the most recently executed ad- structions if the same RAM is to be read. The
dress set instruction. display is not shifted by the data read instruction.
NOTE
After the execution of the CG RAM/DD RAM data write
instruction, the address counter is incremented or decre-
mented automatically. However, the contents of the RAM
location specified by the address counter cannot be read
by a subsequent CG RAM/DD RAM data read instruction.
The correct procedure for reading data from the CG RAM
or DD RAM is to execute an address set or cursor shift
instruction. Once a data read instruction has been exe-
cuted, successive data read instructions may be exe-
cuted, with no requirement for intervening instructions.

Display Unit User’s Manual 17


Dot-Matrix LCD Units

Table 7. Instruction Set

&2'( (;(&87,21 7,0( PD[


,16758&7,21 )81&7,21

56 5: '% '% '% '% '% '% '% '%


I &3 RU I26&  N+]

'LVSOD\ &OHDU           &OHDU HQWHU GLVSOD\ DUHD UHVWRUH GLVSOD\ IURP  PV

VKLIW DQG ORDG DGGUHVV FRXQWHU ZLWK '' 5$0

DGGUHVV +

'LVSOD\&XUVRU          5HVWRUH GLVSOD\ IURP VKLIW DQG ORDG DGGUHVV  PV

+RPH FRXQWHU ZLWK '' 5$0 DGGUHVV +

(QWU\ 0RGH         ,' 6 6SHFLI\ FXUVRU DGYDQFH GLUHFWLRQ DQG GLVSOD\  µV


6HW VKLIW PRGH 7KLV RSHUDWLRQ WDNHV SODFH DIWHU

HDFK GDWD WUDQVIHU

'LVSOD\ 212))        ' & % 6SHFLI\ DFWLYDWLRQ RI GLVSOD\ '  FXUVRU &   µV
DQG EOLQNLQJ RI FKDUDFWHU DW FXUVRU SRVLWLRQ % 

'LVSOD\&XUVRU       6& 5/ 6KLIW GLVSOD\ RU PRYH FXUVRU  µV


6KLIW

)XQFWLRQ 6HW      '/ 1  6HW LQWHUIDFH GDWD OHQJWK '/ DQG QXPEHU RI  µV
GLVSOD\ OLQHV 1 

&* 5$0     $&* /RDG WKH DGGUHVV FRXQWHU ZLWK D &* 5$0  µV
$GGUHVV 6HW DGGUHVV 6XEVHTXHQW GDWD LV &* 5$0 GDWD

'' 5$0    $'' /RDG WKH DGGUHVV FRXQWHU ZLWK D '' 5$0  µV
$GGUHVV 6HW DGGUHVV 6XEVHTXHQW GDWD LV '' 5$0 GDWD

%XV\   %) $& 5HDG EXV\ IODJ %) DQG FRQWHQWV RI DGGUHVV  µV


)ODJ$GGUHVV FRXQWHU $& 

&RXQWHU 5HDG

&* 5$0''   :ULWH GDWD :ULWH GDWD WR &* 5$0 RU '' 5$0  µV
5$0 'DWD :ULWH

&* 5$0''   5HDG GDWD 5HDG GDWD IURP &* 5$0 RU '' 5$0  µV
5$0 'DWD 5HDG

,'  ,QFUHPHQW ,'  'HFUHPHQW '' 5$0 'LVSOD\ 'DWD 5$0

6  'LVSOD\ 6KLIW 2Q &* 5$0 &KDUDFWHU *HQHUDWRU 5$0

6&  6KLIW 'LVSOD\ 6&  0RYH &XUVRU $&* &KDUDFWHU *HQHUDWRU 5$0 $GGUHVV

5/  6KLIW 5LJKW 5/  6KLIW /HIW $'' 'LVSOD\ 'DWD 5$0 $GGUHVV

'/  %LW '/  %LW $& $GGUHVV &RXQWHU

1  'XDO /LQH 1  6LQJOH /LQH

%)  ,QWHUQDO 2SHUDWLRQ %)  5HDG\ IRU ,QVWUXFWLRQ

NOTES:
1. Symbol "*" signifies a "don’t care" bit.
2. Correct input value for "N" is predetermined for each model (see Table 12).

18 Display Unit User’s Manual


Dot-Matrix LCD Units

ELECTRICAL CHARACTERISTICS Table 8.

Absolue Maximum Ratings 3$5$0(7(5 6<0%2/ 7(67 &21',7,216 0,1 0$; 81,7

See the device specifications for each LCD unit 2XWSXW + 92+ ,2+  P$   9
model. 9ROWDJH
/ 92/ ,2/  P$   9

Electrical Characteristics
See the device specificiations for each LCD unit
model. Some of the currently available specifica-
tions do not describe the test conditions for the
high-level and low-level output voltages. These
conditions are as follows:

Timing Characteristics

VIH
RS
VIL
tAS tAH

R/W VIL

PWEH tAH

tEf

VIH
E V
IL

tEr tDSW tH

VIH
DB0 - DB7 V VALID DATA
IL

tcycE

LCD27-24

Figure 5. Write Operation Timing Diagram


(For data sent from the external microprocessor to the LCD unit)

Table 9. Write Operation Timing Characteristics


(VDD = 5.0 ± 5%, VSS = 0 V, TA = 0 ~ 50°C)

9$/8(
3$5$0(7(5 6<0%2/ 81,7

0,1 0$;

(QDEOH &\FOH 7LPH W&<&(   QV

(QDEOH 3XOVH :LGWK +LJK /HYHO 3:(+   QV

(QDEOH 5LVH)DOO 7LPH W (U W(I   QV

6HWXS 7LPH 56 5:( W$6   QV

$GGUHVV +ROG 7LPH W$+   QV

'DWD 6HWXS 7LPH W'6:   QV

'DWD +ROG 7LPH W+   QV

Display Unit User’s Manual 19


Dot-Matrix LCD Units

VIH
RS
VIL
tAS tAH

R/W VIH

PWEH tAH

VIH
E
VIL
tEr tEf

tDDR tDHR

VOH
DB0 - DB7 VALID DATA
VOL
tcycE

LCD27-25

Figure 6. Read Operation Timing Diagram


(For data sent from the LCD unit to the external microprocessor)

Table 10. Read Operation Timing Characteristics Table 11. Power Conditions for Internal Reset
(VDD = 5.0 ± 5%, VSS = 0 V, Ta = 0 ~ 50°C)
9$/8(
3$5$0(7(5 6<0%2/ 81,7
9$/8(
3$5$0(7(5 6<0%2/ 81,7 0,1 7<3 0$;

0,1 0$;
9ROWDJH %XLOG8S 7LPH WUFF    PV
(QDEOH &\FOH 7LPH WF\F(   QV
3RZHU2II 3HULRG W2))    PV
(QDEOH 3XOVH :LGWK +LJK /HYHO 3: (+   QV

(QDEOH 5LVH)DOO 7LPH W (U W(I   QV


If the above conditions are not satisfied, the inter-
6HWXS 7LPH 56 5:( W$6   QV
nal reset circuit will not operate normally. In such a
$GGUHVV +ROG 7LPH W$+   QV
case, the LCD unit must be initialized by executing
'DWD 'HOD\ 7LPH W''5   QV

'DWD +ROG 7LPH W2+5   QV


a series of instructions (see the Execution by In-
structions section).

4.5 V

0.2 V 0.2 V 0.2 V


VDD

0.1 ms ≤ trCC ≤ 10 ms tOFF ≥ 1 ms

NOTE: * tOFF indicates Power-off Period.


LCD27-26

Figure 7.

20 Display Unit User’s Manual


Dot-Matrix LCD Units

LCD UNIT USAGE INSTRUCTIONS


Interface with External Microprocessor
1. 8-bit Microprocessor

RS

R/W

OPERATING
INTERNAL OPERATION READY FOR DATA
STATUS

NOT
DB7 DATA DATA
BUSY BUSY BUSY

Write Instruction Check Busy Flag Check Busy Flag Check Busy Flag Write Instruction
LCD27-27

Figure 8. 8-Bit Interface Timing (Example)

a. Interface to 8-Bit Microprocessor via Peripheral


Interface Adaptor (PIA). The following exempli-
fies the connection of the LCD unit to an 8-bit
microprocessor chip through a PIA or I/0 port.
The interface is TTL compatible. PB0 - PB7 of
the interface device are connected to DB0 - DB7
of the LCD unit, and PA0 - PA2 are connected to
E, R/W, and RS respectively.
When the PIA is used, care must be taken to
insure the proper relationship between the E
signal and other signals when reading and writ-
ing data.

A15 CS2
A14 CS1 PA2 RS
A13 CS0
A1 RS1 PA1 R/W
A0 RS0
MC6800 MC6821 LCD UNIT
R/W R/W PA0 E
VMA
E 8
φ2 PB0 - PB7 DB0 - DB7

DB0 - DB7 8 D0 - D7

LCD27-28

Display Unit User’s Manual 21


Dot-Matrix LCD Units

b. Direct Connection to 8-Bit Microprocessor

VMA
φ2 E
A15
MC6800 LCD UNIT
A0 RS
R/W R/W
8 DB0 - DB7
D0 - D7

LCD27-29

c. Interface with MC6805 Microprocessor

A0 - A7 8
DB0 - DB7

MC6805 LCD UNIT


C0 E
C1 RS
C2 R/W

LCD27-30

d. Interface with Z-80 Microprocessor

D0 - D7 DB0 - DB7

A0 RS

1 KΩ
A4 A Y1
E
A5 B
200PF
A6 C LS138 LCD
Z80
A7 G2 A UNIT
G2 B
MI G

IORQ

RD R/W

LCD27-31

22 Display Unit User’s Manual


Dot-Matrix LCD Units

2. 4-Bit Data Transfer with a Single-Line, 16-Char- Since the data lines DB0 - DB3 are not con-
acter Display (Using Internal Reset). Table 14 nected, this data is not accepted and must be
shows a sample operating procedure for an LCD written again (i.e. the function set instruction
unit in this mode. After power has been turned must be written twice). Subsequent data trans-
on, the 8-bit data transfer mode is in effect, and fers are completed in two 4-bit transfer opera-
the first write operation is assumed to be an 8-bit tions (see Table 14).
data transfer.

RS

R/W

OPERATING
INTERNAL OPERATION READY FOR DATA
STATUS

NOT
DB7 IR7 IR3
BUSY
AC3 AC3 D7 D3
BUSY

Write Instruction Check Busy Flag Check Busy Flag Write Instruction

NOTE: IR7, IR3: Instruction bits 7 and 3.


AC3: Address counter bit 3.
LCD27-32

Figure 9. 4-Bit Interface Timing (Example)

O1 RS
O2 R/W
O3 E
SM200 LCD UNIT

4
P10 - P13 DB4 - DB7

LCD27-33

Figure 10. Connection to SM200

Display Unit User’s Manual 23


Dot-Matrix LCD Units

Contrast Control Voltage 2. 4-Bit Microprocessor


The LCD unit has three power terminals, VDD, The LCD unit can be connected to the I/O port
VSS, and V0. A contrast control voltage is supplied of a 4-bit microprocessor. If the I/O port is not
to the terminal V0. The panel is driven by the voltage limited, 8-bit data may be transferred between
difference between VDD and VO (i.e., VDD - VO). the devices. Otherwise, 4-bit split data may be
Figure 11 shows an example of the contrast control transferred in two operations, after selecting the
voltage supply circuit, in which VR is adjusted to 4-bit data length function. For the timing wave-
obtain the best display quality. form, see Figure 9. Figure 10 shows a sample
connection to an SM-200 microprocessor.
It should be noted that the busy flag check
+5 V requires a two-step operation.
VDD
3. 8-Bit Data Transfer with a Dual-Line, 16-Charac-
LCD UNIT ter Display (Using Internal Reset).
VSS

Table 15 shows a sample operating procedure


VR VO for an LCD unit in this mode. The cursor is
5 KΩ automatically moved from the first line to the
second line after column 40 of the first line has
been written. In the example (Table 15), where
NOTE: Ground (S type: -5 V) (Depends on particular only 16 characters are displayed on each line,
LCD unit model-refer to device specifications) LCD27-34 the display data RAM address must be reset
after the 16th character has been written. When
Figure 11. Contrast Adjustment Circuit
a display shift is executed, both lines are shifted
simultaneously. When the diplay shift operation
is repeated, characters on one line are not
Sample Instruction Procedures moved to the other line, but rather are looped
1. 8-Bit Data Transfer with a Single-Line, 16-Char- back onto the same line.
acter Display (Using Internal Reset).
NOTE
To use the internal reset function, the power conditions
Table 13 shows a sample operating procedure must be satisfied. Otherwise, the LCD unit must be
for an LCD unit in this mode. Initially, the function initialized by the execution of a series of instructions, as
of the LCD unit must be selected by executing shown in the Initialization by Instructions section.
the function set instruction. Up to 80 characters
may be stored in the display data RAM, and may
be displayed by using the display shift operation.
The contents of the display data RAM are not
affected by the display shift operation, and the
display/cursor home instruction enables the res-
toration of the initial display position.

24 Display Unit User’s Manual


Dot-Matrix LCD Units

Table 13. 8-Bit Data Transfer with a Single-Line


(16-Character Display (Using Internal Reset))
12 ,16758&7,21 ',63/$< 23(5$7,21

 3RZHU 21 7KH /&' XQLW LV LQLWLDOL]HG 1R GLVSOD\


LQWHUQDO UHVHW FLUFXLW LV WULJJHUHG 

 )XQFWLRQ 6HW 6HW IRU ELW GDWD WUDQVIHU DQG DGGUHVV W\SH D
'6 5: '%  '%


 'LVSOD\ 212)) 7XUQ RQ WKH GLVSOD\ DQG FXUVRU $IWHU LQLWLDOL]DWLRQ WKH '' 5$0
 LV ILOOHG ZLWK WKH VSDFHFRGH

 (QWU\ 0RGH 6HW 6HW WKH /&' XQLW WR LQFUHPHQW WKH DGGUHVV FRXQWHU DQG VKLIW WKH
 FXUVRU WR WKH ULJKW DIWHU HDFK GDWD WUDQVDFWLRQ 7KH GLVSOD\ GRHV
QRW VKLIW

 &* 5$0'' 5$0 :ULWH 6 LQWR WKH '' 5$0 7KH FXUVRU VKLIWV WR WKH ULJKW
'DWD :ULWH ooS


 &* 5$0'' 5$0 :ULWH + LQWR WKH '' 5$0


'DWD :ULWH ooSH


  
   
  

 &* 5$0'' 5$0 :ULWH VSDFH LQWR WKH '' 5$0


'DWD :ULWH oOooSHARP LCD UNIT


 (QWU\ 0RGH 6HW 6HW GLVSOD\ WR VKLIW DIWHU HDFK GDWD ZULWH
oOooSHARP LCD UNIT


 &* 5$0'' 5$0 :ULWH / LQWR WKH '' 5$0


'DWD :ULWH o OOHARP LCD UNIT L_


  
   
  

 &* 5$0'' 5$0 :ULWH  LQWR WKH '' 5$0


'DWD :ULWH oooOLCD UNIT LM171_


 'LVSOD\&XUVRU 6KLIW 6KLIW WKH FXUVRU WR WKH OHIW


oooOLCD UNIT LM171


 'LVSOD\&XUVRU 6KLIW 6KLIW WKH FXUVRU WR WKH OHIW


oooOLCD UNIT LM171


 &* 5$0'' 5$0 :ULWH  LQWR WKH '' 5$0


'DWD :ULWH oooOLCD UNIT LM161


 'LVSOD\&XUVRU 6KLIW 6KLIW WKH GLVSOD\ DQG FXUVRU WR WKH ULJKW


oooOLCD UNIT L161


 'LVSOD\&XUVRU 6KLIW 6KLIW WKH FXUVRU WR WKH ULJKW


oooOLCD UNIT LM161_


 &* 5$0'' 5$0 :ULWH  LQWR WKH '' 5$0


'DWD :ULWH ooOoLCD UNIT L1615_


  
   
  

 'LVSOD\&XUVRU +RPH 5HVWRUH WKH GLVSOD\ DQG FXUVRU WR WKHLU LQLWLDO SRVLWLRQV
oOSHARP LCD UNIT L


Display Unit User’s Manual 25


Dot-Matrix LCD Units

Table 14. 4-Bit Data Transfer with Single Line


(16-Character Display (*Using Internal Reset))
12 ,16758&7,21 ',63/$< 23(5$7,21

 3RZHU 21 LQWHUQDO UHVHW 7KH /&' XQLW LV LQLWLDOL]HG 1R GLVSOD\


ooOo
FLUFXLW LV WULJJHUHG 
 )XQFWLRQ 6HW 6HW IRU ELW GDWD WUDQVIHU 7KLV LQVWUXFWLRQ LV WUDQVIHUUHG LQ D VLQJOH RSHUDWLRQ VLQFH XS

56 5: '%  '% ooOo WR WKLV SRLQW WKH /&' XQLW LV LQ WKH ELW PRGH

 
 )XQFWLRQ 6HW 6HW IRU ELW GDWD WUDQVIHU DQG DGGUHVV W\SH & 'DWD LV WUDQVIHUUHG LQ WZR RSHUDWLRQV

 ooOo

 'LVSOD\ 212)) 7XUQ RQ WKH GLVSOD\ DQG FXUVRU $IWHU LQLWLDOL]DWLRQ WKH '' 5$0 LV ILOOHG ZLWK WKH

 ooOo_ VSDFH FRGH


 (QWU\ 0RGH 6HW 6HW WKH /&' XQLW WR LQFUHPHQW WKH DGGUHVV FRXQWHU DQG VKLIW WKH FXUVRU WR WKH ULJKW

 ooOo_ DIWHU HDFK GDWD WUDQVDFWLRQ 7KH GLVSOD\ GRHV QRW VKLIW


 &* 5$0'' 5$0 :ULWH 6 LQWR WKH '' 5$0 7KH FXUVRU VKLIWV WR WKH ULJKW

'DWD :ULWH
ooOoS_



  
   
  
 &* 5$0'' 5$0 :ULWH 3 LQWR WKH '' 5$0

'DWD :ULWH
ooOoSHARP_



 '' 5$0 $GGUHVV 6HW 6HW '' 5$0 DGGUHVV WR WKH ILUVW SRVLWLRQ RQ WKH ULJKW KDOI RI WKH GLVSOD\ FKDUDFWHU

 ooOoSHARP _ SRVLWLRQ  


 &* 5$0'' 5$0 :ULWH / LQWR WKH '' 5$0

'DWD :ULWH
ooOoSHARP L_



  
   
  
 &* 5$0'' 5$0 :ULWH VSDFH LQWR WKH '' 5$0

'DWD :ULWH
ooOoSHARP LCD _



 (QWU\ 0RGH 6HW 6HW WKH GLVSOD\ WR VKLIW DIWHU HDFK GDWD ZULWH

 ooOoSHARP LCD _



 &* 5$0'' 5$0 :ULWH 8 LQWR WKH '' 5$0 5LJKW DQG OHIW KDOYHV RI GLVSOD\ VKLIW OHIW RQH FKDUDFWHU

'DWD :ULWH
ooOoHARP CD U_



 (QWU\ 0RGH 6HW 6HW WKH /&' XQLW WR LQFUHPHQW WKH DGGUHVV FRXQWHU DQG VKLIW WKH FXUVRU WR WKH ULJKW

 ooOoHARP CD U_ DIWHU HDFK GDWD WUDQVDFWLRQ 7KH GLVSOD\ GRHV QRW VKLIW


 '' 5$0 $GGUHVV 6HW 6HW '' 5$0 DGGUHVV WR WKH WK SRVLWLRQ RQ WKH OHIW KDOI RI WKH GLVSOD\ DGGUHVV +

 ooOoHARP _CD U



 &* 5$0'' 5$0 :ULWH / LQWR WKH '' 5$0

'DWD :ULWH
ooOoHARP LCD U



 '' 5$0 $GGUHVV 6HW 6HW '' 5$0 DGGUHVV WR WKH WK SRVLWLRQ RQ WKH ULJKW KDOI RI WKH GLVSOD\ DGGUHVV +

  ooOoHARP LCD U_



 (QWU\ 0RGH 6HW 6HW WKH GLVSOD\ WR VKLIW DIWHU HDFK GDWD ZULWHU

 ooOoHARP LCD U_



  
   
  
 &* 5$0'' 5$0 :ULWH 7 LQWR WKH '' 5$0

'DWD :ULWH
ooOoP LCD UNIT_



  
   
  
 'LVSOD\&XUVRU +RPH 5HVWRUH WKH GLVSOD\ DQG FXUVRU WR WKHLU LQLWLDO SRVLWLRQV

 ooOoSHARP LCD UNIT




26 Display Unit User’s Manual


Dot-Matrix LCD Units

Table 15. 8-Bit Data Transfer with Dual-Line


(16-Character Display (Using Internal Reset))
12 ,16758&7,21 ',63/$< 23(5$7,21

 3RZHU 21 ,QWHUQDO UHVHW FLUFXLW LV WULJJHUHG  7KH /&' XQLW LV LQLWLDOL]HG 1R GLVSOD\

 )XFWLRQ 6HW '' 5: '%  '% 6HW IRU ELW GDWD WUDQVIHU DQG DGGUHVV W\SH E



 'LVSOD\ 212)) 7XUQ RQ WKH GLVSOD\ DQG FXUVRU $IWHU LQLWLDOL]DWLRQ WKH '' 5$0 LV ILOOHG

 ZLWK WKH VSDFH FRGH

 (QWU\ 0RGH 6HW 6HW WKH /&' XQLW WR LQFUHPHQW WKH DGGUHVV FRXQWHU DQG VKLIW WKH FXUVRU

 WR WKH ULJKW DIWHU HDFK GDWD WUDQVDFWLRQ 7KH GLVSOD\ GRHV QRW VKLIW

 &* 5$0'' 5$0 'DWD :ULWH S_ :ULWH 6 LQWR WKH '' 5$0 7KH FXUVRU VKLIWV WR WKH ULJKW



   
  
  

 &* 5$0'' 5$0 'DWD :ULWH SHARP LCD UNIT :ULWH VSDFH LQWR WKH '' 5$0



 '' 5$0 $GGUHVV 6HW SHARP LCD UNIT 6HW '' 5$0 DGGUHVV WR WKH ILUVW SRVLWLRQ RI WKH VHFRQG OLQH



 &* 5$0'' 5$0 'DWD :ULWH SHARP LCD UNIT :ULWH / LQWR WKH '' 5$0

 L

   
  
  

 &* 5$0'' 5$0 'DWD :ULWH SHARP LCD UNIT :ULWH $ LQWR WKH '' 5$0

 LM16251 : 16CHA

 (QWU\ 0RGH 6HW SHARP LCD UNIT 6HW WKH GLVSOD\ WR VKLIW DIWHU HDFK GDWD ZULWH

 LM16251 : 16CHA

 &* 5$0'' 5$0 'DWD :ULWH SHARP LCD UNIT :ULWH 5 LQWR WKH '' 5$0 %RWK OLQHV VKLIW WR WKH OHIW

 M16251 : 16CHAR

   
  
  

 'LVSOD\&XUVRU +RPH SHARP LCD UNIT 5HVWURUH WKH GLVSOD\ DQG FXUVRU WR WKHLU LQLWLDO SRVLWLRQV

 M16251 : 16CHAR

Display Unit User’s Manual 27


Dot-Matrix LCD Units

HANDLING INSTRUCTIONS
1. Operate the LCD unit within the allowable b. An acrylic sheet, or the like, may be used to
ranges of temperature and power supply volt- protect the LCD panel. A spacing of 0.5 mm to
age. Avoid operating the LCD unit in high hu- 1.0 mm should be used between the protective
midity. Avoid operating the LCD unit for plate and the LCD panel. (See Figure 13.)
extended periods under direct sunlight. To prevent stress on the LCD panel, the unit
should be mounted with a nominal height accu-
2. Mechanical shock and pressure on the glass
LCD panel should be avoided. Care must be racy of ±0.1 mm.
taken to insure that no torsional or compressive c. An anti-glare (anti-reflection) sheet may be used
forces are applied to the LCD unit when it is in place of the protective acrylic sheet. The
mounted. If leakage of the liquid crystal material mounting considerations will be the same.
should occur, all contact with the material, par-
ticularly accidental ingestion, must be avoided.
If the body or clothing become contaminated by (A) Inside Mount
the liquid crystal material, wash thoroughly with
water and soap.
LCD UNIT
3. The reflector and polarizers attached to the LCD
unit are made of soft materials. Care must be
taken not to scratch these materials. To clean
(B) Outside Mount
the display, use a soft, dry cloth. Do not use
organic solvents or water. If dirt can not be LCD UNIT
removed by this method, a small amount of
petroleum benzine may be used.
4. The LCD unit uses CMOS LSI’s. Precautions LCD27-35
must be taken to protect the unit from electro-
static charges. Figure 12. Mounting Diagrams

5. Do not apply the power supply voltages to the


LCD unit while the input signal terminals are
open. Also, it is better if the input signal and LCD Transparent 0.5 - 1.0 mm
unit power supply voltages are switched on and Protective Spacing
Sheet
off simultaneously.
6. The LCD unit should be stored in its original
LCD UNIT
packing case at a temperature of 0 to 35°C and Mounting
at a relative humidity of 60% or less. The LCD Frame
unit should be stored in a dark place, not ex- LCD27-36
posed to direct sunlight or fluorescent lamps.
Figure 13. Sample Design
7. The following precautions should be taken when
mounting the LCD unit.
a. The LCD unit may be mounted on either the
inside or outside of a cabinet, as shown in Figure
12. To determine the optimum mounting angle,
refer to the viewing angle range in the device
specification for each model.

28 Display Unit User’s Manual


Dot-Matrix LCD Units

OPERATING RESTRICTIONS
The LSI (HD44780AXX) used in the LCD units is To counteract these defects. The following re-
reported to have the following defects: strictions should be followed (Table 16).
HD44780AXX Defective Functions In the production facility, the LSI device in ques-
tion is now being replaced with a modified version,
1. When the display clear or display/cursor home HD44780RAXX. The above mentioned restrictions
instruction is executed when the display has do not apply to products using the "RA" version of
been shifted from its original position, original the LSI. The "RA" version devices have an "R"
display position may not be restored.
printed in the upper, right corner, as shown.
2. When the display/cursor home instruction is
executed, the data in the following display data R
RAM locations may be lost. HD44780A

A. Address type a.

Address HEX 00 01 02 03 04 05 06 07 ... ... 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F

Total: 80 Characters
The contents of addresses (43), (47), (4B),
and (4F) may be destroyed.

B. Address type b and c.

Address HEX 00 01 02 03 04 05 06 07 ... . . . 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27

Address HEX 40 41 42 43 44 45 46 47 ... . . . 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67

Total: 40 Characters x 2 Lines The contents of address locations


23, 27, 63, and 67 may be lost
during the execution of the
NOTE: Although address type C is for a single-line display its display/cursor home instruction.
address structure is logically the same as for address type b.
LCD27-37

Table 16.

12 23(5$7,21 5(675,&7,21

 ([HFXWLRQ RI WKH GLVSOD\ FOHDU RU GLVSOD\FXUVRU KRPH 7KH GLVSOD\FXUVRU KRPH LQVWUXFWLRQ VKRXOG EH H[HFXWHG DIWHU WKH GHIHFWLYH LQVWUXFWLRQ
LQVWUXFWLRQ ZKHQ WKH GLVSOD\ KDV EHHQ VKLIWHG IURP LWV EXW DIWHU D WLPH LQWHUYDO QRW HTXDO WR DQ\ PXOWLSOH RI I 26& N+] VHFRQGV
RULJLQDO SRVLWLRQ 6LQFH I26&  N+] WKH IROORZLQJ WLPLQJ LQWHUYDOV VKRXOG EH DYRLGHG  VHFRQGV
 VHFRQGV  VHFRQGV HWF

 ([HFXWLRQ RI WKH ,Q WKH FDVH RI DGGUHVV W\SH D ZKHQ '' %HIRUH H[HFXWLQJ WKH GLVSOD\FXUVRU KRPH LQVWUXFWLRQ WKH GDWD LQ WKH IRXU DGGUHVV
GLVSOD\FXUVRU 5$0 DGGUHVV ORFDWLRQV   % DQG ORFDWLRQV LQ TXHVWLRQ VKRXOG EH VDYHG HOVHZKHUH E\ WKH PLFURSURFHVVRU $IWHU
KRPH LQVWUXFWLRQ ) DUH LQ XVH H[HFXWLRQ RI WKH GLVSOD\FXUVRU KRPH LQVWUXFWLRQ WKH GDWD PD\ EH UHVWRUHG WR WKH ''

,Q WKH FDVH RI DGGUHVV W\SHV E DQG F 5$0

ZKHQ '' 5$0 DGGUHVV ORFDWLRQV 


  DQG  DUH LQ XVH

Display Unit User’s Manual 29


SHARP Microelectronics of the Americas

Corporation Regional Sales Offices: Distributors:


North American Headquarters Bell/Milgray
El Segundo, CA
Camas, WA
Ph (310) 563-2355
Ph (360) 834-2500
Fax (310) 563-2514
Fax (360) 834-8903
Future Electronics
West
Canada
Huntington Beach, CA Ph (514) 694-7710
Ph (714) 903-4600 Fax (514) 695-3707
Fax (714) 903-0295
Marshall Industries
San Jose, CA El Monte, CA
Ph (408) 436-4900 Ph (800) 522-0084
Fax (408) 436-0924 Fax (818) 307-6173
www.marshall.com
Central
Reptron
Romeoville, IL
Tampa, FL
Ph (630) 226-2400
Ph (800) 659-1361
Fax (630) 759-8572
Fax (813) 854-4695
Auburn Hills, MI
Sterling Electronics Corp.
Ph (248) 377-9220
Houston, TX
Fax (248) 377-9222
Ph (800) 745-5500
Austin, TX Fax (713) 629-3939
Ph (512) 349-7262
Fax (512) 349-7002
DFW Airport, TX
Ph (972) 456-8560
Fax (972) 456-0360
Houston, TX
Ph (281) 955-9909
Fax (281) 955-9910
East
Burlington, MA
Ph (781) 270-7979
Fax (781) 229-9117
Annandale, NJ
Ph (908) 713-0505
Fax (908) 713-0312
Research Triangle Park, NC
Ph (919) 941-0065
Fax (919) 941-0066

Ref. SMT99007

You might also like