The LC7986C is a low-power CMOS IC that incorporates
dot-matrix character generator, display controller and
driver functions in a single device, and realizes ideal for
use in portable equipment containing LCD displays.
Also, the CMOS process realizes easy expansion to control displays of up to 80 characters by adding LC7930N or
LC7931D display drivers.
Pad Layout
Chip size: 5.69 × 3.45mm
2
Features
• Controller and driver for dot-matrix LCD displays
• 5 × 7-pixel and 5 × 10-pixel character fonts
• 160, 5 × 7-pixel characters and 32, 5 × 10-pixel characters in character generator ROM
• Eight, 5 × 7-pixel characters or four, 5 × 10-pixel characters in character generator RAM
• 80-character display data RAM
• Built-in drivers for 1-line × 16-character and 2-line ×
16-character displays
• Easy expansion to 1-line × 80-character or 2-line × 40character displays by adding LC7930Ns or LC7931Ds
• 4-bit or 8-bit microcontroller interface
• 11 microcontroller instructions
• Built-in reset circuit
• Built-in oscillator
• 5V supply
• 128-pad dice
SANYO Electric Co., Ltd. Semiconductor Business Headquarters
TOKYO OFFICE Tokyo Bldg., 1-10, 1 Chome, Ueno, Taito-ku, TOKYO, 110 JAPAN
70197HA (ID) / D082JN No. 4101—1/32
−
Pad Coordinates
The coordinate origin is in the center of the chip.
Using Rf = 56kΩ ± 3%220320420
Using built-in Vf–320–
Ratings
RC oscillator built-in resistanceVfOSCO to OSCR–56–k
V
LCD display voltage
Voltage divider step resistanceV
Note: *1. V
Note: *2. V
is the voltage from VDD, V1, V4 and V5 to the LCD common drive pins OC1 to OC16.
COM
is the voltage from VDD, V2, V3 and V5 to the LCD segment drive pins OS1 to OS80.
SEG
LCD1
V
LCD2
R
Switching Characteristics at Ta = −20 to +75°C, V
ParameterSymbolConditions
E cycle timet
E high-level pulsewidtht
E rise timet
E fall timet
RS and R/W to E setup timet
E to RS and R/W address hold timet
DB0 to DB7 to E data setup timet
Write cycle E to DB0 to DB7 data hold
time
Read cycle E to data valid delay timet
Read cycle E to DB0 to DB7 data hold
time
CP low-level pulsewidtht
CP high-level pulsewidtht
CP to LOAD setup timet
D to CP data setup timet
CP to D data hold timet
LOAD to M delay timet
ECYC
EW
ER
EF
SU
AH
DSU
t
DHW
DD
t
DHR
WL
WH
CSU
DSU
DH
DM
VDD − V5 (1/5 bias)4.6–6V
VDD − V5 (1/4 bias)3.0–6V
Between V(n) and V(n+1)–2.2–k
= 0V, VDD = 5V ± 10%
SS
Ratings
mintypmax
1000––ns
450––ns
––25ns
––25ns
140––ns
10––ns
195––ns
10––ns
See measurement circuit.––320ns
20––ns
800––ns
800––ns
500––ns
300––ns
300––ns
−
1000–1000ns
Unit
kHz
Ω
Ω
Unit
Reset characteristics at Ta = −20 to +75°C
ParameterSymbolConditions
VDD rise timet
VDD off timet
DDR
DDOFF
Ratings
mintypmax
1–100
Unit
µ
s
1––ms
No. 4101—5/32
LC7986C
Clock Generator
The internal oscillator that generates the clock for the internal circuit requires an external feedback resistor, connection of
the internal feedback resistor or an external clock input as shown in the following sections.
External clock
The input duty cycle should be between 45 and 55% as shown in the following figure.
External feedback resistor
Internal feedback resistor
Measurement Circuit
T
h
Note.
Note. The resistor should be mounted as close as possible to OSCI and OSCO.
Duty
-----------------
ThT1+
×=
100%
Note. R
= 2.4kΩ, C = 130pF, R = 11k
L
Ω
No. 4101—6/32
Read/write cycle timing
LC7986C
LC7930N interface timing
Power Supply
No. 4101—7/32
LC7986C
Pin Description
NameNumI/OConnect toFunctions
RS1IMPUData register or instruction register select input. Data register when "1" and instruction register when "0".
R/W1IMPURead or write select input. Read when "1" and write when "0".
E1IMPUExecution start input
DB7 to DB44I/OMPU
DB3 to DB04I/OMPU
LOAD1OLC7930ND serial data shift latch output
CP1OLC7930ND serial data shift clock output
M1OLC7930NDisplay expansion drive signal inversion control signal output
D1OLC7930NDisplay expansion serial data output. Nonselected when "0" and selected when "1".
OC1 to OC1616OLCD
OS1 to OS8080OLCDLCD segment driver outputs
V1 to V55sourceLCD driver reference voltage inputs
, GND2sourceVDD : +5V, GND : 0V
V
DD
OSCI2Oscillator feedback resistor connection and external clock input
OSCO2Oscillator external feedback resistor connection
OSCR1OSCOInternal feedback resistor connection. Connect to OSCI or leave open.
SHL1I
A/B1IM output signal type select input. A-type when "1" and B-type when "0".
V1’ to V5’5IVDD to V4LCD drive voltage internal voltage divider outputs. Leave open if the the voltage divider is not used.
4-bit microcontroller interface data bus and 8-bit microcontroller interface high-order four bits data bus
connections. DB7 can also be used as busy flag.
8-bit microcontroller interface low-order four bits data bus connections. No connection when 4-bit interface
size is selected.
LCD common driver outputs. OC9 to OC16 and OC12 to OC16 are unselected in 1/8 duty and 1/11 duty
respectively.
Segment output shift direction select input. Shift right (OS1 to OS80) when"1", and shift left (OS80 to OS1)
when "0".
No. 4101—8/32
Functional Description
Registers
LC7986C
The LC7986C has two 8-bit registers—instruction register
(IR) and data register (DR)—that are selected as shown in
the following table.
RSR/WOperation
00IR write, instruction execution
01Busy flag (DB7) and address counter (DB0 to DB6) output
10DR write, internal DR to DD RAM or CG RAM data transfer
11DR read, internal DD RAM or CG RAM to DR data transfer
The instruction register is write-only. It contains instruction codes or DD RAM and CG RAM addresses written
by the microcontroller.
Busy Flag
When busy flag is 1, the previous instruction is executing,
and when 0, the instruction has completed. The next
instruction cannot be received until BF is 0. The microcontroller should, therefore, confirm that BF is 0 before writing the next instruction.
Display Data RAM (DD RAM)
The data register holds data read from or written to either
DD RAM or CG RAM. Data written to the data register by
the microcontroller is automatically transferred to the current DD RAM or CG RAM address. Data read from
DD RAM or CG RAM is buffered in the data register.
When the microcontroller writes a DD RAM or CG RAM
address to the instruction register, the data at that address
is copied into the data register. The microcontroller then
reads the data in the data register to complete the transfer.
Once that data is read, the data from the next DD RAM or
CG RAM address is copied into the data register in preparation for the next data read.
Address Counter
The address counter is used for both the DD RAM and the
CG RAM. The address output on DB0 to DB7 is the
counter value before the currently executing instruction
began.
The display data RAM stores 80, 8-bit character codes, and the LC7986C can display a maximum of 80 characters. The
address counter contains the location for the next display memory read or write operation as shown in the following figure.
Display data addresses are in hexadecimal. For example, the address counter contents for location 4E are shown in the
following figure.
To prevent undesirable effects such as display flicker during DD RAM accesses, the internal memory and the microprocessor interface have separate timing signals.
Single-line display mode (N = 0)
The DD RAM addresses and their corresponding display positions for an 80-character display are shown in the following
figure.
No. 4101—9/32
LC7986C
A single LC7986C, however, can drive 16 characters. The display positions and DD RAM addresses for an unshifted 16character display are shown in the following figure.
The DD RAM addresses following left and right display shifts are shown in the following figure. Note that the displayed
characters wrap around from addresses 4FH to 00H.
An LC7986C and a single LC7930N can drive a 16-character display. The display positions and DD RAM addresses for
an unshifted display are shown in the following figure.
The DD RAM addresses following left and right display shifts are shown in the following figure.
The number of displayed characters can be increased by adding more LC7930Ns. An LC7986C and eight LC7930Ns can
drive an 80-character display as shown in the following figure.
No. 4101—10/32
LC7986C
Shift direction
The segment driver shift register is bidirectional. When SHL is HIGH, the shift direction is right-to-left, and characters
are displayed normally. When SHL is LOW, the shift direction is left-to-right, and the display position, DD RAM
addresses and character bitmaps are all reversed as shown in the following figure.
Two-line display mode (N = 1)
The DD RAM addresses and their corresponding display positions for a 2-line × 40-character display are shown in the
following figure. Note that the address counter automatically increments from 27H to 40H.
A single LC7986C, however, can drive 16 characters per line. The display positions and DD RAM addresses for an
unshifted, 2-line × 16-character display are shown in the following figure.
The display positions following a left or right display shift are shown in the follo wing figure. Note that the display shift is
simultaneous for both lines, regardless of which line the cursor is in.
No. 4101—11/32
LC7986C
An LC7986C and a single LC7930N can drive a 2-line × 24-character display. The display positions and DD RAM
addresses for an unshifted, 2-line × 24-character display are shown in the following figure.
The DD RAM addresses following left and right display shifts are shown in the following figure.
The number of displayed characters can be increased by adding more LC7930Ns. An LC7986C and three LC7930Ns can
drive a 2-line × 40-character display as shown in the following figure.
Character Generator ROM (CG ROM)
The character generator ROM contains 160, 5 × 7-pixel bitmaps and 32, 5 × 10-pixel bitmaps as shown in the following
figure. The characters are selected by their 8-bit character code.
Character Generator RAM (CG RAM)
The character generator RAM stores user-defined bitmaps for either eight, 5 × 7-pixel characters or four, 5 × 10-pixel
characters. To display character patterns stored in CG RAM, write the character codes, shown in the leftmost column of
the following figure, on DD RAM.
No. 4101—12/32
Character cord and the character bitmap
LC7986C
No. 4101—13/32
5 × 7-pixel characters
LC7986C
The layout and addressing for 5 × 7-pixel characters is
shown in the following figure. Each character occupies
eight bytes, where bits 3 to 5 of the CG RAM address correspond to bits 0 to 2 of the character code. Note that bit 3
of the character code is not significant so, for example,
codes 00H and 08H select the same character.
Bits 0 to 2 of the CG RAM address are the bitmap row
address, where row 000 is the topmost displayed row.
The cursor, when displayed, is formed by ORing the bottom row with all 1s. If the cursor is used, row 111 should
contain all 0s so the cursor does not obscure the bottom
row of the character.
Bits 0 to 4 of the CG RAM data contain the character bitmaps. When a bit is 1, the corresponding pixel is ON, and
when 0, the pixel is OFF.
Bits 5 to 7 of the CG RAM data are present in memory, b ut
are not used by the display circuit. These bits can be used
as general-purpose RAM.
No. 4101—14/32
5 × 10-pixel characters
LC7986C
The layout and addressing for 5 × 10-pixel characters is
shown in the following figure. Each character occupies
eleven bytes, where bits 4 and 5 of the CG RAM address
correspond to bits 1 and 2 of the character code. Note that
bits 0 and 3 of the character code are not significant so, for
example, codes 00H, 01H, 08H and 09H all select the same
character.
Bits 0 to 3 of the CG RAM address are the bitmap row
address where row 000 is the topmost displayed row.
The cursor, when displayed, is formed by ORing the bottom row with all 1s. If the cursor is used, row 1010 should
contain all 0s so the cursor does not obscure the bottom
row of the character.
Bits 0 to 4 of the CG RAM data contain the character bitmaps. When a bit is 1, the corresponding pixel is ON, and
when 0, the pixel is OFF.
Bits 5 to 7 of the CG RAM data are present in memory,
but are not used by the display circuit. These bits and the
CG RAM bytes, rows 1011 to 1111 that are not used by
the display circuit, can be used as general-purpose RAM.
Timing Generator
This circuit generates timing signals both for internal circuit operation and for driving external LC7930Ns. The
timing signals for the DD RAM, CG ROM and CG RAM
are independent of the microcontroller interface so that
memory accesses by the microcontroller do not cause
interference with the display drive signals.
No. 4101—15/32
Display Drivers
LC7986C
The LC7986C incorporates 16 LCD common driver outputs and 80 LCD segment driver outputs. The character
font and the number of display lines determine the number
of active common outputs.
The segment drivers function identically to the LC7930N
segment drivers. The character bitmap data to be displayed
is latched in the internal 80-bit shift register before being
output on the segment drivers.
Cursor Display and Blinking
Cursor display and blinking of the character at the cursor
position are controlled using the Display ON/OFF instruction. The cursor position is at the character corresponding
to the address counter value as shown in the following fig-
The display bitmap data for each pixel-row is generated
starting with the left-most or the right-most pixel. The
shift direction is set using SHL. The data shifts through the
shift register and is output on the shift register serial data
output. The shift register latches the last 80 bits in the row
so the LC7986C displays the last 16 characters. External
LC7930Ns connect in series to the serial data output and
each one latches and displays bitmap data for eight additional characters.
ure. Note that the cursor and blinking character are also
displayed at the address counter value when CG RAM is
selected.
No. 4101—16/32
LC7986C
Microcontroller Interface
DB0 to DB7 are used for the 4-bit data bus. Two read or
write cycles, therefore, are required to transfer each data,
status or instruction byte. The high-order four bits—bits
DB4 to DB7 in 8-bit interface mode—are transferred first.
The low-order four bits are then transferred as shown in
the following figure.
Reset Circuit
The internal reset circuit initializes the LC7986C at
power-ON. The busy flag remains ON from power-ON
until initialization is complete 10ms after VDD reaches
4.5V. Note that if power supply conditions are such that
the internal reset circuit does not operate to initialize the
device, the LC7986C must be initialized using commands
from the microcontroller.
The initialization sequence is as follows.
1. Clear Display
2. Set Function (D/L = 1, N = 0, F = 0)
Sets 8-bit interface size, 1-line display size and 5 × 7pixel character font.
3. Cursor/Display Control (D = 0, C = 0, B = 0)
Sets the display, the cursor and character blinking OFF.
4. Set Entry Mode (I/D = 1, S = 0)
Sets address counter auto-increment and sets display
shift OFF.
No. 4101—17/32
Instructions
LC7986C
The external microcontroller accesses two register—
instruction register and data register—to control the
LC7986C. So the microcontroller interface is independent
of the microcontroller clock frequency, the LC7986C
stores the instruction of data internally before executing it.
There are four types of instructions.
• Function set instructions such as display type or interface size set
• Address set instructions
• Data read and write instructions
• Other instructions
The Busy Flag/Address Read instruction is the only
instruction that can be executed while the LC7986C is
executing a previous instruction. Before transmitting any
other instruction, the microcontroller should either check
that the busy flag is OFF or else wait longer than the execution time of the previous instruction.
Data read and write instructions are usually the most frequently used instructions. For increased microcontroller
efficiency, a display shift and display data write can be
executed simultaneously. In addition, the address counter
automatically increments or decrements after either a data
read or data write instruction, which reduces the operations required by the microcontroller. Note that the increment or decrement occurs after the busy flag turns OFF.
The delay until the address counter updates is
t
= 1.5/fCP or t
ADD
ADD
= 1.5/f
, and is shown in the
OSC
following figure.
The instructions are shown in the following table. The instruction code comprises the RS, R/W and DB0 to DB7 signals.
Instruction
Display Clear0000000001
Cursor Home000000001
Set Entry Mode00000001I/DS
Display ON/OFF0000001DCB
Cursor/Display Shift000001S/CR/L
Set Function00001DLNF
Set CG RAM Address0001CG RAM address
Set DD RAM Address001DD RAM address
Busy Flag/Address Read01BFAddress counter
Data Write10Write dataWrites data to DD RAM or CG RAM.31
Data Read11Read dataReads data from DD RAM or CG RAM.31
Note: *1.The execution time depends on the operating frequency. For example, if fCP or f
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
I/D =1:
increment
S =1:
accompanied by display shift
S/C=1:
display shift
R/L =1:
right shift
DL =1:
8-bit
N =1:
two rows
10-pixel characters
F =1:
5
×
internally operating
BF =1:
Code
I/D =0:
S/C =0:
R/L =0:
DL =0:
N =0:
F =0:
BF =0:
Clears the display and sets the address counter to DD RAM
address 0.
Sets the address counter to DD RAM address 0. Returns a shifted
×
display to the original position. Does not alter the DD RAM data
Sets cursor movement and display shift following a data read or
write. When I/D is 1, the cursor increments, and when 0,
decrements. When S is 1, the display also shifts.
When D is 1, the display is ON, and when 0, OFF. When C is 1, the
cursor is ON, and when 0, OFF. When B is 1, blinking of the
character at the cursor position is ON, and when 0, OFF.
××
××
decrement
cursor shift
left shift
4-bit
a row
7-pixel characters
5
×
open to instructions
= 270kHz, the execution time is 31µs × 320/270 = 37µs.
OSC
Moves the cursor or the display without altering the DD RAM data.
When S/C is 1, the display shifts, and when 0, the cursor moves.
When R/L is 1, the direction is right, and when 0, left.
When DL is 1, the interface size is eight bits, and when 0, four bits.
When N is 1, the display size is two lines, and when 0, a single line.
When F is 1, the font size is 5
Sets the CG RAM address. Data read and writes after this
instruction are to and from CG RAM.
Sets the DD RAM address. Data read and writes after this
instruction are to and from DD RAM.
Used during execution of other instructions, outputs the busy flag
state and the address counter value. The address counter is used
for both DD RAM and CG RAM.
DD RAM : display data RAM
CG RAM : character generator RAM
: CG RAM address
A
CG
A
: DD RAM address: corresponding to cursor address
DD
AC : address counter used for both DD RAM and CG RAM
Description
×
10 pixels, and when 0, 5 × 7 pixels.
Execution time
(f
CP
or f
µ
µ
OSC
1.28ms
1.28ms
31
31µs
31
31
31
31
s (t
ADD
s (t
ADD
*1
(max)
= 320kHz)
µ
s
µ
s
µ
s
µ
s
µ
s
µ
s
0
= 4.7µs)
= 4.7µs)
No. 4101—18/32
LC7986C
Display Clear
Fills the DD RAM with space characters (20
), returns the
H
display to the unshifted position and sets the address
counter to zero, returning the cursor to the top-left display
position. The address counter increment/decrement mode
is set to increment. The character blinking and display
shift modes are not affected.
Note that if a custom character generator ROM is used, the
space character must correspond to the 20
character code
H
for the display to be cleared correctly.
Cursor Home
Display ON/OFF
Sets the display, the cursor and character blinking ON or
OFF.
When D is 1, the display is ON, and when 0, OFF. Setting
the display ON or OFF does not alter the address counter
or the DD RAM data.
When C is 1, the cursor is ON, and when 0, OFF. Setting
the cursor ON or OFF does not affect the cursor autoincrement and display shift modes.
When B is 1, the cursor and the character at the cursor
position blink, alternating between black (all pixels ON)
and the displayed character as shown in the following figure. When f
320ms, and when f
CP
or f
= 320kHz, the blink interval is
OSC
CP
or f
= 270kHz, 379.2ms.
OSC
Returns the display to the unshifted position and sets the
address counter to zero, returning the cursor to the top-left
display position. Does not alter the DD RAM data.
Set Entry Mode
Sets the cursor auto-increment direction and the display
shift mode and direction. When I/D is 1, the address
counter increments when data is read from or written to
either the DD RAM or the CG RAM, thereby shifting the
cursor right one character position. When I/D is 0, the
address counter decrements, shifting the cursor left.
When S is 1, display shift is ON, and the display also
shifts one character position to the right or left when data
is written to the DD RAM so that the cursor position relative to the display is unchanged. No display shift occurs
when data is read from the DD RAM or when data is read
from or written to the CG RAM, although the address
counter increments or decrements for all read and write
operations. When S is 0, display shift is OFF.
Cursor/Display Shift
Shifts the cursor or the display either left or right as shown
in the following table. A DD RAM write is not required.
When shifting a 2-line display, both rows shift simultaneously, but characters do not move from one row to
another. Each time the display shifts, the characters in
each row only move within the row.
S/CR/LDescription
00
01
10
11
Decrements the address counter and shifts the cursor left.
(–1 at AC)
Increments the address counter and shifts the cursor right.
(+1 at AC)
Shifts the display left. The address counter does not change,
and the cursor moves with the display.
Shifts the display right. The address counter does not change,
and the cursor moves with the display.
No. 4101—19/32
LC7986C
Set Function
Sets the microcontroller interface bus size and the display
mode. When DL is 1, the interface size is eight bits, and
when 0, four bits. When the interface size is four bits, two
reads or writes of the high-order bits of the data bus, DB4
toB7, are required.
N and F set the display mode as shown in the following
table. N sets the number of lines in the display, and F, the
font size. Note that a 2-line display cannot use the 5 × 10pixel font size.
NFDisplay linesFont size (pixels)Duty
00 15
01 15
1 ×
25
71/8
101/11
71/16
Caution :
The font size and number of lines cannot be changed once
any other instruction is executed following the Set Function instruction.
has finished executing. When BF is 1, the previous instruction is executing, and when 0, the instruction has completed. The next instruction cannot be received until BF is
0. The microcontroller should, therefore, confirm that BF
is 0 before writing the next instruction.
The address counter is used for both the DD RAM and the
CG RAM. The address output on DB0 to DB7 is the
counter value before the currently executing instruction
began.
Data Write
Writes the 8-bit data on DB0 to DB7 to either the
DD RAM or the CG RAM, according to whether a Set
DD RAM Address or a Set CG RAM Address instruction
was executed previously. After writing, the address
counter automatically increments or decrements according
to the entry mode setting, and the display can also shift.
Data Read
Set CG RAM Address
Loads the 6-bit character generator RAM address into the
address counter. Data reads and writes after this instruction is executed are to and from the CG RAM.
Set DD RAM Address
Loads the 7-bit display data RAM address into the address
counter. Data reads and writes after this instruction is executed are to and from the DD RAM.
Busy Flag/Address Read
Outputs 8-bit data on DB0 to DB7 from either the
DD RAM or the CG RAM, according to whether a Set
DD RAM Address or a Set CG RAM Address instruction
was executed previously. After the data is read, the address
counter automatically increments or decrements according
to the entry mode setting, but the display does not shift.
Note that a Set DD RAM Address or Set CG RAM
Address instruction should be executed before executing
this command. If a Data Read instruction is executed without first executing an address set instruction, the output
data will not be valid. If the instruction is repeated, however, the output data will be valid data from the next
address. Subsequent Data Read instructions will output
valid data.
The output data will not be valid if this command is executed following a Data Write command, even though the
address counter has just incremented or decremented.
A Cursor/Display Shift instruction has the same effect as a
Set DD RAM Address instruction. If a Cursor/Display
Shift instruction moves the cursor, an address set instruction does not have to be executed before the Data Read
instruction, and the data is read from the DD RAM.
×
×
×
Outputs the busy flag state and the address counter value.
The busy flag is used to check if the previous instruction
No. 4101—20/32
LC7986C
Microcontroller Interface
The LC7986C interfaces to both 4-bit and 8-bit microcontrollers.
8-bit interface
DB0 to DB7 are used for the 8-bit data bus. The timing sequence for instruction write, instruction execution, and busy
flag checking is shown in the following figure.
4-bit interface
The timing sequence for instruction write, instruction execution and busy flag checking is shown in the following figure.
The busy flag is checked after transferring two 4-bit sets of data. The busy flag and address counter value are output as
two 4-bit words. Checking the busy flag, therefore, requires two read cycles so the low-order four bits of the address
counter value are flushed from the data buffer.
Note. IR7 and IR3 are the 7th and 3rd bit, respectively, of the instruction. AC3 is the 3rd bit of the address counter.
No. 4101—21/32
LCD Interface
LC7986C
The number of common signals and the duty cycle for
each combination of font and display lines are shown in
the following table. One common signal is required for
each pixel-row in the character, and an additional common
signal is required for the cursor row beneath the character.
Display linesFont size
7-pixel +
1
1
2
5
cursor
10-pixel +
5
cursor
5 × 7-pixel +
cursor
Sample Application Circuits
1-line × 16-character, 1/4-bias and 1/8-duty Display with 5 × 7-pixel Font
1-line × 16-character, 1/4-bias and 1/11-duty Display with 5 × 10-pixel Font
Common
signals
81/8
111/11
161/16
Duty
×
×
No. 4101—22/32
LC7986C
2-line × 16-character, 1/5-bias and 1/6-duty Display with 5 × 7-pixel Font
Connecting Unused Display Rows
Connecting unused LCD panel common pins to an unused LC7986C common output pin as shown in the following figure prevents crosstalk from the active drive signals affecting the display.
1-line × 16-character, 1/4-bias and 1/8-duty Display with 5 × 7-pixel Font
Alternative Display Connections
The LC7986C to LCD panel connections can be varied to match the LCD panel matrix as shown in the following sections.
No. 4101—23/32
LC7986C
1-line × 32-character, 1/5-bias and 1/16-duty Display with 5 × 7-pixel Font
2-line × 8-character, 1/4-bias and 1/8-duty Display with 5 × 7-pixel Font
LCD driver power supply
The reference voltage levels required to generate the LCD
drive waveforms are shown in the following table.
Voltages V
to V
are input on pins V1 to V5, respectively.
1
5
The voltages can be produced using a voltage-divider
resistor network. The voltages required depend upon the
duty cycle. Connect V
to V4', V4 to V5' when using 1/5-bias drive. V
LCD driver peak voltage, where V
to V1', V1 to V2', V2 to V3', V3
DD
LCD
= V
DD
LCD
V
5
is the
.
The LCD drive wa v eforms are shown in the following sections. The calculations assume a 320kHz clock frequency
for a 4 µ s clock period.
Voltage1/4 bias and 1/8 or 1/11 duty1/5 bias and 1/16 duty
V
1
V
2
V
3
V
4
V
5
VDD − 0.25V
VDD − 0.5V
VDD − 0.5V
VDD − 0.75V
VDD − V
LCD
LCD
LCD
LCD
LCD
VDD − 0.2V
VDD − 0.4V
VDD − 0.6V
VDD − 0.8V
LCD
LCD
LCD
LCD
VDD − V
LCD
No. 4101—24/32
−
A-type (A/B = HIGH)
1/8 duty LCD drive
1/11 duty LCD drive
LC7986C
1/16 duty LCD drive
No. 4101—25/32
B-type (A/B = LOW)
1/8 duty LCD drive
1/11 duty LCD drive
LC7986C
1/16 duty LCD drive
No. 4101—26/32
LC7930N Interface
LC7986C
When using a single-line display, up to eight LC7930Ns,
and when using a two-line display, up to three LC7930Ns
can interface to the LC7986C using the circuit shown in
the following figure. The LC7986C LOAD, CP, M and D
outputs connect directly to the LC7930Ns. Take care that
the V1 to V5 voltage reference outputs are connected correctly to the LC7930Ns.
The programming example is shown in the following
table. This example assumes that the internal reset circuit
initializes the LC7986C.
The Set Function instruction that is executed before the
display is turned ON determines the operation of the
Since the DD RAM stores 80 characters, the display shift
function can be used as shown in the example. Note that
display shifts only change the display position and do not
alter the DD RAM. Using the Cursor Home instruction,
therefore, returns the display to its original position.
device.
Instruction
Power-ON
Set Function00001100
Display ON/OFF0000001110
Set Entry Mode0000000110
Data Write1001001100
Data Write1001000011Writes ‘C’.
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Code
××
DisplayDescription
The internal reset circuit initializes the
LC7986C. The display is OFF.
Sets 8-bit interface size, 1-line display size and
×
7-pixel character font. The number of
5
display lines and the character font cannot be
changed later.
Turns the display ON and enables the cursor.
The display is blank.
Sets address auto-increment and automatic
cursor right shift on writing to DD RAM or
CG RAM. The display is not shifted.
Writes ‘L’ to DD RAM, since DD RAM was
selected when the LC7986C was initialized at
power-ON. The cursor position increments and
the cursor moves right.
Data Write
Data Write1000110101Writes ‘5’.
Set Entry Mode0000000111Sets display shift on writing to DD RAM.
Data Write1000100000Writes a space ‘ ’.
Data Write1001001100Writes ‘L ’.
Data Write
Data Write1001001111Writes ‘O’.
Cursor/Display Shift00000100
Cursor/Display Shift00000100
Data Write1001000011
Cursor/Display Shift00000111
Cursor/Display Shift00000101
Data Write1001001110Writes ‘N.’
↓↓↓
↓↓↓
××
××
××
××
Shifts the cursor left.
Shifts the cursor left.
Writes ‘C’, the correct character. The display
scrolls left.
Shifts both the display and the cursor right.
Shifts the cursor right.
Data Write
Cursor Home0000000010
↓↓↓
Sets both the display and the cursor position to
0.
No. 4101—28/32
LC7986C
8-bit interface size, 1-line × 16-character display and microcontroller initialization
The initialization sequence for an LC7986C using an 8-bit interface is shown in the following figure.
Be sure to take this initialization because in some power supply conditions the internal reset circuit does not operate.
Power ON
Wait longer than 15ms after V
Wait longer than 4.1ms
Wait longer than 100µs
reaches 4.5V
DD
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
The busy flag can be tested after executing the instructions below.
If the flag is not tested before writing another instruction, the microprocessor
should wait longer than the maximum instruction execution time.
Initialization complete
Function Set. Sets 8-bit interface size, the number of display lines and the character font. The
number of display lines and the character font cannot be changed after executing this instruction.
Display OFF
Display clear
Set entry mode
No. 4101—29/32
8-bit interface size, 2-line × 16-character display and
__L_
LC7986_
LC7986
_
LC7986
L_
LC7986
LCD CONTROLLER&_
LC7986
LCD CONTROLLER&_
C7986
CD CONTROLLER&D_
LC7986
LCD CONTROLLER&D
internal reset circuit
LC7986C
The programming example is shown in the following
table.
Note that each row uses 40 bytes of DD RAM. When the
display is 16 characters long, to move the cursor from the
When shifting the display, both rows shift simultaneously
but characters do not move from one row to another. Each
time the display shifts, the characters in each row only
move within the row.
first row to the second, the DD RAM address should be
reset after the eighth character as shown in the example.
Instruction
Power-ON
Set Function00001110
Display ON/OFF0000001110
Set Entry Mode0000000110
Data Write1001001100
Data Write
RSR/WDB7DB6DB5DB4DB3DB2DB1DB0
Code
××
↓↓↓
DisplayDescription
The internal reset circuit initializes the
LC7986C. The display is OFF.
Sets 8-bit interface size, 2-line display size and
×
7-pixel character font.
5
Turns the display ON and enables the cursor.
The display is blank.
Sets address auto-increment and automatic
cursor right shift on writing to DD RAM or
CG RAM. The display is not shifted.
Writes ‘L’ to DD RAM, since DD RAM was
selected when the LC7986C was initialized at
power-ON. The cursor position increments and
the cursor moves right.
Data Write1000110101Writes ‘5’.
Set DD RAM Address0011000000
Data Write1001001100Writes ‘L ’.
Data Write
Data Write1001001111Writes ‘O’.
Set Entry Mode0000000111Sets display shift on writing to DD RAM.
Data Write1001001110
Data Write
Cursor Home0000000010
↓↓↓
↓↓↓
Sets the DD RAM address to the first position
in the second row.
Writes ‘N. ’ The display scrolls left. The two lines
scroll simultaneously.
Sets both the display and the cursor position to
0.
No. 4101—30/32
4-bit interface size, 1-line × 16-character display and
microcontroller initialization
LC7986C
The initialization sequence for an LC7986C using a 4-bit
interface is shown in the following figure.
The Function Set instruction is required to set the interface
size. With a 4-bit interface size, two write accesses are
required for each instruction. Since 8-bit interface size is
selected when the LC7986C is initialized at power-ON,
Power ON
Wait longer than 15ms
after VDD reaches 4.5V
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
Wait longer than 4.1ms
the first write access is to an 8-bit interface on the
LC7986C. DB0 to DB3 are not connected, however, and
are not written. The Function Set instruction should therefore be repeated, writing DB4 to DB7 again and then DB0
to DB3, to initialize the device.
Wait longer than 100µs
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
The busy flag cannot be tested before the
Function Set instruction sets the interface size.
The busy flag can be tested after executing the instructions below.
If the flag is not tested before writing another instruction, the microprocessor
should wait longer than the maximum instruction execution time.
The interface size is changed from 8-bit to 4-bit.
Function Set. Sets 8-bit interface size, the number of display lines and the character font. The
number of display lines and the character font cannot be changed after executing this instruction.
Display OFF
Display clear
Initialization complete
Set entry mode
No. 4101—31/32
LC7986C
■
No products described or contained herein are intended for use in surgical implants, life-support systems, aerospace equipment, nuclear
power control systems, vehicles, disaster/crime-pre v ention equipment and the lik e, the failure of which may directly or indirectly cause injury,
death or property loss.
■
Anyone purchasing any products described or contained herein for an above-mentioned use shall:
➀
Accept full responsibility and indemnify and defend SANYO ELECTRIC CO., LTD., its affiliates, subsidiaries and distributors and all their
officers and employees, jointly and severally, against any and all claims and litigation and all damages, cost and expenses associated
with such use:
➁
Not impose any responsibility for any fault or negligence which may be cited in any such claim or litigation on SANYO ELECTRIC CO.,
LTD., its affiliates, subsidiaries and distributors or any of their officers and employees, jointly or severally.
■
Information (including circuit diagrams and circuit parameters) herein is for e xample only; it is not guaranteed for volume production. SANYO
believes information herein is accurate and reliable, but no guarantees are made or implied regarding its use or any infringements of
intellectual property rights or other rights of third parties.
This catalog provides information as of July, 1997. Specifications and information herein are subject to change without notice.
No. 4101—32/32
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.