Sharp LM161 Series User manual

Dot-Matrix
LCD Units
(with built-in controllers)
DISPLAY UNIT USER’S MANUAL

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
useandserviceforaperiodofoneyearfromthedateofinvoice.Customer’sexclusiveremedyforbreachof 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. Thewarranties 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 APARTICULAR
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.

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
ELECTRICALCHARACTERISTICS . . . . . . . . . . . . . 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
Dot-Matrix LCD Units
Display Unit User’s Manual 1

PREFACE
TheSharpdot-matrixLCDunits,withbuilt-incon-
trollers, operate under the control of a 4-bit or 8-bit
microcomputer to display alphanumeric characters,
symbols, etc.
The LCD unit provides the user with a dot-matrix
display panel featuring simple interface circuitry.
02'(/ 12 180%(5 2)
&+$5$&7(56
',63/$<
)250$7
/0;;;
×
×
GRWV
/0;;;
×
×
GRWV
/0;;;
×
×
GRWV
/0;;;
×
×
GRWV
Table 1.
Dot-Matrix LCD Unit with Built-In Controllers
Dot-Matrix LCD Units
2Display Unit User’s Manual

FEATURES
•Interface with either 4-bit or 8-bit
microprocessor.
•Display data RAM
•80 ×8 bits (80 characters).
•Character generator ROM
•160 different 5 ×7 dot-matrix character
patterns.
•Character generator RAM
•8 different user programmed 5 ×7
dot-matrix patterns.
•Display data RAM and character generator
RAM may be accessed by the
microprocessor.
•Numerous instructions
•Clear Display, Cursor Home, Display
ON/OFF, Cursor ON/OFF, Blink Character,
Cursor Shift, Display Shift.
•Built-in reset circuit is triggered at power
ON.
•Built-in oscillator.
OVERVIEW
TheLCDunitreceivescharactercodes(8bitsper
character)fromamicroprocessorormicrocomputer,
latches the codes to its display data RAM (80-byte
DDRAMforstoring80characters),transformseach
character code into a 5 ×7 dot-matrix character
pattern, and displays the characters on its LCD
screen.
The LCD unit incorporates a charactergenerator
ROM which produces 160 different 5 ×7 dot-matrix
character patterns. The unit also provides a char-
acter generator RAM (64 bytes) through which the
user may define upto eight additional 5 ×7 dot-ma-
trix character patterns, as required by the applica-
tion.
To display a character, positional data is sent via
the data bus from the microprocessor to the LCD
unit, where it is written into the instruction register.
A character code is then sent and written into the
dataregister.TheLCDunitdisplaysthecorrespond-
ing character pattern in the specified position. The
LCD unit can either increment or decrement the
display position automatically after each character
entry, so that only successive characters codes
needtobeenteredtodisplayacontinuouscharacter
string. Thedisplay/cursorshiftinstructionallowsthe
entry of characters in either the left-to-right or right-
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
purposedataareas. TheLCDunitmaybeoperated
with either dual 4-bit or single 8-bit data transers, to
accommodate interfaces with both 4-bit and 8-bit
microprocessors. ThelowpowerfeatureoftheLCD
unit will be further appreciated when combined with
a CMOS microprocessor.
Dot-Matrix LCD Units
Display Unit User’s Manual 3

