196 124334 HT16C21
196 124334 HT16C21
196 124334 HT16C21
OP1
COM4/SEG0
COM7/SEG3
R
OP2
SEG19
VDD
LCD bias generator
R
8
R
OP3
Internal
voltage
adjustment
OP4
Rev. 1.00 3 November 22, 2011
HT16C21
Pin Assignment
24
23
22
21
20
19
18
17
16
15
14
13
1
2
3
4
5
6
7
8
9
10
11
12
VDD
SDA
SCL
VSS
COM0
COM1
COM2
COM3
COM4/SEG0
COM5/SEG1
COM6/SEG2
COM7/SEG3
SEG19/VLCD
SEG18
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG7
SEG6
SEG5
SEG4
16
15
14
13
12
11
10
9
1
2
3
4
5
6
7
8
VDD
SDA
SCL
VSS
COM0
COM1
COM2
COM3
SEG19/VLCD
SEG14
SEG13
SEG12
COM7/SEG3
COM6/SEG2
COM5/SEG1
COM4/SEG0
20
19
18
17
16
15
14
13
12
11
1
2
3
4
5
6
7
8
9
10
VDD
SDA
SCL
VSS
COM0
COM1
COM2
COM3
COM4/SEG0
COM5/SEG1
SEG19/VLCD
SEG18
SEG13
SEG12
SEG11
SEG10
SEG5
SEG4
COM7/SEG3
COM6/SEG2
28
27
1
2
26
25
24
23
22
21
20
19
18
17
16
15
3
4
5
6
7
8
9
10
11
12
13
14
VDD
SDA
SCL
VSS
COM0
COM1
COM2
COM3
COM4/SEG0
COM5/SEG1
COM6/SEG2
COM7/SEG3
SEG4
SEG5
SEG19/VLCD
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
HT16C21
24 SOP-A
HT16C21
28 SOP-A
HT16C21
16 NSOP-A
HT16C21
20 SOP-A
Rev. 1.00 4 November 22, 2011
HT16C21
Pad assignment for COB
2
N.C.
S
E
G
1
0
S
E
G
9
S
E
G
8
S
E
G
7
S
E
G
6
S
E
G
5
S
E
G
4
C
O
M
7
/
S
E
G
3
C
O
M
6
/
S
E
G
2
C
O
M
5
/
S
E
G
1
C
O
M
4
/
S
E
G
0
COM0
COM1
COM2
COM3
SEG14
SEG13
SEG12
SEG11
V
S
S
S
C
L
S
D
A
V
D
D
V
C
C
A
2
V
L
C
D
S
E
G
1
9
S
E
G
1
8
S
E
G
1
7
S
E
G
1
6
S
E
G
1
5
16 17
18
19
20
21
22 23 24 25 26 27 28 29 30 31 1
3
4
5
6
(0, 0)
7 8 9 10 11 12 13 14 15
Chip size: 1200 x 1846m
2
Note: 1. The IC substrate should be connected to VSS in the PCB layout artwork.
2. VDD (Pad29) and VCCA2 (Pad28) must be bonded together.
3. VLCD (Pad27) and SEG19 (Pad26) must be bonded together.
Pad Coordinates for COB
Unit: m
No Name X Y No Name X Y
1 VSS -423.6 819.9 17 SEG10 426.1 -825
2 N.C. -251.74 351.435 18 SEG11 502 279.599
3 COM0 -502 134.752 19 SEG12 502 364.599
4 COM1 -502 49.752 20 SEG13 502 449.599
5 COM2 -502 -35.248 21 SEG14 502 534.599
6 COM3 -502 -120.248 22 SEG15 426.4 819.9
7 COM4/SEG0 -426.4 -825 23 SEG16 341.4 819.9
8 COM5/SEG1 -341.4 -825 24 SEG17 256.4 819.9
9 COM6/SEG2 -256.4 -825 25 SEG18 171.4 819.9
10 COM7/SEG3 -171.4 -825 26 SEG19 86.4 819.9
11 SEG4 -83.9 -825 27 VLCD 1.4 819.9
12 SEG5 1.1 -825 28 VCCA2 -83.6 819.9
13 SEG6 86.1 -825 29 VDD -168.6 819.9
14 SEG7 171.1 -825 30 SDA -253.6 819.9
15 SEG8 256.1 -825 31 SCL -338.6 819.9
16 SEG9 341.1 -825
Rev. 1.00 5 November 22, 2011
HT16C21
Pin Description
Pin Name Type Description
SDA I/O Serial data input/output for I
2
C interface
SCL I Serial clock input for I
2
C interface
VDD Positive power supply.
VSS Negative power supply, ground.
VLCD
One external resistor is connected between the VLCD pin and the VDD
pin to determine the bias voltage for the package with a VLCD pin.
Internal voltage adjustment function is disabled.
Internal voltage adjustment function can be used to adjust the VLCD
voltage. If the VLCD pin is used as voltage detection pin, an external
power supply should not be applied to the VLCD pin.
An external MCU can detect the voltage of the VLCD pin and program the
internal voltage adjustment for the packages with a VLCD pin.
COM0~COM3 O LCD common outputs.
COM4/SEG0~COM7/SEG3 O LCD common/segment multiplexed driver outputs
SEG4~SEG19 O LCD segment outputs.
Approximate Internal Connections
VDD
VSS
SCL, SDA (for schmit Trigger type)
Vselect-on
Vselect-off
COM0~COM7; SEG0~SEG19
Absolute Maximum Ratings
Supply voltage ......................................................................................................................VSS0.3V to VSS+6.5V
Input voltage ........................................................................................................................VSS0.3V to VDD+0.3V
Storage temperature .......................................................................................................................-55C to +150C
Operating temperature .....................................................................................................................-40C to +85C
Note: These are stress ratings only. Stresses exceeding the range specifed under "Absolute Maximum Ratings"
may cause substantial damage to the device. Functional operation of this device at other conditions beyond
those listed in the specifcation is not implied and prolonged exposure to extreme conditions may affect
device reliability.
Rev. 1.00 6 November 22, 2011
HT16C21
D.C. Characteristics
VSS = 0V; VDD = 2.4 to 5.5V; Ta =-40~85C
Symbol Parameter
Test Condition
Min. Typ. Max. Unit
VDD Condition
VDD Operating Voltage 2.4 5.5 V
VLCD Operating Voltage VDD V
IDD Operating Current
3V
No load, VLCD=VDD, 1/3bias,
fLCD=80Hz, LCD display on,
internal system oscillator on,
DA0~DA3 are set to "0000"
18 27 A
5V 25 40 A
IDD1 Operating Current
3V
No load, VLCD=VDD, 1/3bias
fLCD=80Hz, LCD display off,
internal system oscillator on,
DA0~DA3 are set to "0000"
2 5 A
5V 4 10 A
ISTB Standby Current
3V
No load, VLCD=VDD,
LCD display off,
internal system oscillator off
1 A
5V 2 A
VIH Input High Voltage SDA ,SCL 0.7VDD VDD V
VIL Input Low Voltage SDA, SCL 0 0.3VDD V
IIL Input Leakage Current VIN = VSS or VDD -1 1 A
IOL Low Level Output Current
3V
VOL=0.4V
SDA
3 mA
5V 6 mA
IOL1 LCD COM Sink Current
3V VLCD=3V, VOL=0.3V 250 400 A
5V VLCD=5V, VOL=0.5V 500 800 A
IOH1 LCD COM Source Current
3V VLCD=3V, VOH=2.7V -140 -230 A
5V VLCD=5V, VOH=4.5V -300 -500 A
IOL2 LCD SEG Sink Current
3V VLCD=3V, VOL=0.3V 250 400 A
5V VLCD=5V, VOL=0.5V 500 800 A
IOH2 LCD SEG Source Current
3V VLCD=3V, VOH=2.7V -140 -230 A
5V VLCD=5V, VOH=4.5V -300 -500 A
Rev. 1.00 7 November 22, 2011
HT16C21
A.C. Characteristics
VSS = 0V; VDD = 2.4 to 5.5V; Ta =-40~85C
Symbol Parameter
Test Condition
Min. Typ. Max. Unit
VDD Condition
fLCD1 LCD Frame Frequency 4V 1/4duty, Ta =25C 72 80 88 Hz
fLCD2 LCD Frame Frequency 4V 1/4duty, Ta =25C 144 160 176 Hz
fLCD3 LCD Frame Frequency 4V 1/4duty, Ta=- 40 to +85C 52 80 124 Hz
fLCD4 LCD Frame Frequency 4V 1/4duty, Ta=-40 to +85C 104 160 248 Hz
tOFF VDD Off Times VDD drop down to 0V 20 ms
tSR VDD Slew Rate 0.05 V/ms
Note: 1. If the conditions of Power on Reset timing are not satisfed during the power ON/OFF sequence, the
internal Power on Reset (POR) circuit will not operate normally.
2. If the VDD voltage drops below the minimum voltage of operating voltage spec. during operating, the
Power on Reset timing conditions must also be satisfed. That is, the VDD voltage must drop to 0V and
remain at 0V for 20ms (min.) before rising to the normal operating voltage.
A.C. Characteristics I
2
C Interface
Symbol Parameter Condition
VDD=2.4V to 5.5V VDD=3.0V to 5.5V
Unit
Min. Max. Min. Max.
fSCL Clock Frequency 100 400 kHz
tBUF Bus Free Time
Time in which the bus
must be free before a new
transmission can start
4.7 1.3 s
tHD: STA Start Condition Hold Time
After this period, the frst
clock pulse is generated
4 0.6 s
tLOW SCL Low Time 4.7 1.3 s
tHIGH SCL High Time 4 0.6 s
tSU: STA Start Condition Setup Time
Only relevant for repeated
START condition
4.7 0.6 s
tHD: DAT Data Hold Time 0 0 ns
tSU: DAT Data Setup Time 250 100 ns
tR SDA and SCL Rise Time Note 1 0.3 s
tF SDA and SCL Fall Time Note 0.3 0.3 s
tSU: STO Stop Condition Set-up Time 4 0.6 s
tAA Output Valid from Clock 3.5 0.9 s
tSP
Input Filter Time Constant
(SDA and SCL Pins)
Noise suppression time 100 50 ns
Note: These parameters are periodically sampled but not 100% tested.
Rev. 1.00 8 November 22, 2011
HT16C21
Timing Diagrams
I
2
C Timing
SDA
SCL
tf
tHD:STA
tLOW tr
tHD:DAT
tSU:DAT
tHIGH tSU:STA
tHD:STA
S
Sr
tSP
tSU:STO
P
tBUF
S
tAA
SDA
OUT
Reset Timing
Rev. 1.00 9 November 22, 2011
HT16C21
Functional Description
Power-On Reset
When the power is applied, the device is initialized by an internal power-on reset circuit. The status of the internal
circuits after initialization is as follows:
All common/segment outputs are set to VLCD.
The drive mode 1/4 duty output and 1/3 bias is selected.
The System Oscillator and the LCD bias generator are off state.
LCD Display is off state.
Internal voltage adjustment function is enabled.
The Segment / VLCD shared pin is set as the Segment pin.
Detection switch for the VLCD pin is disabled.
Frame Frequency is set to 80Hz.
Blinking function is switched off.
Data transfers on the I
2
C interface should be avoided for 1 ms following power-on to allow completion of the reset
action.
Display Memory RAM Structure
The display RAM is static 16 x 8-bits RAM which stores the LCD data. Logic 1 in the RAM bit-map indicates
the on state of the corresponding LCD segment; similarly, logic 0 indicates the off state.
The contents of the RAM data are directly mapped to the LCD data. The frst RAM column corresponds to the
segments operated with respect to COM0. In multiplexed LCD applications the segment data of the second, third
and fourth column of the display RAM are time-multiplexed with COM1, COM2 and COM3 respectively. The
following is a mapping from the RAM data to the LCD pattern:
Output COM3 COM2 COM1 COM0 Output COM3 COM2 COM1 COM0 Address
SEG1 SEG0 00H
SEG3 SEG2 01H
SEG5 SEG4 02H
SEG7 SEG6 03H
SEG9 SEG8 04H
SEG11 SEG10 05H
SEG13 SEG12 06H
SEG15 SEG14 07H
SEG17 SEG16 08H
SEG19 SEG18 09H
D7 D6 D5 D4 D3 D2 D1 D0 Data
RAM mapping of 20x4 display mode
Rev. 1.00 10 November 22, 2011
HT16C21
Output
COM7/
SEG3
COM6/
SEG2
COM5/
SEG1
COM4/
SEG0
COM3 COM2 COM1 COM0 address
SEG4 00H
SEG5 01H
SEG6 02H
SEG7 03H
SEG8 04H
SEG9 05H
SEG10 06H
SEG11 07H
SEG12 08H
SEG13 09H
SEG14 0AH
SEG15 0BH
SEG16 0CH
SEG17 0DH
SEG18 0EH
SEG19 0FH
D7 D6 D5 D4 D3 D2 D1 D0 Data
RAM mapping of 16x8 display mode
D0
MSB LSB
D1 D2 D3 D4 D5 D6 D7 LCD
LED0 LED1 LED2 LED3 LED4 LED5 LED6 LED7 LED
Display data transfer format for I
2
C interface
System Oscillator
The timing for the internal logic and the LCD drive signals are generated by an internal oscillator. The System
Clock frequency (fSYS) determines the LCD frame frequency. During initial system power on the System Oscillator
will be in the stop state.
LCD Bias Generator
The full-scale LCD voltage (VOP) is obtained from (VLCD VSS). The LCD voltage may be temperature
compensated externally through the Voltage supply to the VLCD pin.
Fractional LCD biasing voltages, known as 1/3 or 1/4 bias voltage, are obtained from an internal voltage divider of
four series resistors connected between VLCD and VSS. The centre resistor can be switched out of circuits to provide
a 1/3bias voltage level confguration.
Rev. 1.00 11 November 22, 2011
HT16C21
LCD Drive Mode Waveforms
When the LCD drive mode is selected as 1/4 duty and 1/3 bias, the waveform and LCD display is shown as
follows:
State1
(on)
State1
(on)
SEG n+2
SEG n+2
SEG n
SEG n
COM0
COM0
COM1
COM1
State2
(off)
State2
(off)
LCD segment
LCD segment
COM2
COM2
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
SEG n+3
SEG n+3
COM3
COM3
SEG n+1
SEG n+1
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
VLCD
VLCD
VSS
VSS
VLCD- Vop/3
VLCD- Vop/3
VLCD- 2Vop/3
VLCD- 2Vop/3
tLCD
Waveforms for 1/4 duty drive mode with 1/3 bias (VOP = VLCD-VSS)
Note: tLCD = 1/fLCD
Rev. 1.00 12 November 22, 2011
HT16C21
When the LCD drive mode is selected as 1/8 duty and 1/4bias, the waveform and LCD display is shown as
follows:
COM0
COM0
State1
(on)
State1
(on)
State2
(off)
State2
(off)
LCD segment
LCD segment
tLCD
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM1
COM1
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM2
COM2
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM3
COM3
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM4
COM4
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM5
COM5
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM6
COM6
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
COM7
COM7
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
SEG n
SEG n
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
SEG n+1
SEG n+1
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
SEG n+2
SEG n+2
VLCD
VLCD
VSS
VSS
VLCD- Vop/4
VLCD- Vop/4
VLCD- 2Vop/4
VLCD- 2Vop/4
VLCD- 3Vop/4
VLCD- 3Vop/4
SEG n+3
SEG n+3
VLCD
VLCD
Waveforms for 1/8 duty drive mode with1/4 bias (VOP = VLCDVSS)
Note: tLCD = 1/fLCD
Rev. 1.00 13 November 22, 2011
HT16C21
Segment Driver Outputs
The LCD drive section includes 20 segment outputs SEG0 ~ SEG19 or 16 segment outputs SEG4 ~ SEG19 which
should be connected directly to the LCD panel. The segment output signals are generated in accordance with the
multiplexed column signals and with the data resident in the display latch. The unused segment outputs should be
left open-circuit when less than 20 or 16 segment outputs are required.
Column Driver Outputs
The LCD drive section includes 4 column outputs COM0~COM3 or 8 column outputs COM0~COM7 which
should be connected directly to the LCD panel. The column output signals are generated in accordance with
the selected LCD drive mode. The unused column outputs should be left open-circuit if less than 4 or 8 column
outputs are required.
Address Pointer
The addressing mechanism for the display RAM is implemented using the address pointer. This allows the loading
of an individual display data byte, or a series of display data bytes, into any location of the display RAM. The
sequence commences with the initialization of the address pointer by the Address pointer command.
Blinker Function
The device contains versatile blinking capabilities. The whole display can be blinked at frequencies selected by
the Blink command. The blinking frequency is a subdivided ratio of the system frequency. The ratio between
the system oscillator and blinking frequencies depends on the blinking mode in which the device is operating, as
shown in the following table:
Blinking Mode Operating Mode Ratio Blinking Frequency (Hz)
0 0 Blink off
1 fSYS / 16384Hz 2
2 fSYS / 32768Hz 1
3 fSYS / 65536Hz 0.5
Frame Frequency
The HT16C21 device provides two frame frequencies selected with Mode set command known as 80Hz and
160Hz respectively.
Rev. 1.00 14 November 22, 2011
HT16C21
Internal VLCD Voltage Adjustment
The internal VLCD adjustment contains four resistors in series and a 4-bit programmable analog switch which
can provide sixteen voltage adjustment options using the VLCD voltage adjustment command.
The internal VLCD adjustment structure is shown in the diagram:
R
LCD Bias
generator
VLCD pin
R
R
R
IVA
VDD
The relationship between the programmable 4-bit analog switch and the VLCD output voltage is shown in the
table:
DA3~DA0
Bias
1/3 1/4 Note
00H 1.000*VDD 1.000*VDD Default value
01H 0.944*VDD 0.957*VDD
02H 0.894*VDD 0.918*VDD
03H 0.849*VDD 0.882*VDD
04H 0.808*VDD 0.849*VDD
05H 0.771*VDD 0.818*VDD
06H 0.738*VDD 0.789*VDD
07H 0.707*VDD 0.763*VDD
08H 0.678*VDD 0.738*VDD
09H 0.652*VDD 0.714*VDD
0AH 0.628*VDD 0.692*VDD
0BH 0.605*VDD 0.672*VDD
0CH 0.584*VDD 0.652*VDD
0DH 0.565*VDD 0.634*VDD
0EH 0.547*VDD 0.616*VDD
0FH 0.529*VDD 0.600*VDD
Rev. 1.00 15 November 22, 2011
HT16C21
I
2
C Serial Interface
I
2
C Operation
The device supports I
2
C serial interface. The I2C interface is for bidirectional, two-line communication between
different ICs or modules. The two lines are a serial data line, SDA, and a serial clock line, SCL. Both lines are
connected to the positive supply via pull-up resistors with a typical value of 4.7K. When the I
2
C interface is
free, both lines are high. Devices connected to the I
2
C interface must have open-drain or open-collector outputs to
implement a wired-or function. Data transfer is initiated only when the I
2
C interface is not busy.
Data Validity
The data on the SDA line must be stable during the high period of the serial clock. The high or low state of the
data line can only change when the clock signal on the SCL line is Low as shown in the diagram.
SDA
SCL
Data line stable;
Data valid
Change of data
allowed
START and STOP Conditions
A high to low transition on the SDA line while SCL is high defnes a START condition.
A low to high transition on the SDA line while SCL is high defnes a STOP condition.
START and STOP conditions are always generated by the master. The I
2
C interface is considered to be busy
after the START condition. The I2C interface is considered to be free again a certain time after the STOP
condition.
The I
2
C interface stays busy if a repeated START (Sr) is generated instead of a STOP condition. In some
respects, the START(S) and repeated START (Sr) conditions are functionally identical.
P S
SDA
SCL
SDA
SCL
START condition STOP condition
Byte Format
Every byte put on the SDA line must be 8-bit long. The number of bytes that can be transmitted per transfer is
unrestricted. Each byte has to be followed by an acknowledge bit. Data is transferred with the most signifcant bit,
MSB, frst.
S
or
Sr
P
or
Sr
SDA
SCL
1 2 7 8 9
ACK
1 2 3-8 9
ACK
P
Sr
Rev. 1.00 16 November 22, 2011
HT16C21
Acknowledge
Each bytes of eight bits is followed by one acknowledge bit. This acknowledge bit is a low level placed on the
I
2
C interface by the receiver. The master generates an extra acknowledge related clock pulse.
A slave receiver which is addressed must generate an acknowledge, ACK, after the reception of each byte.
The device that acknowledges must pull down the SDA line during the acknowledge clock pulse so that it
remains stable low during the high period of this clock pulse.
A master receiver must signal an end of data to the slave by generating a not-acknowledge, NACK, bit on the
last byte that has been clocked out of the slave. In this case, the master receiver must leave the data line high
during the 9th pulse to not acknowledge. The master will generate a STOP or repeated START condition.
S
1 2 7 8 9
clock pulse for
acknowledgement
Data Output
by Transmitter
Data Outptu
by Receiver
SCL From
Master
acknowledge
not acknowledge
START
condition
Slave Addressing
The slave address byte is the frst byte received following the START condition form the master device. The
frst seven bits of the frst byte make up the slave address. The eighth bit defnes a read or write operation to be
performed. When the R/W bit is 1, then a read operation is selected. A 0 selects a write operation.
The HT16C21 address bits are 0111000. When an address byte is sent, the device compares the frst seven
bits after the START condition. If they match, the device outputs an Acknowledge on the SDA line.
Slave Address
0 1 1 1 0 0 0 R/W
MSB LSB
Rev. 1.00 17 November 22, 2011
HT16C21
Write Operation
Byte Writes Operation
Command Byte
A Command Byte write operation requires a START condition, a slave address with an R/W bit, a command byte,
a command setting byte and a STOP condition for a command byte write operation.
Slave Address
ACK Write
Command byte
ACK
S 0 1 1 1 0 0 0 0
1
st
BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7
Command setting
ACK
P
2
nd
BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7
Command Byte Write Operation
Display RAM Single Data Byte
A display RAM data byte write operation requires a START condition, a slave address with an R/W bit, a
command byte, a valid Register Address byte, a Data byte and a STOP condition.
Slave Address
ACK Write
Command byte
ACK
S 0 1 1 1 0 0 0 0
Data byte
ACK
P D7 D6 D5 D4 D3 D2 D1 D0
Register Address byte
ACK
2
nd
1
st
BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7
Display RAM Single Data Byte Write Operation
Display RAM Page Write Operation
After a START condition the slave address with the R/W bit is placed on the I
2
C interface followed with a
command byte and the specifed display RAM Register Address of which the contents are written to the internal
address pointer. The data to be written to the memory will be transmitted next and then the internal address pointer
will be incremented by 1 to indicate the next memory address location after the reception of an acknowledge clock
pulse. After the internal address point reaches the maximum memory address, which is 09H for 1/4 duty drive
mode or 0FH for 1/8 duty drive mode, the address pointer will be reset to 00H.
Slave Address
ACK
Write
ACK
S 0 1 1 1 0 0 0 0
ACK
2
nd
ACK
Data byte
P D7 D6 D5 D4 D3 D2 D1 D0
N
th
data
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
2
nd
data
ACK ACK
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
1
st
data
ACK
Register Address byte Command byte
1
st
BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7
N Bytes Display RAM Data Write Operation
Rev. 1.00 18 November 22, 2011
HT16C21
Display RAM Read Operation
In this mode, the master reads the HT16C21 data after setting the slave address. Following the R/W
bit (=0)
is an acknowledge bit, a command byte and the register address byte which is written to the internal address
pointer. After the start address of the Read Operation has been confgured, another START condition and the
slave address transferred on the I
2
C interface followed by the R/W bit (=1). Then the MSB of the data which
was addressed is transmitted frst on the I
2
C interface. The address pointer is only incremented by 1 after the
reception of an acknowledge clock. That means that if the device is confgured to transmit the data at the
address of AN+1, the master will read and acknowledge the transferred new data byte and the address pointer is
incremented to AN+2. After the internal address pointer reaches the maximum memory address, which is 09H
for 1/4 duty drive mode or 0FH for 1/8 duty drive mode, the address pointer will be reset to 00H.
This cycle of reading consecutive addresses will continue until the master sends a STOP condition.
ACK
Write
ACK
P
Slave Address
S 0 1 1 1 0 0 0 0
Data byte
NACK
D7 D6 D5 D4 D3 D2 D1 D0
1
st
data
Data byte
ACK
P D7 D6 D5 D4 D3 D2 D1 D0
N
th
data
Data byte
D7 D6 D5 D4 D3 D2 D1 D0
2
nd
data
ACK ACK
ACK
Device Address
Read
S 0 1 1 1 0 0 0 1
ACK
Register Address byte Command byte
1
st
2
nd
BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7 BIT0 BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 BIT7
Rev. 1.00 19 November 22, 2011
HT16C21
Command Summary
Display Data Input Command
This command sends data from MCU to memory MAP of the HT16C21 device.
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
Display data input/
output command
1
st
1 0 0 0 0 0 0 0 W
Address pointer 2
nd
X X X X A3 A2 A1 A0
Display data
start address
of memory
map
W 00H
Note:
Power on status: The address is set to 00H.
If the programmed command is not defned, the function will not be affected.
For 1/4 duty drive mode after reaching the memory location 09H, the pointer will reset to 00H.
For 1/8 duty drive mode after reaching the memory location 0FH, the pointer will reset to 00H.
Drive Mode Command
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
Driver mode setting
command
1
st
1 0 0 0 0 0 1 0 W
Duty and bias setting 2
nd
X X X X X X Duty Bias W 00H
Note:
Bit
Duty Bias
Duty Bias
0 0 1/4duty 1/3bias
0 1 1/4duty 1/4bias
1 0 1/8duty 1/3bias
1 1 1/8duty 1/4bias
Power on status: The drive mode 1/4 duty output and 1/3 bias is selected.
If the programmed command is not defned, the function will not be affected.
System Mode Command
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
System mode setting
command
1
st
1 0 0 0 0 1 0 0 W
System oscillator and
display on/off setting
2
nd
X X X X X X S E W 00H
Note:
Bit
Internal System Oscillator LCD Display
S E
0 X off off
1 0 on off
1 1 on on
Power on status: Display off and disable the internal system oscillator.
If the programmed command is not defned, the function will not be affected.
Rev. 1.00 20 November 22, 2011
HT16C21
Frame Frequency Command
This command selects the frame frequency.
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
Frame frequency
command
1
st
1 0 0 0 0 1 1 0 W
Frame frequency
setting
2
nd
X X X X X X X F W 00H
Note:
Bit
Frame Frequency
F
0 80Hz
1 160Hz
Power on status: Frame frequency is set to 80Hz.
If the programmed command is not defned, the function will not be affected.
Blinking Frequency Command
This command defnes the blinking frequency of the display modes.
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
Blinking Frequen-
cy command
1
st
1 0 0 0 1 0 0 0 W
Blinking
Frequency setting
2
nd
X X X X X X BK1 BK0 W 00H
Note:
Bit
Blinking Frequency
BK1 BK0
0 0 Blinking off
0 1 2Hz
1 0 1Hz
1 1 0.5Hz
Power on status: Blinking function is switched off.
If the programmed command is not defned, the function will not be affected.
Rev. 1.00 21 November 22, 2011
HT16C21
Internal Voltage Adjustment (IVA) Setting Command
The internal voltage (VLCD) adjustment can provide sixteen kinds of regulator voltage adjustment options by
setting the LCD operating voltage adjustment command.
Function Byte
(MSB)
Bit7
Bit6 Bit5 Bit4 Bit3 Bit2 Bit1
(LSB)
Bit0
Note R/W Def
Internal
Voltage
Adjustment
(IVA)
Setting
1
st
1 0 0 0 1 0 1 0 W
Internal
Voltage
Adjust
control
2
nd
X X DE VE DA3 DA2 DA1 DA0
The Segment/VLCD
shared pin can be
programmed via the
DE bit.
The VE bit is used
to enable or disable
the internal voltage
adjustment for bias
voltage.
The DA3~DA0 bits can
be used to adjust the
VLCD output voltage.
W 30H
Note:
Bit Segment /
VLCD Shared
Pin Select
Internal
Voltage
Adjustment
Note
DE VE
0 0 VLCD pin off
The Segment/VLCD pin is set as the VLCD pin.
Disable the internal voltage adjustment function
One external resister must be connected between
VLCD pin and VDD pin to determine the bias voltage,
and internal voltage follower (OP4) must be enabled by
setting the DA3~DA0 bits as the value other than 0000.
If the VLCD pin is connected to the VDD pin, the internal
voltage follower (OP4) must be disabled by setting the
DA3~DA0 bits as 0000.
0 1 VLCD pin on
The Segment/VLCD pin is set as the VLCD pin.
Enable the internal voltage adjustment function.
The VLCD pin is an output pin of which the voltage can
be detected by the external MCU host.
1 0 Segment pin off
The Segment/VLCD pin is set as the Segment pin.
Disable the internal voltage adjustment function.
The bias voltage is supplied by the internal VDD power.
The i nt ernal vol t age-f ol l ower (OP4) i s di sabl ed
automatically and DA3~DA0 dont care.
1 1 Segment pin on
The Segment/VLCD pin is set as the Segment pin.
Enable the internal voltage adjustment function.
Power on status: Disable the internal voltage adjustment and the Segment/VLCD pin is set as the Segment pin.
When the DA0~DA3 bits are set to 0000, the internal voltage-follower (OP4) is disabled. When the DA0~DA3
bits are set to other values except 0000, the internal voltage follower (OP4) is enabled.
If the programmed command is not defned, the function will not be affected.
Rev. 1.00 22 November 22, 2011
HT16C21
Operation Flow Chart
Access procedures are illustrated below by means of the fowcharts.
Initialization
Power On
Segment / VLCD shared pin setting
Internal LCD frame frequency setting
Internal LCD bias and duty setting
LCD blinking frequency setting
Next processing
Display Data Read/Write (Address Setting)
Start
Next processing
Display RAM data write
Address setting
Display on and enable internal system clock
Rev. 1.00 23 November 22, 2011
HT16C21
Segment / VLCD shared pin and internal voltage adjustment setting
Segment / VLCD share
pin setting
The bias voltage is supplied by
Programmable Internal voltage
adjustment
One external resistor must be connected
between to VLCD pin and VDD pin to
determine the bias voltage
Internal voltage
adjustment
enable ?
The external MCU
can detect the
voltage of VLCD pin
yes
no
Start
Set as Segment pin
The bias voltage is supplied by
internal VDD power
Next processing
Set as VLCD pin
Internal voltage
adjustment
enable ?
no
yes
Rev. 1.00 24 November 22, 2011
HT16C21
Application Circuit
Set as Segment pin
1/4 Duty
LCD panel
COM0~COM3
SEG0~SEG19
COM0~COM3
SEG0~SEG19
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
4.7K 4.7K
1/8 duty
LCD panel
COM0~COM7
SEG0~SEG15
COM0~COM7
SEG4~SEG19
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
4.7K 4.7K
Note: 1. If the internal VLCD voltage adjustment function is disabled, the bias voltage is supplied by internal VDD
power.
2. If the internal VLCD voltage adjustment function is enabled, the bias voltage is supplied by the internal
adjusted voltage selected by the DA3~DA0 bits.
Rev. 1.00 25 November 22, 2011
HT16C21
Set as VLCD pin
When the internal VLCD voltage adjustment function is disabled, an external resistor must be connected between
the VLCD and VDD pins to determine the supplied bias voltage.
1/4 duty
VR
LCD panel
COM0~COM3
SEG0~SEG18
COM0~COM3
SEG0~SEG18
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
VLCD
4.7K 4.7K
1/8 duty
VR
LCD panel
COM0~COM7
SEG0~SEG14
COM0~COM7
SEG4~SEG18
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
VLCD
4.7K 4.7K
Rev. 1.00 26 November 22, 2011
HT16C21
When the internal VLCD voltage adjustment function is enabled and the Segment/VLCD shared pin is set as
VLCD pin, the bias voltage is supplied by the internal adjusted voltage, derived from the VDD voltage, determined
by the DA3~DA0 bits and the VLCD pin is used as an output pin of which the voltage is detected by the external
MCU host.
1/4 duty
LCD panel
COM0~COM3
SEG0~SEG18
COM0~COM3
SEG0~SEG18
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
VLCD
4.7K 4.7K
1/8 duty
LCD panel
COM0~COM7
SEG0~SEG14
COM0~COM7
SEG4~SEG18
SCL
SDA
VDD
VSS
HOST
VDD
VSS
HT16C21
VDD
VSS
0.1uF
VLCD
4.7K 4.7K
Rev. 1.00 27 November 22, 2011
HT16C21
Package Information
Note that the package information provided here is for consultation purposes only. As this information may be
updated at regular intervals users are reminded to consult the Holtek website (http://www.holtek.com.tw/english/
literature/package.pdf) for the latest version of the package information.
20-pin SOP (300mil) Outline Dimensions
20
1
1 1
1 0
A B
C
D
E F
C'
G
H
=
MS-013
Symbol
Dimensions in inch
Min. Nom. Max.
A 0.393 0.419
B 0.256 0.300
C 0.012 0.020
C 0.496 0.512
D 0.104
E 0.050
F 0.004 0.012
G 0.016 0.050
H 0.008 0.013
0 8
Symbol
Dimensions in mm
Min. Nom. Max.
A 9.98 10.64
B 6.50 7.62
C 0.30 0.51
C 12.60 13.00
D 2.64
E 1.27
F 0.10 0.30
G 0.41 1.27
H 0.20 0.33
0 8
Rev. 1.00 28 November 22, 2011
HT16C21
24-pin SOP (300mil) Outline Dimensions
24
1
1 3
1 2
A B
C
D
E F
C'
G
H
=
MS-013
Symbol
Dimensions in inch
Min. Nom. Max.
A 0.393 0.419
B 0.256 0.300
C 0.012 0.020
C 0.598 0.613
D 0.104
E 0.050
F 0.004 0.012
G 0.016 0.050
H 0.008 0.013
0 8
Symbol
Dimensions in mm
Min. Nom. Max.
A 9.98 10.64
B 6.50 7.62
C 0.30 0.51
C 15.19 15.57
D 2.64
E 1.27
F 0.10 0.30
G 0.41 1.27
H 0.20 0.33
0 8
Rev. 1.00 29 November 22, 2011
HT16C21
28-pin SOP (300mil) Outline Dimensions
28
1
1 5
1 4
A B
C
D
F
C'
G
H
=
E
MS-013
Symbol
Dimensions in inch
Min. Nom. Max.
A 0.393 0.419
B 0.256 0.300
C 0.012 0.020
C 0.697 0.713
D 0.104
E 0.050
F 0.004 0.012
G 0.016 0.050
H 0.008 0.013
0 8
Symbol
Dimensions in mm
Min. Nom. Max.
A 9.98 10.64
B 6.50 7.62
C 0.30 0.51
C 17.70 18.11
D 2.64
E 1.27
F 0.10 0.30
G 0.41 1.27
H 0.20 0.33
0 8
Rev. 1.00 30 November 22, 2011
HT16C21
16-pin NSOP (150mil) Outline Dimensions
16-pin NSOP (150mil) Outline Dimensions
MS-012
Symbol
Dimensions in inch
Min. Nom. Max.
A 0.228 0.244
B 0.150 0.157
C 0.012 0.020
C 0.386 0.402
D 0.069
E 0.050
F 0.004 0.010
G 0.016 0.050
H 0.007 0.010
a 0 8
Symbol
Dimensions in mm
Min. Nom. Max.
A 5.79 6.20
B 3.81 3.99
C 0.30 0.51
C 9.80 10.21
D 1.75
E 1.27
F 0.10 0.25
G 0.41 1.27
H 0.18 0.25
a 0 8
Package Information
1 June 1, 2010
1 6
1
9
8
=
A B
C
D
E
F
G
H
C'
MS-012
Symbol
Dimensions in inch
Min. Nom. Max.
A 0.228 0.244
B 0.150 0.157
C 0.012 0.020
C' 0.386 0.402
D 0.069
E 0.050
F 0.004 0.010
G 0.016 0.050
H 0.007 0.010
0 8
Symbol
Dimensions in mm
Min. Nom. Max.
A 5.79 6.20
B 3.81 3.99
C 0.30 0.51
C' 9.80 10.21
D 1.75
E 1.27
F 0.10 0.25
G 0.41 1.27
H 0.18 0.25
0 8
Rev. 1.00 31 November 22, 2011
HT16C21
Reel Dimensions
Product Tape and Reel Specifications
Reel Dimensions
SOP 28W (300mil)
Symbol Description Dimensions in mm
A Reel Outer Diameter 330.01.0
B Reel Inner Diameter 100.01.5
C Spindle Hole Diameter 13.0
+0.5/-0.2
D Key Slit Width 2.00.5
T1 Space Between Flange 24.8
+0.3/-0.2
T2 Reel Thickness 30.20.2
Package Information
2 April 1, 2010
) + *
6
6
,
SOP 20W, SOP 24W, SOP 28W (300mil)
Symbol Description Dimensions in mm
A Reel Outer Diameter 330.01.0
B Reel Inner Diameter 100.01.5
C Spindle Hole Diameter 13.0
+0.5/-0.2
D Key Slit Width 2.00.5
T1 Space Between Flange 24.8
+0.3/-0.2
T2 Reel Thickness 30.20.2
16-pin NSOP (150mil)
Symbol Description Dimensions in mm
A Reel Outer Diameter 330.01.0
B Reel Inner Diameter 100.01.5
C Spindle Hole Diameter 13.0
+0.5/-0.2
D Key Slit Width 2.00.5
T1 Space Between Flange 16.8
+0.3/-0.2
T2 Reel Thickness 22.20.2
Rev. 1.00 32 November 22, 2011
HT16C21
Carrier Tape Dimensions
Carrier Tape Dimensions
SOP 28W (300mil)
Symbol Description Dimensions in mm
W Carrier Tape Width 24.00.3
P Cavity Pitch 12.00.1
E Perforation Position 1.750.10
F Cavity to Perforation (Width Direction) 11.50.1
D Perforation Diameter 1.5
+0.1/-0.0
D1 Cavity Hole Diameter 1.50
+0.25/-0.00
P0 Perforation Pitch 4.00.1
P1 Cavity to Perforation (Length Direction) 2.00.1
A0 Cavity Length 10.850.10
B0 Cavity Width 18.340.10
K0 Cavity Depth 2.970.10
t Carrier Tape Thickness 0.350.01
C Cover Tape Width 21.30.1
Package Information
3 April 1, 2010
P D1
W
P1 P0
D
E
F
t
K0
B0
A0
C
C package pi n 1 and the reel hol es
are l ocated on the same si de.
Reel Hol e
SOP 20W (300mil)
Symbol Description Dimensions in mm
W Carrier Tape Width 24.0
+0.3/-0.1
P Cavity Pitch 12.00.1
E Perforation Position 1.750.10
F Cavity to Perforation (Width Direction) 11.50.1
D Perforation Diameter 1.5
+0.1/-0.0
D1 Cavity Hole Diameter 1.50
+0.25/-0.00
P0 Perforation Pitch 4.00.1
P1 Cavity to Perforation (Length Direction) 2.00.1
A0 Cavity Length 10.80.1
B0 Cavity Width 13.30.1
K0 Cavity Depth 3.20.1
t Carrier Tape Thickness 0.300.05
C Cover Tape Width 21.30.1
SOP 24W (300mil)
Symbol Description Dimensions in mm
W Carrier Tape Width 24.0+0.3
P Cavity Pitch 12.00.1
E Perforation Position 1.750.1
F Cavity to Perforation (Width Direction) 11.50.1
D Perforation Diameter 1.55
+0.1/-0.00
D1 Cavity Hole Diameter 1.50
+0.25/-0.00
P0 Perforation Pitch 4.00.1
P1 Cavity to Perforation (Length Direction) 2.00.1
A0 Cavity Length 10.90.1
B0 Cavity Width 15.90.1
K0 Cavity Depth 3.10.1
t Carrier Tape Thickness 0.350.05
C Cover Tape Width 21.30.1
Rev. 1.00 33 November 22, 2011
HT16C21
SOP 28W (300mil)
Symbol Description Dimensions in mm
W Carrier Tape Width 24.00.3
P Cavity Pitch 12.00.1
E Perforation Position 1.750.10
F Cavity to Perforation (Width Direction) 11.50.1
D Perforation Diameter 1.5
+0.1/-0.0
D1 Cavity Hole Diameter 1.50
+0.25/-0.00
P0 Perforation Pitch 4.00.1
P1 Cavity to Perforation (Length Direction) 2.00.1
A0 Cavity Length 10.850.10
B0 Cavity Width 18.340.10
K0 Cavity Depth 2.970.10
t Carrier Tape Thickness 0.350.01
C Cover Tape Width 21.30.1
16-pin NSOP (150mil)
Symbol Description Dimensions in mm
W Carrier Tape Width 16.00.3
P Cavity Pitch 8.00.1
E Perforation Position 1.750.10
F Cavity to Perforation (Width Direction) 7.50.1
D Perforation Diameter 1.55
+0.1/-0.0
D1 Cavity Hole Diameter 1.50
+0.25/-0.00
P0 Perforation Pitch 4.00.10
P1 Cavity to Perforation (Length Direction) 2.00.10
A0 Cavity Length 6.50.10
B0 Cavity Width 10.30.10
K0 Cavity Depth 2.10.10
t Carrier Tape Thickness 0.300.05
C Cover Tape Width 13.30.1
Rev. 1.00 34 November 22, 2011
HT16C21
Holtek Semiconductor Inc. (Headquarters)
No.3, Creation Rd. II, Science Park, Hsinchu, Taiwan
Tel: 886-3-563-1999
Fax: 886-3-563-1189
http://www.holtek.com.tw
Holtek Semiconductor Inc. (Taipei Sales Offce)
4F-2, No. 3-2, YuanQu St., Nankang Software Park, Taipei 115, Taiwan
Tel: 886-2-2655-7070
Fax: 886-2-2655-7373
Fax: 886-2-2655-7383 (International sales hotline)
Holtek Semiconductor Inc. (Shenzhen Sales Offce)
5F, Unit A, Productivity Building, No.5 Gaoxin M 2nd Road, Nanshan District, Shenzhen, China 518057
Tel: 86-755-8616-9908, 86-755-8616-9308
Fax: 86-755-8616-9722
Holtek Semiconductor (USA), Inc. (North America Sales Offce)
46729 Fremont Blvd., Fremont, CA 94538, USA
Tel: 1-510-252-9880
Fax: 1-510-252-9885
http://www.holtek.com
Copyright