NJRC NJU6624C

NJU6624C
PRELIMINARY
14-CHARACTER 1-LINE DOT MATRIX LCD
CONTROLLER DRIVER with SMOOTH SCROLL FUNCTION
gGENERAL DESCRIPTION
The NJU6624C is a Dot Matrix LCD controller driver for 14-character 1line with icon display in single chip.
It contains bleeder resistance, general output port, keyscan circuit,
CR oscillator, microprocessor interface circuit, instruction decoder controller, character generator ROM/RAM, high voltage operation common and segment drivers, and others.
The character generator ROM consisting of 7,840 bits stores 224 kinds
of character Font. Each 1,120 bits CG RAM and Icon display RAM
can store 32 kinds of special character displayed on the dot matrix
display area or 70 kinds of Icon on the Icon display area.
The 8-common (7 for character, 1 for icon) and 70-segment drivers
operate 14-character 1-line with 70 Icon LCD display and LED driver
drives 4 LED which can use like as indicator.
The 16th display contrast control function is incorporated. Therefore,
the contrast adjustment is operated easily by only simple power supply circuit on-chip.
The complete CR oscillator requires no external components.
The serial interface which operates by 1MHz, communicates with external MCU.
gPACKAGE OUTLINE
NJU6624CFG1
gFEATURES
n 14-character 1-line Dot Matrix LCD Controller Driver
n Maximum 70 Icon Display
n Serial Direct Interface with Microprocessor
- 14 x 8 bits : Maximum 14-character 1-line Display
n Display Data RAM
- 7,840 bits : 224 Characters for 5 x 7 Dots
n Character Generator ROM
- 1,120 bits : 32 Patterns( 5 x 7 Dots )
n Character Generator RAM
- Maximum 70 Icons
n Icon Display RAM
High
Voltage
LCD
Driver
: 8-common / 70-segment
n
Duty
and
Bias
Ratio
: 1/8 duty, 1/4 bias
n
: Clear Display, Address Home, Display ON/OFF Cont., Display Blink,
n Useful Instruction Set
Address Shift, Character Shift, Keyscan ON/OFF Cont. e.t.c.
n 32Key Input (4x8 keyscan)
General
eneral output port (4 ports)
nG
n Power On Initialization / Hardware Reset
n Bleeder Resistance on-chip
n Software contrast control(16 step)
n Oscillation Circuit on-chip
n Low Power Consumption
n Operating Voltage --- 2.4 to 5.5 V
--- QFP 100
n Package Outline
n C-MOS Technology
Mar.2000
Ver.1
NJU6624C
VLCD1
SEG59
SEG60
SEG62
SEG61
SEG64
SEG63
SEG66
SEG65
SEG68
SEG67
SEG69
SEG70
C OM 2
C OM 1
NC
C OM 4
C OM 3
C OM 5
C OM 7
C OM 6
V4
C OM MK
V1
V2
VLCD 2
gPIN CONFIGURATION
SEG58
1
VDD
SEG57
OSC1
SEG56
P0
SEG55
P1
SEG54
P2
SEG53
P3
SEG52
REQ
SEG51
DATA
SEG50
SCL
SEG49
CS
SEG48
RESET
SEG47
VSS
SEG46
NJU6624CFG1
K0
SEG45
SEG33
SEG32
SEG31
SEG29
SEG30
SEG28
SEG26
SEG27
SEG34
SEG24
SEG25
SEG35
SEG8/S7
SEG23
SEG36
SEG7/S6
SEG21
SEG22
SEG37
SEG6/S5
SEG20
SEG38
SEG5/S4
SEG18
SEG19
SEG39
SEG4/S3
SEG16
SEG17
SEG40
SEG3/S2
SEG15
SEG41
SEG2/S1
SEG13
SEG14
SEG42
SEG1/S0
SEG12
SEG43
K3
SEG9
SEG44
K2
SEG10
SEG11
K1
gBLOCK DIAGRAM
VLCD1 VLCD2
RB
LED port
VSS
Instruction
Ins tr uc ti on
Power On Reset
Reset
RESET
Address
Display Data RAM
(DD RAM)
DATA
VSS
R egi s ter( IR )
D ata
CS
I/ O B u ff e r
SCL
Seri al to Parall el C o nv er tor
14x8bits
REQ
Icon Display
RAM
(MK RAM)
12x5bits
Character
Generator
RAM
(CG RAM)
5x7x32bits
Timing
Gen.
Counter
Decoder(ID)
Character
Generator
ROM
(CG ROM)
7,840bits
P0 to P3
Buffer
8 bi t
Shift R eg.
CR OSC Circuit
Output
Register
Latc h
V4
R egi ster(IR)
0SC1
V2
(V3)
V1
71bi t
VLCD
K0 to K3
Key scan Circuit
RB
C omm o n
Dri v er
RB
Se gm ent
D riv er
RB
COM1
to COM7
/COMMK
SEG1
to SEG70
NJU6624C
gTERMINAL DESCRIPTION
No.
SYMBOL
I/O
FUNCTION
2,13
VDD,VSS
-
Power Source:VDD=+5V,GND:VSS=0V
1
VLCD1
I
LCD driving voltage input terminal
100
99
98
97
VLCD2
V1
V2
V4
I
LCD driving voltage stabilization capacitor terminals.
Connect the capacitor between VLCD2 and VSS, V1 and VSS, V2 and
VSS, V4 and VSS.
typ. : 0.1uF
3
OSC1
I
System clock input terminal
This terminal should be open for internal clock operation.
11
CS
I
Chip select signal input of serial I/F.
10
SCL
I
Sift clock input of serial I/F.
9
DATA
I
Serial Data Input of serial I/F.
12
RESET
I
Reset Terminal.
When the "L" level is input over than 1.2ms to this terminal,
the system will be reset ( at fOSC 145KHz ).
4-7
P0-P3
O
General output port
LED driver drives LED as indicator on athers.
8
REQ
O
Key request signal output terminal.
14-17
K0-K3
I
Key scanning input terminals.
SEG 1/S0
18-25
-
O
LCD segment driving signal output / Key scanning output terminals.
O
LCD segment driving signal output terminals
SEG 8/S7
26-87
SEG9-SEG 70
88
NC
89-95
COM1-COM7
O
LCD common driving signal output terminals
96
COMMK
O
Icon common driving signal output terminals
Non connection terminal
NJU6624C
gFUNCTIONAL DESCRIPTION
(1-1)Register
The NJU6624C incorporates two 8-bit registers, an Instruction Register(IR) and a Data Register(DR). The Register
(IR) stores instruction codes such as "Clear Display" and "Cursor Shift" or address data for Display Data RAM(DD
RAM), Character Generator RAM(CG RAM) and Icon Display RAM (MK RAM).
The Register(DR) is a temporary register, the data in the Register(DR) is written into the DD RAM, CG RAM or
MK RAM.
The data in the Register(DR) written by the MPU is transferred automatically to the DD RAM, CG RAM or MK
RAM by internal operation.
These two registers are selected by the selection signal RS as shown below.
(1-2)Address Counter (AC)
The address counter(AC) addresses the DD RAM, CG RAM or MK RAM.
When the address setting instruction is written into the Register(IR), the address information is transferred from
Register(IR) to the Counter(AC). The selection of either the DD RAM, CG RAM or MK RAM is also determined by
this instruction.
After writing (or reading) the display data to (or from) the DD RAM, CG RAM or MK RAM, the Counter(AC) increments (or decrements) automatically.
(1-3)Display Data RAM (DD RAM)
The display data RAM (DD RAM) consist of 14x 8 bits stores up to 14-character display data represented in 8-bit
code. (2 out of the 14characters are used for scroll RAM.)
The DD RAM address data set in the address counter(AC) is represented in Hexadecimal.
Higher
AC
A C4
(Example) DD RAM address " 08 "
Lower
A C3
AC2
AC1
AC0
0
HEX.
1
0
0
0
0
8
The relation between DD RAM address and display position on the LCD is shown below.
1
2
3
4
5
6
7
8
9
10
11
12
13
14 -Display Position
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D -DD RAM Address (Hex.)
When the display shift is performed,the DD RAM address changes as follows:
( Left Shift Display )
(00)<= 01
02
03
04
05
06
07
08
09 0A
0B 0C 0D 00
04
05
06
07
09
( Right Shift Display )
0D 00
01 02
03
08
0A 0B 0C =>(0D)
(1-4)Character Generator ROM (CG ROM)
The Character Generator ROM (CG ROM) generates 5 x 7 dots character pattern represented in 8-bit character
code.
The storage capacity is up to 224 kinds of 5 x 7 dots character pattern(available address is (20)H through (FF)H).
The correspondence between character code and standard character pattern of NJU6624C is shown in Table 2.
User-defined character patterns (Custom Font) are also available by mask option.
NJU6624C
Table 2. CG ROM Character Pattern ( ROM version -02 )
NJU6624C
(1-5)Character Generator RAM ( CG RAM )
The character generator RAM ( CG RAM ) can store any kind of character pattern in 5 x 7 dots written by the user
program to display user's original character pattern. The CG RAM can store 32 kind of character in 5 x 7 dots
mode.
To display user's original character pattern stored in the CG RAM, the address data (00)H-(1F)H should be written
to the DD RAM as shown in Table 2.
Table 3. shows the correspondence among the character pattern, CG RAM address and Data.
Table 3. Correspondence of CG RAM address, DD RAM character code
and CG RAM character pattern( 5 x 7 dots )
Character Code
(DD RAM Data)
CG RAM Address
76543210
76543210
Upperbit
Lower bit
00000000
00000001
Upperbit
00000
00001
Lower bit
Character
Pattern
(CG RAM
Data)
43210
Upper
bit
Lower
bi t
000
001
010
011
100
101
110
111
1 1 1 1 0
000
001
010
011
100
101
110
111
1 0 0 0 1
0 1 0 1 0
1 0 0 0 1
1 0 0 0 1
1 1 1 1 0
1 0 1 0 0
Character Pattern
Example(1)
1 0 0 1 0
1 0 0 0 1
* * * * *
1 1 1 1 1
0 0 1 0 0
1 1 1 1 1
<= Cursor Position
Character Pattern
Example(2)
0 0 1 0 0
0 0 1 0 0
* * * * *
<= Cursor Position
000
001
.
.
.
.
.
.
.
.
.
.
00011111
11111
.
.
.
.
.
.
.
.
.
.
*=Don't care
100
101
110
111
Notes :
1. Character code bit 0 to 4 correspond to the CG RAM address bit 3 to 7(5bits:32 patterns).
2. CG RAM address 0 to 2 designate character pattern line position. The 8th line is Don't care line.
In case of input CG RAM data continuously, invalid address are Cursor position automatically.
3. Character pattern row position correspond to the CG RAM data bits 0 to 4 are shown above.
4. CG RAM character patterns are selected when character code of DD RAM bits 5 to 7 are all "0"
and these are addressed by character code bits 0 and 1.
5. "1" for CG RAM data corresponds to display On and "0" to display Off.
NJU6624C
(1-6)Icon Display RAM (MK RAM)
The NJU6624C can display maximum 70 Icons.
The Icon Display can be controlled by writing the Data in MK RAM corresponds to the Icon.
The relation between MK RAM address and Icon Display position is shown below:
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COMMK
SEG
-
-
-
-
----
1
1 2 3 4 5
----
6 7 8 9 10
70
66676
666
76 86970
Table 4. Correspondence among Icon Position, MK RAM Address and Data
MK RAM Address
(10H -1D H)
Bits for Icon Display Position
D7
D6
D5
D4
D3
D2
D1
D0
"1"
"2"
"3"
"4"
"5"
1 0000
1 0H
0
0
0
1 0001
11 H
0
0
0
"5"
"7"
"8"
"9"
"10"
1 0010
1 2H
0
0
0
"11"
"12"
"13"
"14"
"15"
1 0011
1 3H
0
0
0
"16"
"17"
"18"
"19"
"20"
:
:
1 1101
1 DH
"67"
"68"
"69"
"70"
:
0
0
0
"66"
(1-7)Timing Generator
The timing generator generates a timing signals for the DD RAM, CG RAM and MK RAM and other internal
circuits.
RAM read timing for the display and internal operation timing for MPU access are separately generated, so that
they may not interfere with each other.
Therefore, when the data write to the DD RAM for example, there will be no undesirable influence, such as flickering, in areas other than the display area.
(1-8)LCD Driver
LCD Driver consists of 8-common driver and 70-segment driver.
The character pattern data are latched to the addressed Segment-register respectively. This latched data controls
display driver to output LCD driving waveform.
NJU6624C
(1-9)Keyscan circuit
The Keyscan circuit consists of a detector block of key pressing and a fetching block of key status. It scans 4x8
key matrix and fetches conditions of 32 keys. Furthermore, it operates correctly against the key roll over input.
-Request signal output
When the NJU6624C detect the key pressing by the key scan circuit, it outputs “H” signal as the request signal
from the “REQ” terminal to notice the key pressing information to an application system.
-Contents of key register renewal
Contents of key register are “0000 0000” in case of no key operation. Contents of key register are not changed in
busy of key data reading operation. Key data is fetched into the key register after 2 clock of the end of a keyscan
cycle and kept by the start of next cycle.
-Key data input terminal and segment terminal
Keyscan signal output terminals operate as segment terminals (SEG1 to SEG8) also and keyscan signals are
output in interval period of segment signals. Key data input terminals (K0 to K3) are pulled up to VDD in busy of
keyscan operation (tKS). In this period, terminals of SEG9 to SEG70 output the voltage of V2 or VLCD2.
-Keyscan OFF mode
Keyscan operation is turned ON or OFF by the instruction. In case of keyscan OFF, the detector of key pressing
is not operating and key data input terminals (K0 to K3) are not pulled up during the period of keyscan (tKS). In
the period of keyscan (tKS), all of segment terminals (SEG1 to SEG70) output the voltage of V2 or VLCD2.
-Example Keyscan
S0
S1
S2
S3
S4
S0
S1
S2
S3
S4
S0
S1
S2
S3
S4
S5
S6
S7
S5
S6
S7
S5
S6
S7
REQ
SEG1/S0
SEG2/S1
SEG3/S2
SEG4/S3
SEG5/S4
SEG6/S5
SEG7/S6
SEG8/S7
tKS
NJU6624C
-Key status fetching timing
Key status is fetched at third quarter of “L” period (tKP) of scan signals (S0 to S7) as shown below;
VLCD2
tKP
S0
VSS
tKP
S1
3/4tKP
3/4tKP
Fetching timing
-Keyscan data format
Scaned 8-bit data of key are read out through the srial I/F.
D15 D14 D13 D12 D11 D10
MS1
MS0
1
0
0
1
D9
D8
1
1
D7
D6
D5
D4
KL3 KL2 KL1 KL0
|
K3 to K0
|
Keyscan
output data
KH2
KH1
KH0
S7
1
1
1
S6
1
1
0
S5
1
0
1
S4
1
0
0
S3
0
1
1
S2
0
1
0
S1
0
0
1
S0
0
0
0
D3
D2
0
KH2 KH1 KH0
|
D1
D0
S7 to S0
|
When a key on the key matrix is pressed, the bit corresponding to terminals (K3 to K0, S7 to S0) connected the
switch goes to “1” and another bits go to “0”.
In case of Example 1, when the switch connecting to K2 and S2 is pressed, bit(D6) corresponding to K2 and
bit(D1) corresponding to S2 go to “1” but another bits go to “0”.
Example 1. One key is pressed
NJU6624
K3 K2 K1 K0 S7 S6 S5 S4 S3 S2 S1 S0
ON
OFF
D15 D14 D13 D12 D11 D10
Read out data
MS1
MS0
1
0
0
1
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
1
0
1
0
0
0
0
1
0
|
K3 to K0
|
|
S7 to S0
|
NJU6624C
The key roll over input is the vertical line as shown below (Example 2) can be accepted with the keyscan circuit.
But in case of Example 3, the key roll over input in the horizontal line can not be accepted.
The key roll over input must be taken care for key data judgement.
Example 2. The key roll over input (1)
NJU6624
K3 K2 K1 K0 S7 S6 S5 S4 S3 S2 S1 S0
ON
OFF
D15 D14 D13 D12 D11 D10
Read out data
MS1
MS0
1
0
0
1
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
1
1
1
0
0
0
0
1
0
|
K3 to K0
|
Example 3. The key roll over input (2)
NJU6624
K3 K2 K1 K0 S7 S6 S5 S4 S3 S2 S1 S0
ON
OFF
Note : In case of can not read out correct.
|
S7 to S0
|
NJU6624C
(2)Power on Initialization by internal circuits
(2-1)Initialization By Internal Reset Circuits
The NJU6624C is automatically initialized by internal power on initialization circuits when
the power is turned on. In the internal power on initialization, following instructions are executed. During the
Internal power on initialization, the busy flag (BF) is "1" and this status is kept 1.5ms (fosc=145kHz) after VDD
rises to 2.4V. Initialization flow is shown below:
Display ON/OFF control
Entry mode set
Set static port
Contrast control
Set Display mode
Clear Display
D=0 :Display Off
M=0 :Icon Off
B=0 :Cursor Blink Off
I/D=1
S=0
:Increment by 1
:No Shift
P3-P0=0000 :All static port output signal is ”L”.
E.V.R. Value=0000 : VLCD Low
K=1
DF=0
Keyscan ON
Release the power down mode
AC=00H
End
Note : If the condition of power supply rise time described in the Electrical Characteristics is not satisfied, the
internal Power On Initialization Circuits will not operated and initialization will not performed.
In this case the initialization by MPU software is required.
(2-2)Initialization By Hardware
The NJU6624C incorporates RESET terminal to initialize the all system. When the "L" level input over 1.2ms to
the RESET terminal, reset sequence is executed. In this time, busy signal output during 250us (fosc=145kHz)
after RESET terminal goes to "H". During this 250us period, any other instruction must not be input to the
NJU6624C.
-Timing Chart
External
Over 1.2ms
RESET Signal
250us
Busy
NJU6624C
(4)Instructions
The NJU6624C incorporates two registers, an Instruction Register (IR) and a Data Register(DR).
These two registers store control information temporarily to allow interface between NJU6624C and MPU or
peripheral ICs operating different cycles.
Table 4. Table of Instructions
CODE
INSTRUCTION
D11 D10
Execute
Time
D14
(a) Maker Testing
1
0
0
1
1
1
1
1
(b) Clear Display
1
0
0
1
1
0
0
1
*
*
*
*
*
*
*
*
234.48uS
(c) Return Home
1
0
0
1
0
0
0
1
*
*
*
*
*
*
*
*
0uS
(d) Entry Mode Set
1
0
0
0
1
0
0
0
*
*
*
*
*
*
I/D
S
0uS
(e) Display ON/OFF
Control
1
0
0
0
1
0
0
1
*
*
*
*
*
D
M
B
0uS
(f) Address Shift
1
0
0
1
0
0
1
0
*
*
*
*
*
*
*
ARL
0uS
(g) Display Shift
1
0
0
0
1
0
1
0
*
*
*
*
*
*
*
DRL
0uS
(h) Set Static Port
1
0
0
0
1
0
1
1
*
*
*
*
P3 P2 P1 P0
0uS
(i) Contrast Control
1
0
0
0
1
1
0
0
*
*
*
*
E.V.R. Value
0uS
Set Display
Mode
1
0
0
0
1
1
1
0
*
*
*
*
RAM
(k) Set DD/MK
Address
1
0
0
1
0
0
1
1
*
*
*
DD RAM(00 to 0D)H
MK RAM(10 to 1D)H
(l) Set CG RAM
Address
1
0
0
1
0
0
0
0
CG RAM(00 to FE)H
0uS
Write DD RAM
Data
1
0
0
1
1
0
0
0
Write data(DD RAM)
41.38uS
(m) Write MK RAM
Data
1
0
0
1
1
0
0
0
*
*
*
Write data(MK RAM)
41.38uS
Write CG RAM
Data
1
0
0
1
1
0
0
0
*
*
*
Write data(CGRAM)
41.38uS
(n) Read Keyscan
Data
1
0
1
0
0
1
1
1
(j)
D13 D12
D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
D15
Test data
*
-
*
K
PD
0uS
0uS
Key Data
Note : fOSC =145KHz. If the oscillation frequency is changed, the execution time is also changed.
0uS
NJU6624C
(4-1)Description of each instructions
(a)Maker Testing
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
1
1
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
1
*
*
*
*
*
*
*
*
This code is using for device testing mode ( only for maker ).
Therefore, please avoid all "0" input or no meaning Enable signal input at data "0".
(Especially please check the output condition of Enable signal when the power turns on.)
(b)Clear Display
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
1
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
1
*
*
*
*
*
*
*
*
When this instruction is executed, the space code (20)H is written into every DD RAM address, the DD RAM
address (00)H is set into the address counter and entry mode is set to increment.The S of entry mode does not
change.
Note: The character pattern for character code (20)H must be blank code in the user-defined character pattern
(Custom font).
(c)Return Home
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
1
*
*
*
*
*
*
*
*
Return home instruction is executed, the DD RAM address (00)H is set into the address counter. Display is
returned its original position if shifted. The DD RAM contents do not change.
(d)Entry Mode Set
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
*
*
*
*
*
*
I/D
S
Entry mode set instruction which sets the address moving direction and display shift On/Off, is executed when
the codes of (I/D) and (S) are written into DB 1(I/D) and DB 0(S), as shown below.
(I/D) sets the address increment or decrement, and the (S) sets the whole display shift in the DD RAM writing.
I/D
1
0
F u n c t i o n
Address increment: The address of the DD RAM or MK RAM or CG RAM
increment ( +1) when the write.
Address decrement: The address of the DD RAM or MK RAM or CG RAM
decrement:( -1) when the write.
S
F u n c\ t i o n
Whole display shift.
1
The shift direction is determined by I/D.: shift to the left at I/D=1 and shift to the
right at the I/D=0.
The display does not shift when writing into CG, MK RAM.
0
The display does not shift.
NJU6624C
(e)Display ON/OFF Control
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
1
*
*
*
*
*
D
M
B
Display On/Off control instruction which controls the whole display On/Off and the addressed position character
blink, is executed when the codes of (D) and (B) are written into DB 2(D) and DB 0(B), as shown below.
D
F u n c t i o n
1
Display On.
Display Off.I n this mode, the display data remains in the DD RAM so that it is
0
retrieved immediately on the display when the D change to 1.
M
F u n c t i o n
1
Icon display ON.
0
Icon display OFF.
B
F u n c t i o n
1
The addressed position character is blinking. Blinking rate is 500ms at
fosc=145kHz.
The cursor and the blink can be displayed simultaneously.
0
The character does not blink.
Character Font 5 x 7 dots
Alternating display
(1)Cursor display example
(2)Blink display example
When the number of dot-shift is not set “0” in (j)Dot shift instruction, the blink operation will be appeared at the irregular position.
(f)Address Shift
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
0
*
*
*
*
*
*
*
ARL
The Address shift instruction shifts the Address to the right or left without writing or reading display data.
ARL
0
1
Function
Shifts the address position to the left ((AC) is decremented by 1)
Shifts the address position to the right ((AC) is incremented by 1)
NJU6624C
(g)Display Shift
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
0
*
*
*
*
*
*
*
DRL
The Display shift instruction shifts the Display to the right or left without writing or reading display data.
The contents of address counter(AC) does not change by operation of the display shift only.
DRL
Function
0
1
Shifts the whole display to the left and the cursor follows it.
Shifts the whole display to the right and the cursor follows it.
(h)Set Static Port
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
1
*
*
*
*
P3
P2
P1
P0
It sets Static Output Port signal which can drive LED directly like as indicator. Initial status is ”L”.
(i)Contrast Control
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
1
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
0
0
*
*
*
*
C3
C2
C1
C0
Contrast Control instruction which adjusts the contrast of the LCD,is executed when the code "1" is written into
DB 6 and the codes of C3 to C0 are written into DB 3 to DB 0 as shown below.
The contrast of LCD can be adjusted one of 16 voltage-stages by setting this 4-bit register.
See (5-1) "how to adjust the Contrast of LCD".
Set the binary code "0000" when contrast adjustment is unused.
C3
C2
C1
C0
V LCD
0
0
0
0
low
1
1
high
:
:
1
1
VLCD = VLCD2 - VSS
NJU6624C
(j)Set Display Mode
D15 D14 D13 D12 D11 D10
Code
1
0
0
0
1
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
1
0
*
*
*
*
*
*
K
PD
1
The Set Display Mode instruction control the function of key scan and power down mode.
K
Function
1
Key scan ON
0
Key scan OFF
In busy of keyscan (tKS), all of segment terminal (S0 to S7) output the voltage
of V2.or V LCD2
PD
Function
1
Power down mode. All of common and segment terminal set the voltage level
of VLCD2
0
Release the power down mode.
In busy of Power down mode, do not input any instructions except for release the power down mode.
The power down mode should be set before power off because any irregular display appearance at power off is
prevented.
The key scan operation when switching to the power down mode during key scan.
When switching to the power down mode during key scan operation, it stops key scan operation
in the period and after power down mode cancellation too.
After power down mode cancellation, the REQ signal maintains "H" when detects key-in signal
before switches to power down mode and REQ signal rises to"H".
However, the key scan operation becomes invalid data even if it reads key-in data because
it stoppd.The key data becomes to valid with the key scan by the next key scan of frame.
(k)Set DD/MK RAM Address
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D9
D8
D7
D6
D5
1
1
*
*
*
D4
D3
D2
D1
D0
AD4 AD3 AD2 AD1 AD0
The address data (DB 4 to DB 0) is written into the address counter (AC) by this instruction.
After this instruction execution, the data writing is performed into the addressed DD/MK RAM.
The RAM includes DD RAM and MK RAM, and these RAMs are shared by address as shown below.
DD RAM
MK RAM
RAM address
(00)H - (0D)H
(10)H - (1D)H
:
:
(l)Set CG RAM Address
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D9
D8
0
0
D7
D6
D5
D4
D3
D2
D1
D0
AC7 AC6 AC5 AC4 AC3 AC2 AC1 AC0
The CG RAM address set instruction is executed when the "H" level input to the AC terminal and the address is
written into DB 7 to DB 0 as shown above.
The address data (DB 7 to DB 0) is written into the address counter (AC) by this instruction.
After this instruction execution, the data writing is performed into the addressed RAM.
The RAM includes CG RAM address as shown below.
CG RAM
:
RAM address
(00)H - (FE)H
NJU6624C
(m)Write Data to CG, DD or MK RAM
By the execution of this instruction, the binary 8-bit data (A 7 to A0) are written into the DD RAM, and the binary 5bit data (A 4 to A0) are written into the CG or MK RAM. The selection of RAM is determined by the previous instruction. After this instruction execution, the address increment (+1) or decrement(-1) is performed automatically
according to the entry mode set. And the display shift is also executed according to the previous entry mode set.
However, the data in MK RAM (1C)H and (1D)H are not displayed, bat the automatic address increment is performed. And the display is not changed by the data written into MK RAM (1C)H and (1D)H
-Write Data to DD RAM
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
1
0
D9
D8
0
0
D9
D7
D6
D5
D4
D3
D2
D1
D0
DD7 DD6 DD5 DD4
DD3 DD2 DD1 DD0
D8
D7
D6
D5
D3
0
0
*
*
*
D9
D8
D7
D6
D5
D4
0
0
*
*
*
DC4
D9
D8
D7
D6
D5
D4
1
1
-Write Data to MK RAM
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D4
D2
D1
D0
DM4 DM3 DM2 DM1 DM0
-Write Data to CG RAM
D15 D14 D13 D12 D11 D10
Code
1
0
0
1
0
0
D3
D2
D1
D0
DC3 DC2 DC1 DC0
(n)Read Data Key
D15 D14 D13 D12 D11 D10
Code
1
0
1
0
0
1
KL3 KL2 KL1 KL0
D3
0
D2
D1
D0
KH2 KH1 KH0
Read data key is a instruction for data reading out of keyscan. However, the bit 8 to 15 are input data. After this 8bit data were input, the operation change to output from input at the falling edge of 8th SCK clock.
NJU6624C
(4-2)Initialization by instruction
If the power supply conditions for the correct operation of the internal reset circuits are not satisfied, the
NJU6624C must be initialized by the instruction.
Initialized.
No display appears.
Power On
Wait more than 1.5ms after
V DD rises to 2.4V
D13 D12
D7
D6
1
*
*
*
0
0
*
*
0
1
1
*
1
1
0
0
D11 D10
D9 D8
D15
D14
Display OFF
MS1
MS0
0
0
1
0
0
Entry Mode Set
MS1
MS0
0
0
1
0
Set Static Port
MS1
MS0
0
0
1
Contrast Control
MS1
MS0
0
0
D5 D4
D3
D2
D1 D0
*
*
0
0
0
*
*
*
*
I/D
S
*
*
*
P3 P2 P1 P0
*
*
*
*
C3 C2 C1 C0
Set Display Mode
1
0
0
0
1
1
1
0
0
0
0
0
0
0
K
PD
Clear Display
1
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
Write data to the DD, CG or MK RAM and set
the Instruction
Note : When the Icon display function using, the system should be initialized by software initialization.
NJU6624C
(5)LCD display
(5-1)Bleeder Resistance
Each LCD driving voltage ( V1, V2, V3, V4 ) is LCD driving high voltage input to the VLCD1 terminal, generated by
the E.V.R. and high impedance bleeder resistance.
The bleeder resistance is set 1/4 bias suitable for 1/8 duty ratio.
The capacitor connected between VLCD2 and VSS is needed for stabilizing VLCD. The determination of the each
capacitance requires to operate with the LCD panel actually.
LCD Driving Voltage vs Duty Ratio
Power
Duty Ratio
1/8
supply
Bias
1/4
V LCD
VLCD2- VSS
VLCD is the maximum amplitude for LCD driving voltage.
Internal NJU6624
VLCD1
E.V.R.(16Step)
5K
VLCD
VLCD2
+
4K
V1
V1
+
4K
V2 (V3)
V2
VLCD
+
4K
V4
V4
+
4K
VSS
VSS
(5-2)Relation between oscillation frequency and LCD frame frequency
As the NJU6624C incorporate oscillation capacitor and resistor for CR oscillation, 145kHz oscillation is available
without any external components.
The LCD frame frequency example mentioned below is based on 145kHz oscillation.(1clock =6.90us)
224clocks
Icon
1
2
3
..............
7
Key
Icon
1
2
3
..............
VLCD
V1
V2
COM1
V4
VSS
1 frame
1 frame = 6.90(us) x 224 x 8 = 12.36(ms)
Frame frequency = 1 / 12.36(ms) = 79.50(Hz)
Key scan time = 220.70(uS)
1 frame
7
Key
Icon
1
2
NJU6624C
(6)Interface with MPU
The instructions and data are communicated with the serial port which is a clock synchronization type based on
16-bit per word.
The NJU6624C can be controlled by the serial data as shown below.
CS
SCL
DATA
The serial interface circuit operates in CS=L.
A communication unit consists of 16-bit data. The communication period is from the falling edge of CS terminal to
the rising edge. The inputs data and latched at rising edge of shift clock (SCL) and the first 16-bit data are fetched
into the NJU6624C at the rising edge of chip select (CS). The data over than 16 bits are ignored. If the input data
are less than 16 bits,they are ignored at the rising edge of "CS". Therefore,just 16 bits data should be input for the
correct communication. In case of RAM data input, the RAM address is changed automatically
as increment or decrement.
The data to input is MSB first. Although the output data is just only key scan, data bits D8 to D15 in the key data
read out instruction are input. After these 8-bit instruction is input, this serial data input terminal is changed to the
output terminal at the 8th falling edge of SCL clock.
The electrical short between the NJU6624C and external circuit must be prevented in the application.
NJU6624C
gABSOLUTE MAXIMUM RATINGS
P A R A M E T E R
(Ta=25oC)
SYMBOL
R A T I N G S
UNIT
Supply Voltage(1)
VDD
-0.3 to +7.0
V
Supply Voltage(2)
VLCD1
VSS+10.5 to VSS+0.3
V
V IN
-0.3 to VDD+0.3
V
Operating Temperature
Topr
-40 to +85
o
C
Storage Temperature
Tstg
-55 to +125
o
C
Input Voltage
Power Dissipation
PD
NOTE
VLCD1 Terminal
mW
500
Note 1 : If the LSI are used on condition above the absolute maximum ratings, the LSI may be destroyed.
Using the LSI within electrical characteristics is strongly recommended for normal operation. Use beyond
the electric characteristics conditions will cause mal function and poor reliability.
Note 2 : Decoupling capacitor should be connected between VDD and VSS due to the stabilized operation for the
Voltage converter.
Note 3 : All voltage values are specified as VSS = 0V
The relation : VLCD1≥ VLCD2 > VDD> VSS , VSS=0V must be maintained.
gELECTRICAL CHARACTERISTICS
PARAMETER
Input Voltage
Input Voltage
Output Voltage
(VDD=4.5V to 5.5V,Ta=-40 to +80oC)
MIN.
TYP.
MAX.
UNIT
NOTE
VIH1
0.8VDD
-
VDD
V
4
VIL1
VSS
-
0.2VDD
V
4
VIH2
0.8VDD
-
VLCD1
V
5
VIL2
VSS
-
0.2VDD
V
5
SYMBOL
CONDITIONS
VOH
-IOH=2mA,VDD=5V
4.0
-
-
V
6
VOL
IOL=2mA,VDD=5V
-
-
0.5
V
6
Driver On-resist.(COM)
RCOM
+Id=1uA(COM Terminal)
Vo=VLCD,VSS,V1,V4
-
-
40
KΩ
8
Driver On-resist.(SEG)
RSEG
+Id=1uA(SEG Terminal)
Vo=VLCD,VSS,V2
-
-
40
KΩ
8
Pull-up MOS Current 1
-Ip1
VDD=5V
5
25
50
uA
5
Pull-up MOS Current 2
-Ip2
VDD=5V
10
25
50
uA
5
Input Leakage Current
ILI
-1.0
-
1.0
uA
10
-
-
500
uA
7
-
7
10
uA
7
5.8
6.0
6.2
V
3.8
4.0
4.2
V
1.8
2.0
2.2
V
11.2
16.0
20.8
KΩ
Operating Current
VDD=5V fosc=145KHz
IDD1 Ta=25oC, Display,
keyscanON
IDD2
V1
Bleeder LCD Driving
resistan- Voltage
ce
circuit
Bleeder
resistance
VIN=0 to VDD
V2
V4
VDD=5V, Ta=25oC
stand-by mode
VLCD1-VSS=8V,Ta=25 oC
E.V.R. value "1111"
COM/SEG terminal
o
RB
VLCD1-VSS=8V,Ta=25 C
E.V.R. value "1111"
fosc
VDD=5V,Ta=25o C
72
145
218
KHz
LCD Display Voltage
VLCD1 VLCD1 Terminal,VSS=0V
VDD
-
10.0
V
VCD1 Current
ILCD1 VLCD1-VSS=8V
1
mA
Oscillation Frequency
9
NJU6624C
Note 4 : Apply to the OSC1, SCL, DATA, CS, RESET Terminals.
Note 5 : “Pull-up MOS Current 1” : Apply to the DATA Terminals.
“Pull-up MOS Current 2” and “Input Voltage 2” : Apply to the K0 to K3 Terminals.
Note 6 : Apply to the P0 to P3, REQ, DATA Terminals.
Note 7 : If the input level is medium, current consumption will increase due to the penetration current. Therefore,
the input level must be fixed to "H" or "L".
-Operating Current Measurement Circuit
5V
A
NJU6624
VDD
VSS
Note 8 : RCOM and RCOM are the resistance values between power supply terminals (V SS, VLCD2 or V1,V2,V4) and
each common terminal (COM1 to COM7/COMMK) and supply voltage (V SS, VLCD2 or V1,V2,V4) and each
segment terminal (SEG1 to SEG70) respectively, and measured when the current Id is flown on every
common and segment terminals at a same time.
Note 9 : Apply to the output voltage from each COM and SEG are less than + 0.15V against the LCD driving
constant voltage (V DD, VLCD1) at no load condition.
Note 10: Apply to the SCL,CS,RESET Terminals.
NJU6624C
gBus timing characteristics
(V DD=4.5V to 5.5V, VLCD1=VSS+8.0V, Ta=25oC)
-Serial Interface Sequence
PARAMETER
SYMBOL
MIN.
MAX.
tCYCE
1
-
us
tSC
300
-
ns
Chip select pulse width
PW CS
100
-
us
Chip select set up time
tCSU
300
-
Chip select hold time 1
tCH1
300
-
ns
Serial input data set up time
tSISU
300
-
ns
Serial input data hold time
tSIH
300
-
ns
Key data output delay time
tKDD
-
300
ns
Data port direction change time
from input to output
tSRWD
-
300
ns
Data port direction change time
from output to input
tCRWD
-
300
ns
tCH2
1
-
us
Serial clock cycle time
Serial clock width
CONDITION
UNIT
fig.1
ns
fig.2
Chip select hold time 2
tCSU
CS
PWCS
tSC
tCYCE
SCL
tSISU
tCH
tSC
tSIH
DATA
Input data sequence
tCH2
CS
8
9
10
15
16
SCL
tKDD
DATA
Input
Output
Output
tSRWD
Output
Output
Input
tCRWD
DATA I/O
change timing
Input data sequence
NJU6624C
-The Input Condition when using the Hardware Reset Circuit
tRSL
RESET
VIL
PARAMETER
SYMBOL
CONDITION
MIN
TYP
MAX
UNIT
Reset input "0" level width
tRSL
fOSC=145kHz
1.2
-
-
ms
-Power Supply Condition when using the internal initialization circuit (Ta=25oC)
PARAMETER
SYMBOL
CONDITION
MIN
TYP
MAX
UNIT
Power supply rise time
trDD
-
0.1
-
5
ms
Power supply OFF time
tOFF
-
1
-
-
ms
Since the internal initialization circuits will not operate normally unless the above conditions are met, in such a
case initialize by instruction. (Refer to initialization by the instruction)
trDD
tOFF
2.4V
VDD
0.2V
0.2V
0.2V
0.1ms <= trDD <= 5ms
tOFF >
= 1ms
-Keyscan timing
(fOSC=145kHz)
PARAMETER
SYMBOL
CONDITION
MIN
TYP
MAX
UNIT
Keyscan time
trDD
-
-
221
-
us
Keyscan palse width
tOFF
-
-
27.6
-
us
S0
S1
VLCD2/2
VLCD2/2
tKP
VLCD2/2
S7
tKS
NJU6624C
gLCD DRIVING WAVE FORM
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COMMK
SEG
1 2 3 4 5
Mark
1
2
3
...........
7
Key
Mark
Scan
1
2
3
.........
7
Key
Mark
Scan
1
2
VLCD
V1
COMMK V2
V4
VSS
COM1
VLCD
V1
V2
V4
VSS
COM2
VLCD
V1
V2
V4
VSS
.
.
.
COM8
VLCD
V1
V2
V4
VSS
SEG1
VLCD
V1
V2
V4
VSS
SEG2
VLCD
V1
V2
V4
VSS
.
.
.
.
is Keyscan wave form
NJU6624C
APPLICATION CIRCUITS
14-character 1-line Display Example
REQ
DATA
SCL
CS
RESET
MCU
VDD
VLCD1
+
+
+
+
+
COMMK
COM1
COM7
NJU6624C
VDD
VLCD1
VLCD2
V1
V2
V4
VSS
P3
SEG1
SEG70
P0
K3 K2 K1 K0 S7 S6 S5 S4 S3 S2 S1
LCD Panel
(14-character
1-line+Icon)
MEMO
[CAUTION]
The specifications on this databook are only
given for information , without any guarantee
as regards either mistakes or omissions. The
application circuits in this databook are
described only to show representative usages
of the product and not intended for the
guarantee or permission of any right including
the industrial rights.