HARDWARE
Interface Signals
Functional Blocks
Registers
The LCD unit has two 8-bit registers - an instruc-
tion register (IR) and a data register (DR). The
instruction register stores instruction codes such as
"clear display" or "shift cursor", and also stores
address information for the display data RAM and
character generator RAM. The IR can be accessed
by the microprocessor only for writing.
The data register is used for temporarily storing
data during data transactions with the microproces-
sor. When writing data to the LCD unit, the data is
initially stored in the data register, and is then auto-
matically written into either the display data RAM or
character generator RAM, as determined by the
current operation. The data register isalso used as
a temporary storage area when reading data from
the display data RAM or character generator RAM.
Whenaddressinformationiswritteninto theinstruc-
tionregister,thecorrespondingdatafromthedisplay
data RAM or character generator RAM is moved to
the data register. Data transfer is completed when
the microprocessor reads the contents of the data
register by the next instruction. After the transfer is
completed, data from the next address position of
the appropriate RAM is moved to the data register,
inpreparationforsubsequentreadingoperationsby
the microprocessor. One of the two registers is
selected by the register select (RS) signal.
6,*1$/ 1$0( ,1387287387 (;7(51$/
&211(&7,21 )81&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\DOVREHXVHGWRFKHFNWKHEXV\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
''
9
66
3RZHU 6XSSO\ 9
''
99
66
*1'
9
3RZHU 6XSSO\ &RQWUDVW DGMXVWPHQW YROWDJH
Table 2. Interface Signals
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$0RU'5
→
&* 5$0
5HDG GDWD UHJLVWHU DQG H[HFXWH LQWHUQDO RSHUDWLRQ '' 5$0
→
'5 RU &* 5$0
→
'5
Table 3. Register Selection
Dot-Matrix LCD Units
4Display Unit User’s Manual

Busy Flag (BF)
Whenthebusy flagis setat alogical"1", theLCD
unit is executing an internal operation, and no in-
structionwillbe accepted. Thestateofthebusyflag
isoutputondata lineDB7inresponseto theregister
selectionsignalsRS= 0,R/W=1asshowninTable
3. The next instruction may be entered after the
busy flag is reset to logical "0".
Address Counter (AC)
The address counter generates the address for
the display data RAM and character generator
RAM. When the address set instruction is written
into the instruction register, the address information
issenttotheaddresscounter. Thesameinstruciton
also determines which of the two RAM’s is to be
selected.
After data has been written to or read from the
display data RAM or character generator RAM, the
address counter is automatically incremented or
decremented by one. The contents of the address
counter are output on data lines DB0- DB6in
response to the register selection signals RS = 0,
R/W = 1 as shown in Table 3.
Display Data RAM (DD RAM)
This80x8bitRAMstoresupto808-bitcharacter
codesasdisplaydata. TheunusedareaoftheRAM
may be used by the microprocessor as a general
purpose RAM area.
ThedisplaydataRAMaddress,setintheaddress
counter, is expressed in hexadecimal (HEX) num-
bers as follows:
The address of the display data RAM corre-
sponds to the display position on the LCD panel as
follows:
a. Address type a . . . .For dual-line display
When a display shift takes place, the addresses
shift is as follows:
The addresses for the second line are not con-
tinuousto theaddressesfor thefirstline. A40-char-
acter RAM area is assigned to each of the two line
as follows:
line 1: 00H- 27H
line 2: 40H- 67H
For an LCD unit with a display capacity of less
than 40 characters per line, characters equal in
number to the display capacity, as counted from
display position 1, are displayed.
b. Address type b . . . .For single-line display with
logically dual-line addressing
When a display shift takes place, the addresses
shift as follows:
The right-hand eightcharacters,for the purposes
of addressing and shifting, may be considered to
constitute a second display line. For the address
type of each model, see Table 12.
AC6 AC5 AC4 AC3 AC2 AC1 AC0
HEX
Digit
AC
High-order
Bits Lower-order
Bits
HEX
Digit
1
Example: DD RAM address '4E'
001 11 0
4E
9876543213940
Display Position
DD RAM Address (HEX)
Digit
Line 1
Line 2
00
H
01
H
02
H
03
H
04
H
05
H
06
H
07
H
08
H
26
H
27
H
40
H
41
H
42
H
43
H
44
H
45
H
46
H
47
H
48
H
66
H
67
H
. . .
. . .
Left
Shift
01
H
02
H
03
H
04
H
05
H
06
H
07
H
08
H
09
H
27
H
00
H
41
H
42
H
43
H
44
H
45
H
46
H
47
H
48
H
49
H
67
H
40
H
. . .
. . .
Right
Shift
27
H
00
H
01
H
02
H
0
3
H
04
H
05
H
06
H
07
H
25
H
26
H
67
H
40
H
41
H
42
H
43
H
44
H
45
H
46
H
47
H
65
H
66
H
. . .
. . .
161514
Display PositionDigit
Line
1DD RAM Address (HEX)
13121110987654321
00H47H
46H
45H
44H
43H
42H
41H
40H
07H
06H
05H
04H
03H
02H
01H
Left
Shift
01
H
48
H
47
H
46
H
45
H
44
H
43
H
42
H
41
H
08
H
07
H
06
H
05
H
04
H
03
H
02
H
Right
Shift
27
H
46
H
45
H
44
H
43
H
42
H
41
H
40
H
67
H
06
H
05
H
04
H
03
H
02
H
01
H
00
H
Dot-Matrix LCD Units
Display Unit User’s Manual 5

Character Generator ROM (CG ROM)
This ROM generates a 5 ×7 dot-matrix character
pattern for each of 160 different 8-bit character
codes. The correspondence between character
codes and character patterns is shown in Tables 4
and 5. Inquiries are invited for units with custom
character patterns.
Character Generator RAM (CG RAM)
This RAM stores eight arbitrary 5 x 7 dot-matrix
characterpatterns,asprogrammedbytheuser. For
displaying a character pattern stored in the CG
RAM, a character code corresponding to the left-
most column in Tables 4 and 5 is written into the
display data RAM.
FortherelationshipamongtheCGRAMaddress,
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.
Timing Generator
The timing generator produces timing signals
used for the internal operation of the display data
RAM,charactergeneratorROM,andcharactergen-
erator RAM. Timing in controlled so that read-out of
the RAM for display and access to the RAM by the
external microprocessor do not interfere. Display
flicker when data is written to the display data RAM
is eliminated.
Cursor/Blink Controller
This circuit can be used to generate a cursor or
blink a character in the display position indicated by
the DD RAM address, which is set in the address
counter (AC). The following example shows the
cursor position when the address counter contains
"08" (HEX).
Parallel-to-Serial Converter
This circuit converts parallel data read from the
CG ROM or CG RAM to serial data for use by the
display driver.
Bias Voltage Generator
This circuit provides the bias voltage level re-
quired for driving the liquid crystal display. Some
models incorporate a temperature compensation
circuit which generates a temperature dependent
bias voltage in order to provide constant display
contrast at all ambient temperature levels.
LCD Driver
This circuit receives display data, timing signals,
and bias voltage, and produces the common and
segment display signals.
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.
AC 0001000
AC
6
AC
0
AC
1
AC
2
AC
3
AC
4
AC
5
Digit
Line 1
Line 2
Display Position
DD RAM
Address (HEX)
DD RAM
Address (HEX)
Cursor Position
Cursor Position
Single-Line
Display
1110987654321
00 0A090807060504030201
Digit Display Position
Dual-Line
Display
NOTE:
The address counter has the dual function of containing either
a DD RAM address or a CG RAM address. The cursor/blink
controller does not distinguish between these two functions,
and thus, when activated, it always considers the address
counter to contain a DD RAM address. To avoid spurious
cursor/blink effects, the cursor/blink function should be turned
off while the microprocessor writes to or reads from the CG RAM.
1110987654321
00 0A090807060504030201
40 4A494847464544434241
Dot-Matrix LCD Units
6Display Unit User’s Manual

LCD
Panel
Common
Electrode
Drive
Circuit
Segment
Electrode
Drive
Circuit
Display
Data
Signals 4
Scanning
Signals 3
LED
back-
light
V
LED
V
LSS
4
EL
back-
light
EL
Inverter
(See note 2) 5 V
Timing
Generator
Cursor/Blink
Controller
33
7
7
7
Display Data
RAM
(DD RAM)
80 x 8 bits
Address
Counter
(AC)
7
7
7
Instruction
Decoder
Instruction
Register (/R)
8
Character
Generator
ROM
(CG ROM)
7,200 bits
8
8
Character
Generator
ROM
(CG ROM)
512 bits
7
8
Parallel-to-Serial
Converter
5
5
Bias
Voltage
Generator
(See Note 1)
6
Data Register
(DR)
8
I/O Buffer
8
Busy
Flag (BF)
7
8
RS R/W E
4 4
DB
4
- DB
7
DB
0
- DB
3
V
DD
V
O
V
SS
LCD27-6
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.
Figure 1. Functional Block Diagram
Dot-Matrix LCD Units
Display Unit User’s Manual 7

0000
HIGH-ORDER
4 BIT
LOW-
ORDER 4 BIT
0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
xxxx0000
xxxx0001
xxxx0010
xxxx0011
xxxx0100
xxx0101
xxx0110
xxxx0111
xxxx1000
xxxx1001
xxxx1010
xxxx1011
xxxx1100
xxxx1101
xxxx1110
xxxx1111
CG
RAM
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(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.
Table 4. Character Codes
Dot-Matrix LCD Units
8Display Unit User’s Manual

High-Order
CG
RAM
(1)
(3)
(4)
(5)
(6)
(7)
(8)
(1)
(2)
(3)
(4)
(6)
(7)
(8)
××××0000
××××0001
××××0010
××××0011
××××0100
××××0101
××××0110
××××0111
××××1000
××××1001
××××1010
××××1011
××××1100
××××1101
××××1110
××××1111
0000
0@P\p
1
!
AQa q
αp
äq
2
"
BRb r
3
#
CSc s
4$DTdt
5%EUe u
6&FVf v
7
’
GWg w
8
(HXh x
9
)IYi y
:
*
JZj z
;
+
K[k{
βθ
ε∞
µΩ
σü
ρΣ
π
√x
_1y
j
x
¢
£÷
n
ö
0010 0011 0100 0101 0110 0111 1010 1011 1100 1101 1110 1111
Low-
Order 4 bit
(2)
(5) <
’
L¥1 |
=
-
M]m}
>
.
N^n→
?
/
O_o←
4 bit
Table 5. Character Codes
Dot-Matrix LCD Units
Display Unit User’s Manual 9

Character Code
(DD RAM Data) CG RAM Address Character Pattern
(CG RAM Data)
Sample
Character
Pattern
(1)
Cursor
Position
Sample
Character
Pattern
(2)
7
High-order
bit Low-order
bit
6543210
000011
0000*000
000 1101
**
*
*
**
1
001
010
100
101
111
110
001011
000
001
010
100
101
111
110
111
100
101
111
110
001
000
0000*001
0000*111
High-order
bit Low-order
bit
543210 7
High-order
bit Low-order
bit
6543210
00110
00110
1001001010
00110
00000
11011
001
*1
**
***
***
***
001001
11111
1111110000
10000
00000
10000
NOTES:
1. Character code bits 0 - 2 correspond to CG RAM address bits
3 - 5. Each of the 8 unique bit strings designates one of the 8
character patterns.
2. CG RAM address bits 0 - 2 designate the row position of each
character pattern. The 8th row is the cursor position. CG RAM
data in the 8th row is OR'ed with the display cursor. Any '1'
bits in the 8th row will result in a displayed dot regardless of the
cursor status (ON/OFF). Accordingly, if the cursor is to be
used, CG RAM data for the 8th row should be set to '0'.
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.
4. As shown in tables 4 and 5, character patterns in the CG RAM
are accessed by character codes with bits 4 - 7 equal to '0'. For
example, the character pattern 'R', shown in the first sample
character pattern of the table, is selected by the character code
'00' (HEX) or '08' (HEX), since bit 3 of the character code is a
don't care" bit (i.e., can take either value, '00' or '1').
5. CG RAM data '1' produces a dark dot, and data '0' produces a
light dot in the corresponding position on the display panel.
6.
*
= Signifies a "don't care" bit
LCD27-8
Table 6. Relationship Among Character Code
(DD RAM), CG RAM Address, and Character Pattern (CG RAM)
Dot-Matrix LCD Units
10 Display Unit User’s Manual

Microprocessor Interface
The LCD unit performs either dual 4-bit or single
8-bitdatatransers,allowingtheusertointerfacewith
either a 4-bit or 8-bit microprocessor
4-Bit Microprocessor Interface.
Data lines DB4- DB7are used for data transfers.
Data transactions with the external microprocessor
take place in two 4-bit data transfer operations.
Thehigh-order4bits(correspondingtoDB4-DB7
in an 8-bit transfer) are transferred first, followed by
the low-order 4 bits (corresponding to DB0- DB3in
an 8-bit transfer). The busy flag isto be checked on
completion of the second 4-bit data transfer. Busy
flag and address counter are output in two opera-
tions.
8-bit Microprocessor Interface
Each 8-bit piece of data is transferred in a single opera-
tion using the entire data bus DB0- DB7.
IR
7
DB
7
DB
6
DB
5
DB
4
RS
R/W
E
IR
3
AC
3
DR
7
DR
3
BF
IR
6
IR
2
AC
2
DR
6
DR
2
AC
6
IR
5
IR
1
AC
1
DR
5
DR
1
AC
5
IR
4
IR
0
AC
0
DR
4
DR
0
AC
4
Write to
Instruction
Register (IR)
Read Busy
Flag (BF) and
Address
Counter (AC)
Read Data
Register (DR)
LCD27-9
Figure 2. 4-Bit Data Transfer
Dot-Matrix LCD Units
Display Unit User’s Manual 11

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

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 V
DD
reaches 4.5 V
RS R/W DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
000011
****
Wait 4.1 ms or more
RS R/W DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
000011
****
Wait 100 µs or more
End of Initialization
RS R/W DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
000011
****
RS R/W DB
7
DB
6
DB
5
DB
4
DB
3
DB
2
DB
1
DB
0
000011NF
**
0000001000
0000000001
00000001I/DS
Busy flag can't be checked before execution of this
instruction
Function Set (8-Bit Interface)
Busy flag can't be checked before execution of this
instruction
Function Set (8-Bit Interface)
Busy flag can't be checked before execution of this
instruction
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.)
Function Set
Display Off
Display Clear
Entry Mode Set
8-Bit Interface,
Single/Dual Line
Display, Display Font
Caution: At this point,
the display format
an't be changed.
LCD21-10
Figure 3. 8-Bit Interface
Dot-Matrix LCD Units
Display Unit User’s Manual 13

4-Bit Interface
Power ON
Wait 15 ms or more
after V
DD
reaches 4.5 V
RS R/W DB
7
DB
6
DB
5
DB
4
000011
Wait 4.1 ms or more
RS R/W DB
7
DB
6
DB
5
DB
4
000011
RS R/W DB
7
DB
6
DB
5
DB
4
000011
RS R/W DB
7
DB
6
DB
5
DB
4
000010
000010
00NF **
Wait 100 µs or more
End of Initialization
Busy flag can't be checked before execution of this
instruction
Function Set (8-Bit Interface)
Busy flag can't be checked before execution of this
instruction
Function Set (8-Bit Interface)
Busy flag can't be checked before execution of this
instruction
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.)
This instruction signals the LCD unit to begin accepting and
sending data in dual 4-bit transfers for all subsequent
transfers for all subsequent transactions. This is the only
4-bit instruction recognized by the LCD unit.
II Function Set
III Display Off
IV Display Clear
V Entry Mode Set
4-Bit Interface,
Single/Dual Line
Display, Display Font
LCD21-11
000000
001000
00 0 0 0O
000001
000000
0 0 0 1 I/D S
I Function Set (4-Bit Interface)
I
II
III
IV
V
Caution: At this point,
the display format
can't be changed.
Figure 4. 4-Bit Interface
Dot-Matrix LCD Units
14 Display Unit User’s Manual

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

Display ON/OFF
D: When D = 1, the display is turned on.
When D = 0, the display is turned off with the
display data retained in the display data RAM.
C: When C = 1, the cursor is displayed in the
positionspecifiedbytheaddresscounter. When
C = 0, the cursor is not displayed. The cursor is
made up of five dots displayed across the 8th
displayrow,below the5×7 dot-matrixcharacter
block. For 5 ×10 dot-matrix character blocks, 5
dots are displayed across the 11th row.
B: When B = 1, the character at the cursor position
blinks on and off. When this function is acti-
vated, at fcp or fosc = 250 kHz, alternating
between all dots black, and the display charac-
ter, the character is alternately displayed for
409.6 ms and blanked for 409.6 ms. The cursor
may be used simultaneously with the character
blinkfunction. (Blinkfrequencyvariesin propor-
tion to the reciprocal of fCP or fOSC.
409.6 ×250/270 = 379.2 ms; fCP = 270 kHz.)
Display/Cursor Shift
The display and/or cursor are shifted to the right
or left. For two-line displays, the cursor moves from
the 40th position of the top line to thefirst position of
the second line. From the 40th position of the
second line, the cursor does not move back to the
home position, but rather to the first position of the
second line.
NOTE:When the display is shifted, the address counter is
not affected.
Function Set
DL: Selects theinterface data length. When DL= 1,
8-bitdatatransfersareused. WhenDL=0,4-bit
data transfers are used.
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.
CAUTION
The function set instruction must be executed at the
beginningofthemicroprocessorprogram,beforeallother
instructions except the busy flag/address counter read
instruction. The function set instruction cannot be exe-
cuted again except to change the interface data length.
Once set, the display format cannot be changed.
DB
0
DB
7
RS R/W
0CODE 000001DCB
LCD27-16
Cursor
(A) Cursor Function (B) Character Blink Function
Character Font
5 x 7 dot Character Font
5 x 10 dot
DB
0
DB
7
RS R/W
0CODE
NOTE:
*
= Don't Care
0 0 0 0 1 S/C R/L
**
6& 5/
6KLIW WKH FXUVRU WR WKH OHIW $&
←
$&
6KLIW WKH FXUVRU WR WKH ULJKW $&
←
$&
6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH OHIW
6KLIW WKH HQWLUH GLVSOD\ ZLWK WKH FXUVRU WR WKH ULJKW
DB0
DB
7
RS R/W
0CODE
NOTE:
*
= Don't Care
0001DLN0
**
Dot-Matrix LCD Units
16 Display Unit User’s Manual

CG RAM Address Set
The address counter is loaded with a character
generator RAM address, expressed as a 6-digit
binary number. Following the execution of this in-
struction, subsequent data transactions will be be-
tween the external microprocessor and the
character generator RAM.
DD RAM Address Set
Theaddresscounterisloadedwithadisplaydata
RAM address, expressed as a 7-digit binary num-
ber. Followingtheexecutionofthis instruction,sub-
sequent data transactions will be between the
external microprocessor and the display data RAM.
For N = 0 (single line display), the binary number,
ADD mayhaveavaluerangingfrom00Hto4FH. For
N = 1 (dual line display), the binary number, ADD,
may have a value ranging from 00Hto 27Hfor the
first line, or 40Hto 67Hfor the second line.
Busy Flag/Address Counter Read
The busy flag (BF) is read out, and indicates
whether or not the LCD unit is still executing the
previousinstruction. BF=1indicatesthebusystate
(internal operation), and the next instruction will not
beaccepteduntilBF=0. Thisinstructionalsoreads
out the contents of the address counter, expressed
as a 7-digit binary number. The address counter is
used for accessing both the character generator
RAM and the display data RAM. On read-out, the
address counter will contain either a character gen-
eratorRAMaddressoradisplaydataRAMaddress,
as determined by the most recently executed ad-
dress set instruction.
CG RAM/DD RAM Data Write
An 8-bit data word is written into either the char-
acter generator RAM or display data RAM, as de-
terminedbythemostrecentlyexecutedaddressset
instruciton. ThedataiswrittenintotheRAMlocation
specified by the address counter. After the data is
written into the RAM, the address counter is either
incrementedordecrementedbyone,asdetermined
by the current entry mode. Adisplay shift may also
take place after the data is written.
CG RAM/DD RAM Data Read
An 8-bit data word is read from either the charac-
ter generator RAM or display data RAM, as deter-
mined by a previously executed address set
instruction. The data is read from the RAM location
specified by the address counter.
Thisinstructionmustbeimmediatelyprecededby
the CG RAM address set instruction, the DD RAM
address set instruction, the cursor shift instruction,
or a previous CG RAM/DD RAM data read instruc-
tion. Any other preceding instruction will cause in-
valid data to be read. The address set instructions
cause the address counterto be loaded with a valid
data read address.
The cursor shift command allows selected DD
RAM data to be read without the necessity of reset-
tingtheDDRAMaddress. Followingthecursorshift
instruction,theCGRAM/DDRAMdatareadinstruc-
tion will read data from the DD RAM.
After the execution of each data read instruction,
the address counter is either incremented or decre-
mented by one, as determined by the current entry
mode. It is not necessaryto reset theRAM address
before the execution of subsequent data read in-
structions if the same RAM is to be read. The
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
bya subsequentCGRAM/DD RAMdatareadinstruction.
The correct procedure for readingdata from theCG 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.
DB0
DB
7
RS R/W
0CODE 0 0 1 A A A A A A
DB
0
DB
7
RS R/W
0CODE 01AAAAAAA
DB
0
DB
7
RS R/W
0CODE 1BFA A A A A AA1
DB0
DB
7
RS R/W
1CODE 0DDDDDDDD
DB0
DB
7
RS R/W
1CODE 1DDDDDDDD
Dot-Matrix LCD Units
Display Unit User’s Manual 17

NOTES:
1. Symbol "*" signifies a "don’t care" bit.
2. Correct input value for "N" is predetermined for each model (see Table 12).
,16758&7,21 &2'( )81&7,21 (;(&87,21 7,0( PD[
I
&3
RU I
26&
N+]
56 5: '%
'%
'%
'%
'%
'%
'%
'%
'LVSOD\ &OHDU &OHDUHQWHU GLVSOD\ DUHD UHVWRUH GLVSOD\ IURP
VKLIW DQG ORDG DGGUHVV FRXQWHU ZLWK '' 5$0
DGGUHVV
+
PV
'LVSOD\&XUVRU
+RPH
5HVWRUH GLVSOD\ IURP VKLIW DQG ORDG DGGUHVV
FRXQWHU ZLWK '' 5$0 DGGUHVV
+
PV
(QWU\ 0RGH
6HW ,'66SHFLI\FXUVRU DGYDQFH GLUHFWLRQ DQG GLVSOD\
VKLIW PRGH 7KLV RSHUDWLRQ WDNHV SODFH DIWHU
HDFK GDWD WUDQVIHU
µ
V
'LVSOD\ 212)) '&%6SHFLI\DFWLYDWLRQ RI GLVSOD\ ' FXUVRU &
DQG EOLQNLQJ RI FKDUDFWHU DW FXUVRU SRVLWLRQ %
µ
V
'LVSOD\&XUVRU
6KLIW 6&5/6KLIW GLVSOD\ RU PRYH FXUVRU
µ
V
)XQFWLRQ6HW '/16HWLQWHUIDFH GDWD OHQJWK '/ DQG QXPEHU RI
GLVSOD\ OLQHV 1
µ
V
&* 5$0
$GGUHVV 6HW $
&*
/RDG WKH DGGUHVV FRXQWHU ZLWK D &* 5$0
DGGUHVV 6XEVHTXHQW GDWD LV &* 5$0 GDWD
µ
V
'' 5$0
$GGUHVV 6HW $
''
/RDG WKH DGGUHVV FRXQWHU ZLWK D '' 5$0
DGGUHVV 6XEVHTXHQW GDWD LV '' 5$0 GDWD
µ
V
%XV\
)ODJ$GGUHVV
&RXQWHU 5HDG
%) $& 5HDG EXV\ IODJ %) DQG FRQWHQWV RI DGGUHVV
FRXQWHU $&
µ
V
&* 5$0''
5$0 'DWD :ULWH :ULWH GDWD :ULWH GDWD WR &* 5$0 RU '' 5$0
µ
V
&* 5$0''
5$0 'DWD 5HDG 5HDG GDWD 5HDG GDWD IURP &* 5$0 RU '' 5$0
µ
V
,' ,QFUHPHQW ,' 'HFUHPHQW
6 'LVSOD\ 6KLIW 2Q
6& 6KLIW 'LVSOD\ 6& 0RYH &XUVRU
5/ 6KLIW 5LJKW 5/ 6KLIW /HIW
'/ %LW '/ %LW
1 'XDO /LQH 1 6LQJOH /LQH
%) ,QWHUQDO 2SHUDWLRQ %) 5HDG\ IRU ,QVWUXFWLRQ
'' 5$0 'LVSOD\ 'DWD 5$0
&* 5$0 &KDUDFWHU *HQHUDWRU 5$0
$
&*
&KDUDFWHU *HQHUDWRU 5$0 $GGUHVV
$
''
'LVSOD\ 'DWD 5$0 $GGUHVV
$& $GGUHVV &RXQWHU
Table 7. Instruction Set
Dot-Matrix LCD Units
18 Display Unit User’s Manual
This manual suits for next models
3
Table of contents
Other Sharp Monitor manuals

Sharp
Sharp PN-K321 User guide

Sharp
Sharp LL-T1815 User manual

Sharp
Sharp PN-70HC1E User guide

Sharp
Sharp PN-S655 User manual

Sharp
Sharp PN-T321 User manual

Sharp
Sharp LL-S201A User manual

Sharp
Sharp LL-T1820-H User manual

Sharp
Sharp PN-V601 User manual

Sharp
Sharp InGlass PN-LA862 User manual

Sharp
Sharp LC-20VM2 User manual

Sharp
Sharp PN-CD701 Owner's manual

Sharp
Sharp BIG PAD PN-65HC1 User guide

Sharp
Sharp PN-CD701 Instruction sheet

Sharp
Sharp PN-C805B User guide

Sharp
Sharp LL-T17A3 User manual

Sharp
Sharp 4T-B80CT1U User manual

Sharp
Sharp PN-465U User manual

Sharp
Sharp LV-70X500E User manual

Sharp
Sharp PN-455RU User manual

Sharp
Sharp LL-E15G1 User manual