03-Character LCD Datasheet
03-Character LCD Datasheet
03-Character LCD Datasheet
SPECIFICATION
Model: LMB161A
LMB161A -2-
1. BASIC SPECIFICATIONS
1.1 Display Specifications
LCD Mode : STN Positive Transflective
Display Color : Dark Blue
Background Color : Yellow-Green
Driving Duty : 1/16 Duty
Viewing Direction : 6:00
Backlight : LED
VSS 16 COM
LCD LCD PANEL
VDD
VO Controller 16 Characters x 1 Line
RS LSI
R/W
E KS0066
or Eqv.
DB0 40 SEG
DB7
LEDA
LED Backlight
LEDK
LMB161A -3-
3. ELECTRICAL CHARACTERISTICS
3.1 DC Characteristics (VDD=5.0V,10%, Ta=25:)
Item Symbol Condition Min. Typ. Max. UNIT
Supply Voltage
VDD 4.5 5.0 5.5 V
(Logic)
Supply Voltage
VDD-VO -- 4.6 -- V
(LCD Drive)
Supply Current
IDD VDD=5.0V -- 1.2 3.0 mA
(Logic)
V IH
RS V IL
t SU1 t H1
t H1
R/W
V IL V IL
tW tF
V IH V IH
E V IL V IL V IL
tR t SU2 t H2
V IH V IH
DB0~DB7 Valid Data
V IL V IL
tC
V IH
RS V IL
t SU1 t H1
V IH V IH
R/W t H1
tW tF
V IH V IH
E V IL V IL V IL
tR
tD t DH
V OH V OH
DB0~DB7 Valid Data
V OL V OL
tC
VDD
+5V VO
LCM
VR
10~20 k Ω
VSS
LEDA
+5V
LEDK
LMB161A -7-
MSB LSB
BF AC6 AC5 AC4 AC3 AC2 AC1 AC0
Relations between DD RAM addresses and positions on the liquid crystal display are
shown below.
Display
Position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DD
RAM 00H 01H 02H 03H 04H 05H 06H 07H 40H 41H 42H 43H 44H 45H 46H 47H
Addr.
When display shift operation is performed, the DD RAM address moves as follows:
To program a 5 x 7 character pattern into the CG RAM location (for example, character
code 01H), the following steps should be taken.
A. Use the “Set CG RAM address” command to position the CG RAM pointer to the 1st
row of character code 01H (CG RAM address=48H).
B. Use the “Write Data to CG or DD RAM” Command to write the top row of the custom
character (Only lower 5-bit of character pattern data is valid).
C. The CG RAM address is automatically increased if the I/D bit is set in the “Entry Mode
Set” command. When this is the case, return to step B until all rows of the character are
written.
D. After writing all 7 rows of data, use the “Set DD RAM address” command to return the
address counter to a DD RAM location.
E. To display the custom character written above, use the “Write Data to CG or DD RAM”
command with the data being 01H to display the character in the DD RAM address.
LMB161A - 10 -
Table 4.2 Relation between CG RAM address, character codes (DD RAM) and character
patterns (5x7 dots)
Notes:
1. Character code bits 0~2 correspond to CG RAM address bit 3~5 (3 bits: 8 types).
2. CG RAM address bits 0~2 designate the line position within a character pattern. The
8th line is the cursor position and display is determined by the logical OR of the 8th line
and the cursor. Maintain the 8th line data, corresponding to the cursor display position,
in the “0” state for cursor display. When the 8th line data is “1”, bit 1 lights up regardless
of cursor existence.
3. Character pattern row positions correspond to CG RAM data bits 0~4 as shown in the
above (bit 4 being at the left end). Since CG RAM data bits 5~7 are not used for display,
they can be used for the general data RAM as memory elements still exit.
4. As shown in Table 4.2, CG RAM character patterns are selected when character code
bits 4~7 are all “0”. However as character code bit 3 is an ineffective bit, the “A” in the
character pattern example is selected by character code “00H” or “08H”.
5. “1” for CG RAM data corresponds to selected pixels and “0” for non-selected.
LMB161A - 11 -
5. MPU INTERFACE
5.1 General
(1). The LCD controller can be operated in either 4 or 8 bits mode. Instructions/Data are
written to the display using the signal timing characteristics found in section 3.2.
When operating in 4-bit mode, data is transferred in two 4-bit operations using data bits
DB4~DB7. DB0~DB3 are not used. When using 4-bit mode, data is transferred twice
before the instruction cycle is complete. The higher order 4 bits (contents of DB4~DB7
when interface data is 8 bits long) is transferred first, then the lower order 4 bits (contents
of DB0~DB3 when interface data is 8 bits long) is transferred. Check the busy flag after
4-bit data has been transferred twice (one instruction). A 4-bit two operation will then
transfer the busy flag and address counter data.
(2). When operating in 8-bit mode, data is transferred using the full 8-bit bus DB0~DB7.
5.2 Initialization
5.2.1 Initialization by the Internal Reset Circuit
The display can be initialized using the internal reset circuit when the power is turned on.
The following instructions are executed in initialization. The busy flag (BF) is kept in busy
state until initialization ends. The busy flag will go active 10ms after Vcc rises to 4.5V.
(1). Display Clear
(2). Function set:
DL = 1 : 8 bit interface operation
N = 0 : 1 - line display
F = 0 : 5 x 7 dot character font
(3). Display ON/OFF Control:
D = 0 : Display OFF
C = 0 : Cursor OFF
B = 0 : Blink OFF
(4). Entry Mode Set
I/D = 1 : +1 (Increment Mode)
S = 0 : No Display Shift operation
If the internal power supply reset timing cannot be met (0.1ms<trcc<10ms), the internal
reset circuit will not operate normally and initialization will not be performed. In this case,
the display must be initialized by software.
Power on
Function Set
0 0 0 0 1 1 N F X X
0 0 0 0 0 0 1 D C B
Display Clear
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1 I/D SH
End of initialization
LMB161A - 14 -
Power on
Function Set
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 1 0 X X X X
0 0 0 0 1 0 X X X X
0 0 N F X X X X X X
Display Clear
RS R/W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0 0 0 0 0 0 X X X X
0 0 0 0 0 1 X X X X
End of initialization
LMB161A - 15 -
8051 KS0066
8
P0.0~P0.7 DB0~DB7
8 A0
RS
74LS373 A1
R/W
Y0
3
P2.5~P2.7 74LS138
/RD E
/WR
a. Application Circuit 1
8051 KS0066
8
P1.0~P1.7 DB0~DB7
P3.0 RS
P3.1 R/W
P3.2 E
b. Application Circuit 2
LMB161A - 16 -
- : don’t care
Note: 1. Make sure to check the busy flag before sending the instruction to the display. If
the busy flag is not checked, the time between first and next instruction must be
longer than the instruction execution time list in the Table 6.1.
2. After execution of CG RAM/DD RAM data write or read instruction, the RAM
address counter is increased or decreased by 1. The RAM address counter is
updated after the busy flag turns off.
LMB161A - 17 -
Clear all the display data by writing the space code “20H” to all DD RAM addresses, and
set DD RAM address to “00H” into address counter. Returns cursor to the original position,
namely, brings the cursor to the upper left end of the display. The execution of clear
display instruction sets entry mode to increment mode (I/D = 1).
Sets the DD RAM address “00H” in address counter. Return display to its original position
if it was shifted. DD RAM contents do not change. The cursor or the blink moves to the
upper left end of the display. Contents of DD RAM remain unchanged.
Controls the display ON/OFF status, Cursor ON/OFF and Cursor Blink function.
D: The entire display is ON when D = 1 and OFF when D = 0. The display data remains in
the DD RAM when display is OFF, it can be displayed immediately by setting D = 1.
C: The cursor displays when C = 1 and does not display when C = 0. The cursor is
displayed on the 8th line when 5x7 dots character font has been selected.
B: The character indicated by the cursor blinks when B = 1. The blink is displayed by
switching between all “High” data and display characters at 0.4 sec intervals.
The cursor and the blink can be set to display simultaneously.
When B = 0, the blink is off.
Shifts the cursor position or display to the right or left without writing or reading display
data. This function is used to correct or search for the display.
Note that the display shift is performed simultaneously in all lines.
The contents of address counter do not change when display shift is performed.
Sets the interface data length, the number of lines, and character font.
DL: Sets interface data length. Data is sent or received in 8-bit length (DB7 ~ DB0) when
DL = 1, and in 4-bit length (DB7 ~ DB4) when DL = 0. When the 4-bit length is
selected, data must be sent or received twice.
N: Sets the number of lines
LMB161A - 19 -
Sets the CG RAM address to the address counter. Data is then written/read to/from the
CG RAM.
Sets the DD RAM address to the address counter. Data is then written/read to/from the
DD RAM.
When in 1-line display mode (N = 0), DD RAM address is from “00H” to “4FH”.
When in 2-line display mode (N = 1), DD RAM address corresponding to 1st line and 3rd
line of the display is from “00H” to “27H”; the address corresponding to 2nd and 4th line of
the display is from “40H” to “67H”.
Reads the busy flag (BF) and value of the address counter (AC). BF = 1 indicates that
internal operation is in progress and the next instruction will not be accepted until BF is set
to “0”. The BF status should be checked before each write operation. At the same time the
value of the address counter is read out. The address counter is used by both CG and DD
RAM and its value is determined by the previous instruction.
LMB161A - 20 -
Z( φ =0 ) Top
φ2
Y( θ =180 , φ =-90 ) φ1
X X'
θ
Bottom
Y'( θ =0 , φ =+90 )
2.0
φ1 φ2
Viewing Angle
LMB161A - 22 -
B1
Brightness
B2
Driving Voltage
90%
100%
10%
tr tf Time
LMB161A - 23 -
8. DIMENSIONAL OUTLINE
LMB161A - 24 -
LCD module should be stored in the same conditions in which they were shipped
from Our company.
2) Exercise care to minimize corrosion of the electrode. Corrosion of the electrodes is
accelerated by water droplets or a current flow in a high humidity environment.
9.3 Design Precautions
1) The absolute maximum ratings represents the rated value beyond which LCD
module can not exceed. When the LCD modules are used in excess of this rated
value, their operating characteristics may be adversely affected.
2) To prevent the occurrence of erroneous operation caused by noise, attention must
be paid to satisfy VIL, VIH specification values, including taking the precaution of
using signal cables that are short.
3) The liquid crystal display exhibits temperature dependency characteristics. Since
recognition of the display becomes difficult when the LCD is used outside its
designated operating temperature range, be sure to use the LCD within this range.
Also, keep in mind that the LCD driving voltage levels necessary for clear displays
will vary according to temperature.
4) Sufficiently notice the mutual noise interference occurred by peripheral devices.
5) To cope with EMI, take measures basically on outputting side.
6) If DC is impressed on the liquid crystal display panel, display definition is rapidly
deteriorated by the electrochemical reaction that occurs inside the liquid crystal
display panel. To eliminate the opportunity of DC impressing, be sure to maintain
the AC characteristics of the input signals sent to the LCD Module.
9.4 Others
1) Liquid crystals solidify under low temperatures (below the storage temperature
range) leading to defective orientation or the generation of air bubbles (black or
white).
Air bubbles may also be generated if the LCD module is subjected to a strong
shock at a low temperature.
2) If the LCD modules have been operating for a long time showing the same display
patterns, the display patterns may remain on the screen as ghost images and a
slight contrast irregularity may also appear. A normal operating status can be
regained by suspending use for some time. It should be noted that this
phenomenon does not adversely affect performance reliability.
3) To minimize the performance degradation of the LCD modules resulting from
destruction caused by static electricity, etc., exercise care to avoid touching the
following sections when handling the module:
Terminal electrode sections.
Part of pattern wiring on TAB, etc.