18.18-bit operation, 1-line display using internal
reset
18.24-bit operation, 1-line display using internal
reset
18.38-bit operation, 2-line display
18.4I2C operation, 1-line display
18.5Initializing by instruction
19BONDING PAD LOCATIONS
20PACKAGE OUTLINE
21SOLDERING
22DEFINITIONS
23LIFE SUPPORT APPLICATIONS
24PURCHASE OF PHILIPS I2C COMPONENTS
1997 Apr 072
Page 3
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
1FEATURES
• Single chip LCD controller/driver
• 1 or 2-line display of up to 24 characters per line, or
2 or 4 lines of up to 12 characters per line
• 5 × 7 character format plus cursor; 5 × 8 for kana
(Japanese syllabary) and user defined symbols
• On-chip:
– generation of LCD supply voltage (external supply
also possible)
– generation of intermediate LCD bias voltages
– oscillator requires no external components (external
clock also possible)
• Display data RAM: 80 characters
• Character generator ROM: 240 characters
• Character generator RAM: 16 characters
• 4 or 8-bit parallel bus or 2-wire I2C-bus interface
• CMOS/TTL compatible
• 32 row, 60 column outputs
• MUX rates 1 : 32 and 1 : 16
• Uses common 11 code instruction set
• Logic supply voltage range, VDD− VSS: 2.5 to 6 V
• Display supply voltage range, VDD− V
: 3.5 to 9 V
LCD
• Low power consumption
• I2C-bus address: 011101 SA0.
2APPLICATIONS
• Telecom equipment
• Portable instruments
• Point-of-sale terminals.
3GENERAL DESCRIPTION
The PCF2116 family of LCD controller/drivers consists of
the PCF2116x, the PCF2114x and the PCF2116K.
The term ‘PCF2116’ is used to refer to all devices for
common information. Specific information is given in
separate paragraphs.
The ‘x’ in ‘PCF2116x’ and ‘PCF2114x’ represents a
specific letter code for a character set in the character
generator ROM (CGROM). The different character sets
currently available are specified by the letters A, C, and G
(see Figs 8 to 10). Other character sets are available on
request.
The PCF2116 is a low-power CMOS LCD controller and
driver, designed to drive a split screen dot matrix LCD
display of 1 or 2 lines by 24 characters or 2 or 4 lines by
12 characters with 5 × 8 dot format. All necessary
functions for the display are provided in a single chip,
including on-chip generation of LCD bias voltages,
resulting in a minimum of external components and lower
system power consumption. The chip contains a character
generator and displays alphanumeric and kana
(Japanese) characters. The PCF2116 interfaces to most
microcontrollers via a 4 or 8-bit bus or via the 2-wire
2
I
C-bus. To allow partial VDD shutdown the ESD protection
system of the SCL and SDA pins does not use a diode
connected to VDD.
The PCF2116K differs from the other members of the
family in that:
• V
LCD/VOP
generation is different (see Section 8.1)
• It is available with character set C only (see Fig.9).
4ORDERING INFORMATION
TYPE
NUMBER
(1)
NAMEDESCRIPTIONVERSION
PACKAGE
PCF2116xU/10−chip on flexible film carrier−
PCF2114xU/10−chip on flexible film carrier−
PCF2116xU/12−chip with bumps on flexible film carrier−
PCF2114xU/12−chip with bumps on flexible film carrier−
PCF2116xHZLQFP128 plastic low profile quad flat package; 128 leads; body 14 × 20 × 1.4 mmSOT425-1
Note
1. The letter ‘x’ in the type number represents the letter of the required built-in character set: A, C or G.
1997 Apr 073
Page 4
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
5BLOCK DIAGRAM
andbook, full pagewidth
V
LCD
V
0
V
DD
V
SS
T1
GENERATOR
93, 95, 97
GENERATOR
92
104, 106
109, 112
111
BIAS
VOLTAGE
V
LCD
6
8
DATA
REGISTER (DR)
C1 to C60
68, 65 to 38
35 to 5
60
COLUMN DRIVERS
60
DATA LATCHES
60
SHIFT REGISTER
5 x 12-bit
5
CURSOR + DATA CONTROL
5
CHARACTER
GENERATOR
RAM
(CGRAM)
16
CHARACTERS
8
DISPLAY DATA RAM
(DDRAM) 80 CHARACTERS
BUSY
FLAG
CHARACTER
GENERATOR
ROM
(CGROM)
240
CHARACTERS
7
ADDRESS
COUNTER (AC)
7
INSTRUCTION
DECODER
8
INSTRUCTION
REGISTER (IR)
R1 to R32
84 to 77, 115 to 122
76 to 69, 123 to 128,
1 and 4
32
ROW DRIVERS
32
SHIFT REGISTER
32-BIT
PCF2116
OSCILLATOR
TIMING
GENERATOR
7
DISPLAY
ADDRESS
COUNTER
POWER - ON
RESET
102
OSC
788
105, 103,
4
98, 96
DB0 to DB3 DB4 to DB7 E
94, 91,
89, 87
4
108110113
R/W
Fig.1 Block diagram (pin numbers for LQFP128 package).
1997 Apr 074
I/O BUFFER
RS
SCL
88
SDA
90
107
MGA797 - 1
SA0
Page 5
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
6PINNING
SYMBOLLQFP128FFC PADTYPEDESCRIPTION
R31127OLCD row driver output
n.c.2 and 3−−not connected
R32428OLCD row driver output
C60 to C305 to 3529 to 59OLCD column driver outputs 60 to 30
n.c.36 and 37−−not connected
C29 to C238 to 6560 to 87OLCD column driver outputs 29to2
n.c.66 and 67−−not connected
C16888OLCD column driver output 1
R24 to R1769 to 7689 to 96OLCD row driver outputs
R8 to R177 to 8497 to 104OLCD row driver outputs
n.c.85 and 86−−not connected
DB787105I/O1 bit of 8-bit bidirectional data bus
SCL88106II
DB689107I/O1 bit of 8-bit bidirectional data bus
SDA90108I/OI
DB591109I/O1 bit of 8-bit bidirectional data bus
V
V
0
LCD1
92110Icontrol input for V
93111I/OLCD supply voltage input/output 1
DB494112I/O1 bit of 8-bit bidirectional data bus
V
LCD2
95113I/OLCD supply voltage input/output 2
DB396114I/O1 bit of 8-bit bidirectional data bus
V
LCD3
97115I/OLCD supply voltage input/output 3
DB298116I/O1 bit of 8-bit bidirectional data bus
n.c.99 to 101−−not connected
OSC1021Ioscillator/external clock input
DB11032I/O1 bit of 8-bit bidirectional data bus
V
DD2
1043Psupply voltage 2
DB01054I/O1 bit of 8-bit bidirectional data bus
V
DD1
1065Psupply voltage 1
SA01076II
E1087Idata bus clock input (parallel control)
V
SS1
R/
W1109Iread/write input (parallel control)
1098Pground (logic) 1
T111110Itest pad (connect to V
V
SS2
11211Pground (logic) 2
RS11312Iregister select input (parallel control)
n.c.114−−not connected
R9 to R16115 to 12213 to 20OLCD row driver outputs
R25 to R30123 to 12821 to 26OLCD row driver outputs
RS selects the register to be accessed for read and write
when the device is controlled by the parallel interface.
RS = logic 0 selects the instruction register for write and
the Busy Flag and Address Counter for read. RS = logic 1
selects the data register for both read and write. There is
an internal pull-up on pin RS.
7.2R/
W: read/write (parallel control)
R/W selects either the read (R/W = logic 1) or write
(R/W = logic 0) operation when control is by the parallel
interface. There is an internal pull-up on this pin.
7.3E: data bus clock
The E pin is set HIGH to signal the start of a read or write
operation when the device is controlled by the parallel
interface. Data is clocked in or out of the chip on the
negative edge of the clock. Note that this pin must be tied
to logic 0 (V
) when I2C-bus control is used.
SS
7.4DB0 to DB7: data bus
The bidirectional, 3-state data bus transfers data between
the system controller and the PCF2116. DB7 may be used
as the Busy Flag, signalling that internal operations are not
yet completed. In 4-bit operations the 4 higher order lines
DB4 to DB7 are used; DB0 to DB3 must be left open
circuit. There is an internal pull-up on each of the data
lines. Note that these pins must be left open circuit when
2
I
C-bus control is used.
7.5C1 to C60: column driver outputs
These pins output the data for pairs of columns.
This arrangement permits optimized chip-on-glass (COG)
layout for 4-line by 12 characters.
7.6R1 to R32: row driver outputs
These pins output the row select waveforms to the left and
right halves of the display.
7.7V
: LCD power supply
LCD
Negative power supply for the liquid crystal display.
This may be generated on-chip or supplied externally.
7.8V
The input level at this pin determines the generated V
0
: V
LCD
control input
LCD
output voltage.
7.9OSC: oscillator
When the on-chip oscillator is used this pin must be
connected to V
. An external clock signal, if used, is input
DD
at this pin.
7.10SCL: serial clock line
Input for the I
2
C-bus clock signal.
7.11SDA: serial data line
Input/output for the I
2
C-bus data line.
7.12SA0: address pin
The hardware sub-address line is used to program the
device sub-address for 2 different PCF2116s on the same
2
I
C-bus.
7.13T1: test pad
Must be connected to V
. Not user accessible.
SS
8FUNCTIONAL DESCRIPTION (see Fig.1)
8.1LCD supply voltage generator, PCF2114x and
PCF2116x
The on-chip voltage generator is controlled by bit G of the
‘Function set’ instruction and V
.
0
V0 is a high-impedance input and draws no current from
the system power supply. Its range is between VSS and
VDD− 1 V. When V0 is connected to VDD the generator is
switched off and an external voltage must be supplied to
pin V
. This may be more negative than VSS.
LCD
When G = logic 1 the generator produces a negative
voltage at pin V
, controlled by the input voltage at
LCD
pin V0. The LCD operating voltage is given by the
relationship:
VOP= 1.8VDD− V
0
Where:
VOP=VDD− V
V
LCD=V0
When G = logic 0, the generated output voltage V
LCD
−(0.8VDD)
LCD
is
equal to V0 (between VSS and VDD). In this instance:
VOP=VDD− V
When V
LCD
decoupled to VDD with a suitable capacitor. VDD and V
0
is generated on-chip the V
pin should be
LCD
0
must be selected to limit the maximum value of VOPto 9 V.
Figure 3 shows the two generator control characteristics.
1997 Apr 077
Page 8
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
8.2LCD supply voltage generator, PCF2116K
In the PCF2116K version, V0 is connected through an
on-chip resistor (R0) to V
. Resistor R0 has a nominal
LCD
value of 1 MΩ and draws a typical current of 4 µA from the
pin V0. A constant voltage (equal to 1.34VDD) is always
present across R0.
The voltage range of the PCF2116K is between VSS and
VDD− 0.5 V (see Fig.4). When V0 is connected to VDD the
generator is switched off and an external voltage must be
supplied to pin V
. This may be more negative than VSS.
LCD
When G = logic 1 the generator produces a negative
voltage at pin V
, controlled by the input voltage at
LCD
pin V0. The LCD operating voltage is given by the
relationship:
VOP= 2.34VDD− V
0
Where:
VOP=VDD− V
V
LCD=V0
When G = logic 0, the generated output voltage V
LCD
−(1.34VDD)
LCD
is
equal to V0 (between VSS and VDD). In this instance:
VOP=VDD− V
0
8.3Character generator ROM (CGROM)
The standard character sets A, C and G are available for
the PCF2114x and PCF2116x. Standard character set C is
available for the PCF2116K.
8.4LCD bias voltage generator
The intermediate bias voltages for the LCD display are
also generated on-chip. This removes the need for an
external resistive bias chain and significantly reduces the
system power consumption. The optimum levels depend
on the multiplex rate and are selected automatically when
the number of lines in the display is defined.
The optimum value of V
depends on the multiplex rate,
OP
the LCD threshold voltage (Vth) and the number of bias
levels and is given by the relationships in Table 1.Using a
5-level bias scheme for 1 : 16 MUX rate allows VOP<5V
for most LCD liquids. The effect on the display contrast is
negligible.
8.5Oscillator
The on-chip oscillator provides the clock signal for the
display system. No external components are required.
Pin OSC must be connected to VDD.
8.6External clock
If an external clock is to be used, it must be input at
pin OSC. The resulting display frame frequency is given by
f
frame
=1⁄
2304fosc
. A clock signal must always be present,
otherwise the LCD may be frozen in a DC state.
8.7Power-on reset
The power-on reset block initializes the chip after
power-on or power failure.
8.8Registers
The PCF2116 has two 8-bit registers, an Instruction
Register (IR) and a Data Register (DR). The Register
Select signal (RS) determines which register will be
accessed.
The instruction register stores instruction codes such as
‘Display clear’ and ‘Cursor shift’, and address information
for the Display Data RAM (DDRAM) and Character
Generator RAM (CGRAM). The instruction register can be
written to, but not read, by the system controller.
The data register temporarily stores data to be read from
the DDRAM and CGRAM. When reading, data from the
DDRAM or CGRAM corresponding to the address in the
Address Counter is written to the data register prior to
being read by the ‘Read data’ instruction.
8.9Busy Flag
The Busy Flag indicates the free/busy status of the
PCF2116. Logic 1 indicates that the chip is busy and
further instructions will not be accepted. The Busy Flag is
output to pin DB7 when RS = logic 0 and R/
W = logic 1.
Instructions should only be written after checking that the
Busy Flag is logic 0 or waiting for the required number of
clock cycles.
Table 1 Optimum values for V
MUX RATE
OP
NUMBER OF BIAS
LEVELS
1 : 1653.671.277
1 : 3265.191.196
1997 Apr 078
VOP/V
th
DISCRIMINATION
Von/V
off
Page 9
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
9
V
OP
8
7
V = 1.8 x V
OP(max)DD
6 = V
DD
G = 1
5
6
4
5
3
2.5
4
3.5
0123456
V = 0.8 x V 1
OP(min)DD
V
a. High-voltage mode VOP= 1.8VDD− V0.
9
V
OP
8
9 V
0
MGA798
7
6
5
4
4
3.5
0123456
6 = V
DD
5
b. Buffer mode VOP=VDD− V0.
Fig.3 VOP as a function of V0 control characteristics.
1997 Apr 079
G = 0
V
0
MGA799
Page 10
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
9
V
OP
8
5
7
6
G = 1
4 = V
DD
6
5
4
3.5
0123456
2.5
3
V
OP(min)
= 1.34 × VDD + 0.5
V
0
a. High-voltage mode VOP= 2.34VDD− V0.
9
V
OP
8
9 V
MBH667
7
6
5
4
4
3.5
0123456
6 = V
DD
5
b. Buffer mode VOP=VDD− V0.
Fig.4 VOP as a function of V0 control characteristics (PCF2116K).
1997 Apr 0710
G = 0
V
0
MGA799
Page 11
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
8.10Address Counter (AC)
The Address Counter assigns addresses to the DDRAM
and CGRAM for reading and writing and is set by the
instructions ‘Set CGRAM address’ and
‘Set DDRAM address’. After a read/write operation the
Address Counter is automatically incremented or
decremented by 1.The Address Counter contents are
output to the bus (DB0 to DB6) when RS = logic 0 and
R/W = logic 1.
8.11Display data RAM (DDRAM)
The display data RAM stores up to 80 characters of
display data represented by 8-bit character codes.
RAM locations not used for storing display data can be
used as general purpose RAM. The basic
DDRAM-to-display mapping scheme is shown in Fig.5.
With no display shift the characters represented by the
codes in the first 12 or 24 RAM locations starting at
address 00 in line 1 are displayed. Subsequent lines
display data starting at addresses 20, 40, or 60 Hex.
Figs 6 and 7 show the DDRAM-to-display mapping
principle when the display is shifted.
The address range for a 1-line display is 00 to 4F; for a
2-line display from 00 to 27 (line 1) and 40 to 67 (line 2);
for a 4-line display from 00 to 13, 20 to 33, 40 to 53 and
60 to 73 for lines 1, 2, 3 and 4 respectively.
For 2 and 4-line displays the end address of one line and
the start address of the next line are not consecutive.
When the display is shifted each line wraps around
independently of the others (Figs 6 and 7).
When data is written into the DDRAM wrap-around occurs
from 4F to 00 in 1-line mode and from 27 to 40 and
67 to 00 in 2-line mode; from 13 to 20, 33 to 40, 53 to 60
and 73 to 00 in 4-line mode.
8.13Character generator RAM (CGRAM)
Up to 16 user-defined characters may be stored in the
character generator RAM. The CGROM and CGRAM use
a common address space, of which the first column is
reserved for the CGRAM (see Fig.8). Figure 11 shows the
addressing principle for the CGRAM.
8.14Cursor control circuit
The cursor control circuit generates the cursor (underline
and/or character blink as shown in Fig.12) at the DDRAM
address contained in the Address Counter. When the
Address Counter contains the CGRAM address the cursor
will be inhibited.
8.15Timing generator
The timing generator produces the various signals
required to drive the internal circuitry. Internal chip
operation is not disturbed by operations on the data buses.
8.16LCD row and column drivers
The PCF2116 contains 32 row and 60 column drivers,
which connect the appropriate LCD bias voltages in
sequence to the display, in accordance with the data to be
displayed. The bias voltages and the timing are selected
automatically when the number of lines in the display is
selected. Figures 13 and 14 show typical waveforms.
In 1-line mode (1 : 16) the row outputs are driven in pairs:
R1/R17, R2/R18 for example. This allows the output pairs
to be connected in parallel, providing greater drive
capability.
Unused outputs should be left unconnected.
8.12Character generator ROM (CGROM)
The character generator ROM generates 240 character
patterns in 5 × 8 dot format from 8-bit character codes.
Figures 8 to 10 show the character sets currently
available.
Fig.10 Character set ‘G’ in CGROM: PCF2116G; PCF2114G.
1997 Apr 0716
Page 17
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
handbook, full pagewidth
76543210654321043210
0000000000000000
000000010001
00000010
00001111
00001111
00001111
00001111
character codes
(DDRAM data)
higher
order
bits
lower
order
bits
CGRAM
address
higher
order
bits
0100000
1
1
1
1
1
1
1
1
1
111
1
1
lower
order
bits
001000
010000
0110
100000
101000
110000
11100000
000000
001000
010
100
1010000
1100000
11100000
001
1
100
1
101
1
110
1
1
higher
order
bits
character patterns
(CGRAM data)
lower
order
bits
0000011
MGA800 - 1
character
pattern
example 1
cursor
position
character
pattern
example 2
Character code bits 0to 3 correspond to CGRAM address bits 3 to 6.
CGRAM address bits 0 to 2 designate character pattern line position. The 8th line is the cursor position and display is performed by logical OR with
the cursor. Data in the 8th line will appear in the cursor position.
Character pattern column positions correspond to CGRAM data bits 0 to 4, as shown in Fig.11 (bit 4 being at the left end).
As shown in Figs 8 and 11, CGRAM character patterns are selected when character code bits 4 to 7 are all logic 0. CGRAM data = logic 1
corresponds to selection for display.
Only bits 0 to 5 of the CGRAM address are set by the ‘Set CGRAM address’ instruction. Bit 6 can be set using the ‘Set DDRAM address’ instruction
or by using the auto-increment feature during CGRAM write. All bits 0 to 6 can be read using the ‘Read busy flag and address’ instruction.
Fig.11 Relationship between CGRAM addresses and data and display patterns.
1997 Apr 0717
Page 18
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
cursor
5 x 7 dot character fontalternating display
cursor display exampleblink display example
Fig.12 Cursor and blink display examples.
MGA801
1997 Apr 0718
Page 19
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
handbook, full pagewidth
V
DD
V
2
ROW 1
ROW 9
ROW 2
COL 1
COL 2
V /V
34
V
5
V
LCD
V
DD
V
2
V /V
34
V
5
V
LCD
V
DD
V
2
V /V
34
V
5
V
LCD
V
DD
V
2
V /V
34
V
5
V
LCD
V
DD
V
2
V /V
3
V
5
V
LCD
frame n 1frame n
4
state 1 (ON)
state 2 (ON)
1-line display
(1:16)
V
OP
0.25 V
OP
0 V
state 1
0.25 V
OP
V
OP
V
OP
0.25 V
0 V
0.25 V
V
OP
OP
OP
1231612316
state 2
Fig.13 Typical LCD waveforms; 1-line mode.
1997 Apr 0719
MGA802 - 1
Page 20
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
handbook, full pagewidth
ROW 1
ROW 9
ROW 2
COL 1
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
DD
2
3
4
5
LCD
DD
2
3
4
5
LCD
DD
2
3
4
5
LCD
DD
2
3
4
5
LCD
frame n
frame n 1
state 1 (ON)
state 2 (ON)
2-line display
(1:32)
COL 2
state 1
state 2
V
OP
0.15 V
0 V
0.15 V
V
OP
V
OP
0.15 V
0 V
0.15 V
V
OP
V
V
V
V
V
V
DD
2
3
4
5
LCD
OP
OP
OP
OP
1233212 332
Fig.14 Typical LCD waveforms; 2-line mode.
MGA803 - 1
1997 Apr 0720
Page 21
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
8.17Programming MUX 1 : 16 displays with the
PCF2114x
The PCF2114x can be used in:
• 1-line mode to drive a 2-line display
• 2 × 12 characters with MUX rate 1 : 16, resulting in
better contrast. The internal data flow of the chip is
optimized for this purpose.
andbook, full pagewidth
display position
DDRAM address
display position
DDRAM address
1
00
13
0C
23
0102
1415
0D0E
Fig.15 DDRAM-to-display mapping; no shift (PCF2114x).
4
03
16
0F
With the ‘Function set’ instruction M and N are set to 0, 0.
Figures 15 to 17 show DDRAM addresses of the display
characters. The second row of each table corresponds to
either the right half of a 1-line display or to the second line
of a 2-line display. Wrap around of data during display shift
or when writing data is non-standard.
5
04
17
10
67
0506
1819
1112
8
07
20
13
9
08
21
14
1011
090A
2223
1516
12
0B
24
17
MLB899
andbook, full pagewidth
andbook, full pagewidth
display position
DDRAM address
display position
DDRAM address
Fig.16 DDRAM-to-display mapping; right shift (PCF2114x).
display position
DDRAM address
display position
DDRAM address
1
4F
13
0B
1
01
13
0D
23
0001
1415
0C0D
23
0203
1415
0E0F
4
02
16
0E
4
04
16
10
5
03
17
0F
5
05
17
11
67
0405
1819
1011
67
0607
1819
1213
8
06
20
12
8
08
20
14
9
07
21
13
9
09
21
15
1011
0809
2223
1415
1011
0A0B
2223
1617
12
0A
24
16
MLB900
12
0C
24
18
MLB901
Fig.17 DDRAM-to-display mapping; left shift (PCF2114x).
1997 Apr 0721
Page 22
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
8.18Programming MUX 1 : 32 displays with the
PCF2114x
To drive a 2-line by 24 characters MUX 1 : 32 display, use
instruction ‘Function set’ M, N to 0, 1. Note that the right
half of the display needs mirrored column connection
compared to a display driven by a PCF2116x.
To drive a 4-line by 12 characters MUX 1 : 32 display the
PCF2116x operating instructions apply. There is no
functional difference between the PCF2114x and the
PCF2116x in this mode. For such an application
set M, N to 1, 1 with the ‘Function set’ instruction.
8.19Reset function
The PCF2116 automatically initializes (resets) when
power is turned on. After reset the chip has the following
state.
Table 2 State after reset
STEPDESCRIPTION
1display clear
2function setDL = 18-bit interface
M, N = 01-line display
G = 0voltage
generator;
V
LCD=V0
3display on/off
control
D = 0display off
C = 0cursor off
B = 0blink off
4entry mode setI/D = 1+1 (increment)
S = 0no shift
5Default address pointer to DDRAM. The Busy
Flag (BF) indicates the busy state (BF = logic 1)
until initialization ends. The busy state lasts
2 ms. The chip may also be initialized by
software. See Figs 28 and 29.
2
6I
C-bus interface reset
9INSTRUCTIONS
Only two PCF2116 registers, the Instruction Register (IR)
and the Data Register (DR) can be directly controlled by
the microcontroller. Before internal operation, control
information is stored temporarily in these registers to allow
interface to various types of microcontrollers which
operate at different speeds or to allow interface to
peripheral control ICs.
The PCF2116 operation is controlled by the instructions
shown in Table 3 together with their execution time.
Details are explained in subsequent sections.
Instructions are of 4 categories, those that:
1. Designate PCF2116 functions such as display format,
data length, etc.
2. Set internal RAM addresses
3. Perform data transfer with internal RAM
4. Others.
In normal use, category 3 instructions are used most
frequently. However, automatic incrementing by 1 (or
decrementing by 1) of internal RAM addresses after each
data write lessens the microcontroller program load. The
display shift in particular can be performed concurrently
with display data write, enabling the designer to develop
systems in minimum time with maximum programming
efficiency.
During internal operation, no instruction other than
‘Read busy flag and address’ will be executed.
Because the Busy Flag is set to logic 1 while an instruction
is being executed, check to make sure it is on logic 0
before sending the next instruction or wait for the
maximum instruction execution time, as given in Table 3.
An instruction sent while the Busy Flag is HIGH will not be
executed.
1997 Apr 0722
Page 23
1997 Apr 0723
Table 3 Instructions (note 1)
INSTRUCTIONRSR/
W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0DESCRIPTION
NOP0000000000No operation.0
Clear display0000000001Clears entire display and sets DDRAM
address 0 in Address Counter.
Return Home0000000010Sets DDRAM address 0 in Address Counter.
Also returns shifted display to original position.
DDRAM contents remain unchanged.
Entry mode set00000001I/DSSets cursor move direction and specifies shift
of display. These operations are performed
during data write and read.
000001S/CR/L00Moves cursor and shifts display without
changing DDRAM contents.
Function set00001DLNMG0Sets interface data length (DL), number of
display lines (N, M) and voltage generator
control (G).
Set CGRAM
0001A
CG
Sets CGRAM address.3
address
Set DDRAM
001A
DD
Sets DDRAM address.3
address
Read busy flag
and address
01BFA
C
Reads Busy Flag (BF) indicating internal
operation is being performed and reads
Address Counter contents.
Read data11read dataReads data from CGRAM or DDRAM.3
Write data10write dataWrites data to CGRAM or DDRAM.3
REQUIRED
CLOCK
CYCLES
(2)
165
3
3
3
3
3
0
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Notes
1. In the I2C-bus mode the DL bit is don't care. 8-bit mode is assumed.
In the I2C-bus mode a control byte is required when RS or R/W is changed; control byte: Co, RS, R/W, 0, 0, 0, 0, 0; command byte: DB7 to DB0.
I/Ddecrementincrement
Sdisplay freezedisplay shift
Ddisplay offdisplay on
Ccursor offcursor on
Bcharacter at cursor position does not blinkcharacter at cursor position blinks
S/Ccursor movedisplay shift
R/Lleft shiftright shift
DL4 bits8 bits
Gvoltage generator: V
PCF2114x2 line × 12 characters; MUX 1 : 162 lines × 24 characters; MUX 1 : 32
N, (M = 1)reserved4 lines × 12 characters; MUX 1 : 32
BFend of internal operationinternal operation in progress
Colast control byte, only data bytes to follownext two bytes are a data byte and another
Fig.19 An example of 4-bit data transfer timing sequence.
MGA805
internal
DB7
databusybusy
instruction
write
internal operation
busy flag
check
Fig.20 Example of Busy Flag check timing sequence.
1997 Apr 0725
busy flag
check
not
busy
busy flag
check
data
instruction
write
MGA806
Page 26
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
9.1Clear display
‘Clear display’ writes space code 20 (hexadecimal) into all
DDRAM addresses (The character pattern for character
code 20 must be blank pattern). Sets the DDRAM Address
Counter to logic 0. Returns display to its original position if
it was shifted. Thus, the display disappears and the cursor
or blink position goes to the left edge of the display
(the first line if 2 or 4 lines are displayed). Sets entry mode
I/D = logic 1 (increment mode). S of entry mode does not
change.
The instruction ‘Clear display’ requires extra execution
time. This may be allowed for by checking the busy-flag
(BF) or by waiting until 2 ms has elapsed. The latter must
be applied where no read-back options are foreseen, as in
some chip-on-glass (COG) applications.
9.2Return home
‘Return home’ sets the DDRAM Address Counter to
logic 0. Returns display to its original position if it was
shifted. DDRAM contents do not change. The cursor or
blink position goes to the left of the display (the first line if 2
or 4 lines are displayed). I/D and S of entry mode do not
change.
9.3Entry mode set
9.3.1I/D
When I/D = logic 1 (0) the DDRAM or CGRAM address
increments (decrements) by 1 when data is written into or
read from the DDRAM or CGRAM. The cursor or blink
position moves to the right when incremented and to the
left when decremented. The cursor and blink are inhibited
when the CGRAM is accessed.
9.3.2S
When S = logic 1, the entire display shifts either to the right
(I/D = logic 0) or to the left (I/D = logic 1) during a DDRAM
write. Thus it looks as if the cursor stands still and the
display moves. The display does not shift when reading
from the DDRAM, or when writing into or reading out of the
CGRAM. When S = logic 0 the display does not shift.
9.4.2C
The cursor is displayed when C = logic 1 and inhibited
when C = logic 0. Even if the cursor disappears, the
display functions I/D, etc. remain in operation during
display data write. The cursor is displayed using 5 dots in
the 8thline (see Fig.12).
9.4.3B
The character indicated by the cursor blinks when
B = logic 1. The blink is displayed by switching between
display characters and all dots on with a period of
1 second when f
frequencies the blink period is equal to 150 kHz/f
= 150 kHz (see Fig.12). At other clock
osc
osc
.
The cursor and the blink can be set to display
simultaneously.
9.5Cursor/display shift
‘Cursor/display shift’ moves the cursor position or the
display to the right or left without writing or reading display
data. This function is used to correct a character or move
the cursor through the display. In 2 or 4-line displays, the
cursor moves to the next line when it passes the last
position (40 or 20 decimal) of the line. When the displayed
data is shifted repeatedly all lines shift at the same time;
displayed characters do not shift into the next line.
The Address Counter (AC) content does not change if the
only action performed is shift display, but increments or
decrements with the cursor shift.
9.6Function set
9.6.1DL (
PARALLEL MODE ONLY)
Defines interface data width when the parallel data
interface is used.
Data is sent or received in bytes (bits DB7 to DB0) when
DL = logic 1, or in two 4-bit nibbles (DB7 to DB4) when
DL = logic 0. When 4-bit width is selected, data is
transmitted in two cycles using the parallel bus
(1)
.
When using the I2C-bus interface the DL should not
previously have been set to 0 using the parallel interface.
9.4Display on/off control
9.4.1D
The display is on when D = logic 1 and off when
D = logic 0. Display data in the DDRAM are not affected
and can be displayed immediately by setting D to logic 1.
1997 Apr 0726
9.6.2N, M
Sets number of display lines.
(1) In a 4-bit application DB3 to DB0 are left open (internal
pull-ups). Hence in the first ‘Function set’ instruction after
power-on, G and H are set to 1. A second ‘Function set’ must
then be sent (2 nibbles) to set G and H to their required
values.
Page 27
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
9.6.3G
Controls the V
voltage generator characteristic.
LCD
9.7Set CGRAM address
‘Set CGRAM address’ sets bit 0 to 5 of the CGRAM
address (A
in Table 3) into the Address Counter
CG
(binary A[5] to A[0]). Data can then be written to or read
from the CGRAM.
Only bits 0 to 5 of the CGRAM address are set by the
‘Set CGRAM address’ instruction. Bit 6 can be set using
the ‘Set DDRAM address’ instruction or by using the
auto-increment feature during CGRAM write. All bits 0 to 6
can be read using the ‘Read busy flag and address’
instruction.
9.8Set DDRAM address
‘Set DDRAM address’ sets the DDRAM address (A
DD
in
Table 3) into the Address Counter (binary A[6] to A[0]).
Data can then be written to or read from the DDRAM.
Hexadecimal address ranges.
ADDRESSFUNCTION
00 to 4F1-line by 24; 2114x/2116x
00 to 0B and 0C to 4F2-line by 12; 2114x
00 to 27 and 40 to 672-line by 24; 2114x/2116x
00 to 13, 20 to 33, 40 to 53
4-line by 12; 21 14x/2116x
and 60 to 73
9.9Read busy flag and address
‘Read busy flag and address’ reads the Busy Flag (BF).
BF = logic 1 indicates that an internal operation is in
progress. The next instruction will not be executed until
BF = logic 0, so BF should be checked before sending
another instruction.
At the same time, the value of the Address Counter (A
in
C
Table 3) expressed in binary A[6] to A[0] is read out. The
Address Counter is used by both CGRAM and DDRAM,
and its value is determined by the previous instruction.
9.10Write data to CGRAM or DDRAM
Writes binary 8-bit data D[7] to D[0] to the CGRAM or the
DDRAM.
Whether the CGRAM or DDRAM is to be written into is
determined by the previous specification of CGRAM or
DDRAM address setting.
After writing, the address automatically increments or
decrements by 1, in accordance with the entry mode.
Only bits D[4] to D[0] of CGRAM data are valid, bits
D[7] to D[5] are ‘don’t care’.
9.11Read data from CGRAM or DDRAM
Reads binary 8-bit data D[7] to D[0] from the CGRAM or
DDRAM.
The most recent ‘Set address’ instruction determines
whether the CGRAM or DDRAM is to be read.
The ‘Read data’ instruction gates the content of the data
register (DR) to the bus while E = HIGH. After E goes LOW
again, internal operation increments (or decrements) the
AC and stores RAM data corresponding to the new AC into
the DR.
Remark: the only three instructions that update the data
register (DR) are:
• ‘Set CGRAM address’
• ‘Set DDRAM address’
• ‘Read data’ from CGRAM or DDRAM.
Other instructions (e.g. ‘Write data’, ‘Cursor/Display shift’,
‘Clear display’, ‘Return home’) will not modify the data
register content.
10 INTERFACE TO MICROCONTROLLER
(PARALLEL INTERFACE)
The PCF2116 can send data in either two 4-bit operations
or one 8-bit operation and can thus interface to 4-bit or
8-bit microcontrollers.
In 8-bit mode data is transferred as 8-bit bytes using the
8 data lines DB0 to DB7. Three further control lines E, RS,
and R/
W are required.
In 4-bit mode data is transferred in two cycles of 4-bits
each. The higher order bits (corresponding to DB4 to DB7
in 8-bit mode) are sent in the first cycle and the lower order
bits (DB0 to DB3 in 8-bit mode) in the second.
Data transfer is complete after two 4-bit data transfers.
It should be noted that two cycles are also required for the
Busy Flag check. 4-bit operation is selected by instruction.
See Figs 18, 19 and 20 for examples of bus protocol.
In 4-bit mode pins DB3 to DB0 must be left open-circuit.
They are pulled up to VDD internally.
1997 Apr 0727
Page 28
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
11 INTERFACE TO MICROCONTROLLER
2
C-BUS INTERFACE)
(I
2
11.1Characteristics of the I
C-bus
The I2C-bus 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 must be connected to a positive supply via a
pull-up resistor. Data transfer may be initiated only when
the bus is not busy.
11.2Bit transfer
One data bit is transferred during each clock pulse.
The data on the SDA line must remain stable during the
HIGH period of the clock pulse as changes in the data line
at this time will be interpreted as a control signal.
11.3START and STOP conditions
Both data and clock lines remain HIGH when the bus is not
busy. A HIGH-to-LOW transition of the data line, while the
clock is HIGH is defined as the START condition (S).
A LOW-to-HIGH transition of the data line while the clock
is HIGH is defined as the STOP condition (P).
11.4System configuration
A device generating a message is a ‘transmitter’, a device
receiving a message is the ‘receiver’. The device that
controls the message is the ‘master’ and the devices which
are controlled by the master are the ‘slaves’.
11.5Acknowledge
The number of data bytes transferred between the START
and STOP conditions from transmitter to receiver is
unlimited. Each byte of eight bits is followed by an
acknowledge bit. The acknowledge bit is a HIGH level
signal put on the bus by the transmitter during which time
the master generates an extra acknowledge related clock
pulse. A slave receiver which is addressed must generate
an acknowledge after the reception of each byte. Also a
master receiver must generate an acknowledge after the
reception of each byte that has been clocked out of the
slave transmitter. The device that acknowledges must
pull-down the SDA line during the acknowledge clock
pulse, so that the SDA line is stable LOW during the HIGH
period of the acknowledge related clock pulse (set-up and
hold times must be taken into consideration). A master
receiver must signal an end of data to the transmitter by
not generating an acknowledge on the last byte that has
been clocked out of the slave. In this event the transmitter
must leave the data line HIGH to enable the master to
generate a STOP condition.
11.6I
2
C-bus protocol
Before any data is transmitted on the I2C-bus, the device
which should respond is addressed first. The addressing is
always carried out with the first byte transmitted after the
start procedure. The I2C-bus configuration for the different
PCF2116 READ and WRITE cycles is shown in
Figs 25 to 27.
1997 Apr 0728
Page 29
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
SDA
SCL
SDA
data line
stable;
data valid
change
of data
allowed
Fig.21 Bit transfer.
MBC621
SDA
SCL
S
START condition
Fig.22 Definition of START and STOP conditions.
1997 Apr 0729
P
STOP condition
SCL
MBC622
Page 30
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
MASTER
TRANSMITTER/
RECEIVER
SDA
SCL
DATA OUTPUT
BY TRANSMITTER
SLAVE
RECEIVER
SLAVE
TRANSMITTER/
RECEIVER
TRANSMITTER
Fig.23 System configuration.
MASTER
MASTER
TRANSMITTER/
RECEIVER
MGA807
DATA OUTPUT
BY RECEIVER
SCL FROM
MASTER
S
START
CONDITION
Fig.24 Acknowledgement on the I2C-bus.
1997 Apr 0730
not acknowledge
acknowledge
MBC602
9821
clock pulse for
acknowledgement
Page 31
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
P
update
data pointer
n 0 bytes1 byte
ll pagewidth
from PCF2116
acknowledgement
S
CONTROL BYTEA
0
CONTROL BYTEADATAADATAA
1
0
A
011101 0A
S
Co
2n 0 bytes
Co
R/W
slave address
MBH668
0
S
A
0111010
R/W
PCF2116
slave address
Fig.25 Master transmits to slave receiver; WRITE mode.
1997 Apr 0731
Page 32
1997 Apr 0732
acknowledgement
from PCF2116
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
011101
S
slave address
S
A
0
0A
R/W
CONTROL BYTE
1
Co
SLAVE
S
ADDRESS
A
acknowledgement
from PCF2116
S
A
1A DATAA1
0
R/W
DATA
n byteslast byte
1 1 CONTROL
0
A
Co
DATA
update
data pointer
A
2 bytes2n 0 bytes
no acknowledgement
from master
DATA
P
MGA809 - 1
(1)
A
(1) Last data byte is a dummy byte (may be omitted).
Fig.26 Master reads after setting word address; write word address, set RS/RW; READ data.
handbook, full pagewidth
Page 33
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
andbook, full pagewidth
Fig.27 Master reads slave immediately after first byte; READ mode (RS previously defined).
S
SLAVE
ADDRESS
acknowledgement
from PCF2116
S
A
1A DATAA1
0
R/W
n bytes
acknowledgement
from master
DATA
last byte
update
data pointer
no acknowledgement
from master
P
MGA810 - 1
1997 Apr 0733
Page 34
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
SU;STO
t
(P)
STOP
CONDITION
(A)
ACKNOWLEDGE
MGA811 - 1
.
IH
and V
IL
LSB
R/W
BIT 0
(A6)
BIT 6
(A7)
MSB
BIT 7
(S)
START
CONDITION
r
t
LOW
t
BUF
t
f
t
HD;STA
t
SCL
t/f
HIGH
t
handbook, full pagewidth
C-bus timing diagram; rise and fall times refer to V
2
Fig.28 I
PROTOCOL
SDA
1997 Apr 0734
SCL
Page 35
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
12 LIMITING VALUES
In accordance with the Absolute Maximum Rating System (IEC 134).
input voltage OSC, V0, RS, R/W, E and DB0 to DB7VSS− 0.5VDD+ 0.5V
output voltage R1 to R32, C1 to C60 and V
LCD
V
− 0.5VDD+ 0.5V
LCD
DC input current−10+10mA
DC output current−10+10mA
LCDVDD
, VSS or V
current−50+50mA
LCD
total power dissipation−400mW
power dissipation per output−100mW
storage temperature−65+150°C
V
13 HANDLING
Inputs and outputs are protected against electrostatic discharge in normal handling. However, to be totally safe, it is
desirable to take normal precautions appropriate to handling MOS devices (see
“Handling MOS Devices”
).
1997 Apr 0735
Page 36
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
14 DC CHARACTERISTICS
= 2.5 to 6 V; VSS=0V; V
V
DD
LCD=VDD
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
Supplies
V
V
I
DD
I
DD1
I
DD2
I
DD3
I
DD
I
DD4
I
DD5
I
DD6
I
LCD
V
DD
LCD
POR
supply voltage2.5−6.0V
LCD supply voltageVDD− 9−VDD− 3.5V
supply current external V
supply current 1−200500µA
supply current 2VDD=5V; VOP=9V;
supply current 3VDD=3V; VOP=5V;
supply current internal V
supply current 4−7001100µA
supply current 5VDD=5V; VOP=9V;
supply current 6VDD=3V; VOP=5V;
V
input currentnotes 1 and 7−50100µA
LCD
power-on reset voltage levelnote 3−1.31.8V
Logic
V
IL1
LOW level input voltage E, RS,
R/W, DB0 to DB7 and SA0
V
IH1
HIGH level input voltage E, RS,
R/W, DB0 to DB7 and SA0
V
IL(osc)
V
IH(osc)
V
IL(V0)
V
IH(V0)
I
pu
I
OL(DB)
LOW level input voltage OSCV
HIGH level input voltage OSCVDD− 0.1−V
LOW level input voltage V
HIGH level input voltage V
pull-up current at DB0 to DB7VI=V
LOW level output current
DB0 to DB7
I
OH(DB)
HIGH level output current
DB0 to DB7
I
L1
leakage current OSC, V0, E, RS,
R/W, DB0 to DB7 and SA0
− 3.5 to VDD− 9 V; T
LCD
LCD
0
0
note 1
f
= 150 kHz;
osc
T
amb
f
= 150 kHz;
osc
T
amb
notes 1, 2 and 8
f
= 150 kHz;
osc
T
amb
f
= 150 kHz;
osc
T
amb
VOL= 0.4 V; VDD= 5 V 1.6−−mA
VOH=4V; VDD=5V−1.0−−mA
VI=VDD or V
= −40 °C to +85 °C; unless otherwise specified.
amb
−200300µA
=25°C
−150200µA
=25°C
−600900µA
=25°C
−500800µA
=25°C
V
SS
0.7V
SS
V
SS
DD
−0.3V
−V
−VDD− 1.5V
−VDD− 0.5V
VDD− 0.05 −V
SS
SS
0.040.151.00µA
−1−+1µA
DD
DD
DD
DD
V
V
V
V
1997 Apr 0736
Page 37
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
2
I
C-bus
SDA, SCL
V
IL2
V
IH2
I
L2
C
i
I
OL(SDA)
LCD outputs
R
ROW
R
COL
V
tol1
V
tol2
LOW level input voltagenote 4V
HIGH level input voltagenote 40.7V
leakage currentVI=VDD or V
row output resistance R1 to R32note 6−1.53kΩ
column output resistance C1 to C60 note 6−36kΩ
bias voltage tolerance R1 to R32
note 7−±20±130mV
and C1 to C60
LCD supply voltage (V
LCD
)
note 2−±40±300mV
tolerance
−0.3V
−V
DD
DD
V
V
Notes
1. LCD outputs are open-circuit; inputs at VDD or VSS; V0=VDD; bus inactive; internal or external clock with duty cycle
50% (I
2. LCD outputs are open-circuit; LCD supply voltage generator is on; load current at V
3. Resets all logic when VDD<V
DD1
only).
POR
=20µA.
LCD
.
4. When the voltages are above or below the supply voltages VDD or VSS, an input current may flow; this current must
not exceed ±0.5 mA.
5. Tested on sample basis.
6. Resistance of output terminals (R1 to R32 and C1 to C60) with load current = 150 µA; VOP=VDD− V
outputs measured one at a time; (external V
7. LCD outputs open-circuit; external V
LCD
.
LCD
).
LCD
=9V;
8. Maximum value occurs at 85 °C.
15 DC CHARACTERISTICS (PCF2116K)
= 2.5 to 6 V; VSS=0V; V
V
DD
LCD=VDD
− 3.5 to VDD− 9 V; T
= −40 °C to +85 °C; unless otherwise specified.
amb
SYMBOLPARAMETERCONDITIONSMIN.TYP.MAX.UNIT
V
V
V
DD
LCD
0
supply voltage2.5−6.0V
LCD supply voltageVDD− 9−VDD− 3.5V
voltage generator control input
V
SS
−VDD− 0.5V
voltage
R
0
voltage generator control input
T
=25°C; note 170010001300kΩ
amb
resistance
Note
has a temperature coefficient of resistance of +0.6%/K.
1. R
0
1997 Apr 0737
Page 38
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
16 AC CHARACTERISTICS
= 2.5 to 6.0 V; VSS=0V; V
V
DD
LCD=VDD
SYMBOLPARAMETERMIN.TYP.MAX.UNIT
f
f
FR
osc
LCD frame frequency (internal clock); note 14065100Hz
external clock frequency90150225kHz
Bus timing characteristics: Parallel Interface; notes 1 and 2
W
RITE OPERATION (WRITING DATA FROM MICROCONTROLLER TO PCF2116)
T
cy
PW
t
ASU
t
AH
t
DSW
t
HD
EH
enable cycle time500−−ns
enable pulse width220−−ns
address set-up time50−−ns
address hold time25−−ns
data set-up time60−−ns
data hold time25−−ns
READ OPERATION (READING DATA FROM PCF2116 TO MICROCONTROLLER)
T
cy
PW
EH
t
ASU
t
AH
t
DHD
t
HD
Timing characteristics: I
f
SCL
t
SW
t
BUF
t
SU;STA
t
HD;STA
t
LOW
t
HIGH
t
r
t
f
t
SU;DAT
t
HD;DAT
t
SU;STO
enable cycle time500−−ns
enable pulse width220−−ns
address set-up time50−−ns
address hold time25−−ns
data delay time−−150ns
data hold time20−100ns
2
C-bus interface; note 2
SCL clock frequency−−100kHz
tolerable spike width on bus−−100ns
bus free time4.7−−µs
set-up time for a repeated START condition4.7−−µs
START condition hold time4−−µs
SCL LOW time4.7−−µs
SCL HIGH time4−−µs
SCL and SDA rise time−−1µs
SCL and SDA fall time−−0.3µs
data set-up time250−−ns
data hold time0−−ns
set-up time for STOP condition4−−µs
− 3.5VtoVDD− 9 V; T
= −40 °C to +85 °C; unless otherwise specified.
amb
Notes
1. V
DD
=5V.
2. All timing values are valid within the operating supply voltage and ambient temperature range and are referenced to
VIL and VIH with an input voltage swing of VSSto VDD.
1997 Apr 0738
Page 39
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
17 TIMING CHARACTERISTICS
ook, full pagewidth
RS
R/W
DB0 to DB7
V
IH1
V
IL1
t
AS
V
IL1
PW
EH
V
E
IH1
V
IL1
V
V
V
t
DSW
IH1
IL1
IH1
V
IL1
Valid Data
V
IH1
V
IL1
t
AH
V
IL1
t
AH
V
IL1
t
H
V
IH1
V
IL1
T
cy
MLA798 - 1
Fig.29 Parallel bus write operation sequence; writing data from microcontroller to PCF2116.
book, full pagewidth
RS
R/W
E
DB0 to DB7
V
IH1
V
IL1
t
AS
V
IH1
PW
EH
V
IL1
V
IH1
t
DDR
V
V
V
IH1
OH1
OL1
Fig.30 Parallel bus read operation sequence; reading data from PCF2116 to microcontroller.
1997 Apr 0739
V
IH1
V
IL1
t
AH
V
IH1
t
AH
V
IL1
t
DHR
V
OH1
V
OL1
T
cy
V
IL1
MLA799 - 1
Page 40
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
18 APPLICATION INFORMATION
handbook, 4 columns
Fig.31 Direct connection to 8-bit microcontroller; 8-bit bus.
handbook, 4 columns
P80CL51
P10 to P17
P80CL51
P14 to P17
P20
P21
P22
P10
P11
P12
RS
R/W
R1 to R32
E
PCF2116
8
4
C1 to C60
DB0 to DB7
RS
R/W
R1 to R32
E
PCF2116
C1 to C60
DB4 to DB7
MGA812 - 1
32
to
LCD
60
32
to
LCD
60
Fig.32 Direct connection to 8-bit microcontroller; 4-bit bus.
handbook, full pagewidth
V
LCD
100 nF
V
DD
100
nF
V
SS
V
DD
OSC
100
kΩ
DB0 to DB7 E RS R/W
PCF2116
V
O
V
SS
R7 to R16
R25 to R32
R1 to R8
R17 to R24
C1 to C60
Fig.33 Typical application using parallel interface.
1997 Apr 0740
MGA813 - 1
16
2 x 24 CHARACTER
16
LCD DISPLAY
(SPLIT SCREEN)
60
MGA816 - 1
60
Page 41
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
ndbook, full pagewidth
VDDV
DD
V
LCD
100 nF
V
DD
100
nF
V
SS
100 nF
V
DD
100
nF
V
SS
100
kΩ
100
kΩ
V
DD
OSC
V
O
V
SS
V
V
DD
OSC
V
O
V
SS
PCF2116
LCD
PCF2114
SA0
V
SA0
V
SS
R1 to R16
R17 to R24
16
C1 to C60
DD
R1 to R16
16
C1 to C60
16
2 x 24 CHARACTER
LCD DISPLAY
(SPLIT SCREEN)
60
2 x 12 CHARACTER
LCD DISPLAY
MGA817 - 1
60
60
SCL SDA
MASTER TRANSMITTER
PCF84C81
Fig.34 Application using I2C-bus interface.
1997 Apr 0741
Page 42
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
18.18-bit operation, 1-line display using internal
reset
Table 6 shows an example of a 1-line display in 8-bit
operation. The PCF2116 functions must be set by the
‘Function set’ instruction prior to display. Since the display
data RAM can store data for 80 characters, the RAM can
be used for advertising displays when combined with
display shift operation. Since the display shift operation
changes display position only and DDRAM contents
remain unchanged, display data entered first can be
displayed when the Return Home operation is performed.
18.24-bit operation, 1-line display using internal
reset
The program must set functions prior to 4-bit operation.
Table 5 shows an example. When power is turned on, 8-bit
operation is automatically selected and the PCF2116
attempts to perform the first write as an 8-bit operation.
Since nothing is connected to DB0 to DB3, a rewrite is
then required. However, since one operation is completed
in two accesses of 4-bit operation, a rewrite is required to
set the functions (see Table 5 step 3).
Thus, DB4 to DB7 of the function set are written twice.
18.38-bit operation, 2-line display
For a 2-line display, the cursor automatically moves from
the first to the second line after the 40th digit of the first line
has been written. Thus, if there are only 8 characters in the
first line, the DDRAM address must be set after the eighth
character is completed (see Table 7). Note that both lines
of the display are always shifted together; data does not
shift from one line to the other.
2
18.4I
C operation, 1-line display
A control byte is required with most instructions
(see Table 8).
18.5Initializing by instruction
If the power supply conditions for correctly operating the
internal reset circuit are not met, the PCF2116 must be
initialized by instruction. Tables 9 and 10 show how this
may be performed for 8-bit and 4-bit operation.
Table 5 4-bit operation, 1-line display example; using internal reset
STEPINSTRUCTIONDISPLAYOPERATION
1power supply on (PCF2116 is initialized by
Initialized. No display appears.
the internal reset circuit)
2function set
RSR/
000010
WDB7DB6DB5DB4Sets to 4-bit operation. In this instance operation
is handled as 8-bits by initialization and only this
instruction completes with one write.
3function set
000010Sets to 4-bit operation, selects 1-line display and
000000
V
LCD=V0
. 4-bit operation starts from this point
and resetting is needed.
4display on/off control
000000_Turns on display and cursor. Entire display is
001110
blank after initialization.
5entry mode set
000000_Sets mode to increment the address by 1 and to
000110
shift the cursor to the right at the time of write to
the DD/CGRAM. Display is not shifted.
6write data to CGRAM/DDRAM
100101P_Writes ‘P’. The DDRAM has already been
100000
selected by initialization at power-on. The cursor
is incremented by 1 and shifted to the right.
1997 Apr 0742
Page 43
1997 Apr 0743
Table 6 8-bit operation, 1-line display example; using internal reset (character set ‘A’)
STEPINSTRUCTIONDISPLAYOPERATION
1power supply on (PCF2116 is initialized by the internal reset
function)
2function set
RSR/
3display mode on/off control
4entry mode set
5write data to CGRAM/DDRAM
6write data to CGRAM/DDRAM
7|
W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0Sets to 8-bit operation, selects 1-line display and
0000110000
0000001110_Turns on display and cursor. Entire display is blank after
0000000110_Sets mode to increment the address by1 and to shift the
1001010000P_Writes ‘P’. The DDRAM has already been selected by
1001001000PH_Writes ‘H’.
Initialized. No display appears.
V
LCD=V0
initialization.
cursor to the right at the time of the write to the
DD/CGRAM. Display is not shifted.
initialization at power-on. The cursor is incremented by 1
and shifted to the right.
.
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
8write data to CGRAM/DDRAM
1001010011PHILIPS_Writes ‘S’.
9entry mode set
0000000111PHILIPS_Sets mode for display shift at the time of write.
10write data to CGRAM/DDRAM
1000100000PHILIPS_Writes space.
11write data to CGRAM/DDRAM
1001001101PHILIPS M_Writes ‘M’.
|
|
Page 44
1997 Apr 0744
STEPINSTRUCTIONDISPLAYOPERATION
12|
|
|
13write data to CGRAM/DDRAM
1001001111MICROKOWrites ‘O’.
14cursor or display shift
0000010000MICROK
15cursor or display shift
0000010000MICROKOShifts only the cursor position to the left.
16write data to CGRAM/DDRAM
1001000011ICROCOWrites ‘C’ correction. The display moves to the left.
17cursor or display shift
0000011100MICROC
Z18cursor or display shift
0000010100MICROCO_Shifts only the cursor to the right.
19write data to CGRAM/DDRAM
1001001101ICROCOM_Writes ‘M’.
20|
OShifts only the cursor position to the left.
OShifts the display and cursor to the right.
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
21Return Home
0000000010
|
|
PHILIPS MReturns both display and cursor to the original position
(address 0).
Page 45
1997 Apr 0745
Table 7 8-bit operation, 2-line display example; using internal reset
STEPINSTRUCTIONDISPLAYOPERATION
1power supply on (PCF2116 is initialized by the internal reset
function)
2function setSets to 8-bit operation, selects 2-line display and voltage
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Initialized. No display appears.
generator off.
RSR/
3display on/off control
4entry mode set
5Write data to CGRAM/DDRAM
w
6|
7write data to CGRAM/DDRAM
8set DDRAM address
9write data to CGRAM/ DDRAM
W DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
0000111000
_
0000001110
_
0000000110
P_
1001010000
|
|
PHILIPS_
1001010011
PHILIPS
0011000000_
PHILIPS
Turns on display and cursor. Entire display is blank after
initialization.
Sets mode to increment the address by 1 and to shift the
cursor to the right at the time of write to the CG/DDRAM.
Display is not shifted.
Writes ‘P’. The DDRAM has already been selected by
initialization at power-on. The cursor is incremented by 1
and shifted to the right.
Writes ‘S’.
Sets DDRAM address to position the cursor at the head of
the 2nd line.
Writes ‘M’.
1001001101M_
10|
|
|
Page 46
1997 Apr 0746
STEPINSTRUCTIONDISPLAYOPERATION
11write data to CGRAM/ DDRAM
PHILIPS
1001001111MICROCO_
12write data to CGRAM/ DDRAM
PHILIPS
0000000111MICROCO_
13write data to CGRAM/ DDRAM
PHILIPS
1001001101ICROCOM_
14|
|
|
15return Home
PHILIPS
0000000010MICROCOM
Writes ‘O’.
Sets mode for display shift at the time of write.
Writes ‘M’. Display is shifted to the left. The first and
second lines shift together.
Returns both display and cursor to the original position
(address 0).
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Page 47
1997 Apr 0747
Table 8 Example of I2C operation; 1-line display (using internal reset, assuming SA0 = VSS; note 1)
2
STEPI
2
1I
C STARTInitialized. No display appears.
C BYTEDISPLAYOPERATION
2slave address for write
SA6 SA5 SA4 SA3 SA2 SA1 SA0 R/W AckDuring the acknowledge cycle SDA will be pulled-down by the
011101001
PCF2116.
3send a control byte for function set
CoRS R/
WAckControl byte sets RS and R/W for following data bytes.
000XXXXX1
4function set
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 AckSelects 1-line display and V
001X00001
acknowledge cycle starts execution of instruction.
5display on/off control
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 AckTurns on display and cursor. Entire display shows character
000011101
_
Hex 20 (blank in ASCII-like character sets).
6entry mode set
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 AckSets mode to increment the address by 1 and to shift the cursor
000001101
2
7I
C START
_
to the right at the time of write to the DDRAM or CGRAM.
Display is not shifted.
For writing data to DDRAM, RS must be set to 1. Therefore a
_
control byte is needed.
8slave address for write
SA6 SA5 SA4 SA3 SA2 SA1 SA0 R/
011101001
W Ack
_
9send a control byte for write data
CoRS R/
010XXXXX1
WAck
_
10write data to DDRAM
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 AckWrites ‘P’. The DDRAM has been selected at power-up.
010100001P_
The cursor is incremented by 1 and shifted to the right.
WAckDDRAM content will be read from following instructions.
011XXXXX1
2
21I
C STARTPHILIPS
22slave address for read
SA6 SA5 SA4 SA3 SA2 SA1 SA0 R/
W AckDuring the acknowledge cycle the content of the DR is loaded
011101011P
23read data: 8 × SCL + master acknowledge; note 2
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Ack8 × SCL; content loaded into interface during previous
XXXXXXXX0PH
PH_
PHILIPS_
PHILIPS_
PHILIPS
PHILIPS
HILIPS
ILIPS
|
|
|
shifted display to original position. DDRAM contents
unchanged). This instruction does not update the Data Register
The R/W has to be set to 1 while still in I2C-write mode.
into the internal I2C interface to be shifted out. In the previous
instruction neither a ‘Set address’ nor a ‘Read data’ has been
performed. Therefore the content of the DR was unknown.
acknowledge cycle is shifted out over SDA. MSB is DB7. During
master acknowledge content of DDRAM address 01 is loaded
into the I
2
C interface.
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Page 49
1997 Apr 0749
STEPI2C BYTEDISPLAYOPERATION
24read data: 8 × SCL + master acknowledge; note 2
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 Ack8 × SCL; code of letter ‘H’ is read first. During master
010010000PHILIPS
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 AckNo master acknowledge; After the content of the I
010010011PHI
26I2C STOPPHILIPS
Notes
1. X = don’t care.
2. SDA is left at high-impedance by the microcontroller during the READ acknowledge.
LIPS
acknowledge code of ‘I’ is loaded into the I2C interface.
2
C interface
register is shifted out no internal action is performed. No new
data is loaded to the interface register, Data Register (DR) is not
updated, Address Counter (AC) is not incremented and cursor is
not shifted.
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Page 50
1997 Apr 0750
Table 9 Initialization by instruction, 8-bit interface (note 1)
STEPDESCRIPTION
power-on or unknown state
|
wait 2 ms after V
RSR/
wait 2 ms
RSR/
wait more than 40 µs
RSR/
RSR/
Initialization ends
WDB7DB6DB5DB4DB3DB2DB1DB0 BF cannot be checked before this instruction.
000011XXXXFunction set (interface is 8-bits long).
WDB7DB6DB5DB4DB3DB2DB1DB0 BF cannot be checked before this instruction.
000011XXXXFunction set (interface is 8-bits long).
WDB7DB6DB5DB4DB3DB2DB1DB0 BF cannot be checked before this instruction.
000011XXXXFunction set (interface is 8-bits long).
WDB7DB6DB5DB4DB3DB2DB1DB0 Function set (interface is 8-bits long). Specify the number of display lines and
000011NMG0
0000001000Display off.
0000000001Clear display.
00000001I/DSEntry mode set.
rises above V
DD
POR
|
|
|
|
|
|
|
|
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
BF can be checked after the following instructions. When BF is not checked,
the waiting time between instructions is the specified instruction time (see
Table 3).
voltage generator characteristic.
Note
1. X = don’t care.
Page 51
1997 Apr 0751
Table 10 Initialization by instruction, 4-bit interface. Not applicable for I2C-bus operation
STEPDESCRIPTION
power-on or unknown state
|
wait 2 ms after V
RSR/
000011Function set (interface is 8-bits long).
wait 2 ms
RSR/
000011Function set (interface is 8-bits long).
wait 40 µs
RSR/
000011Function set (interface is 8-bits long).
RSR/
000010Interface is 8-bits long.
000010Function set (interface is 4-bits long).
00NMG0Specify number of display lines and voltage generator characteristic.
000000
001000Display off.
000000
000001
000000
0001I/DS
Initialization ends
WDB7DB6DB5DB4BF cannot be checked before this instruction.
WDB7DB6DB5DB4BF cannot be checked before this instruction.
WDB7DB6DB5DB4BF cannot be checked before this instruction.
WDB7DB6DB5DB4Function set (set interface to 4-bits long).
rises above V
DD
|
|
|
|
|
|BF can be checked after the following instructions. When BF is not checked, the waiting time
|
POR
between instructions is the specified instruction time. (See Table 3).
Clear display.
Entry mode set.
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
Page 52
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
handbook, full pagewidth
DISPLAY LAYOUT: COLUMNS
C115 31454531151
1 316191120
C16304660 6046 3016
DISPLAY LAYOUT: ROWS
R8 to R1
2 x 24 character display
R9 to R16
R32 to R25R17 to R24
Fig.35 Example of 2 × 24 display layout (PCF2116x).
PCF2116 column
output numbers
LCD column
numbers
PCF2116 column
output numbers
MGA814 - 1
1997 Apr 0752
Page 53
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
handbook, full pagewidth
DISPLAY LAYOUT: COLUMNS
C115 4660
13160
DOT MATRIX LCD
C1645
DISPLAY LAYOUT: ROWS
R8 to R1R9 to R16
PCF2116 column
output numbers
LCD column
numbers
PCF2116 column
output numbers
Fig.36 Example of 4 × 12 display layout (PCF2114x/PCF2116x).
LQFP128: plastic low profile quad flat package; 128 leads; body 14 x 20 x 1.4 mm
c
103
128
y
102
pin 1 index
1
X
A
65
64
Z
E
e
H
E
w M
b
p
39
38
A
A
E
SOT425-1
Q
2
A
1
detail X
(A )
3
L
p
L
θ
w M
b
e
DIMENSIONS (mm are the original dimensions)
mm
OUTLINE
VERSION
SOT425-1
A
max.
1.6
0.15
0.05
1.45
1.35
UNITA1A2A3bpcE
Note
1. Plastic or metal protrusions of 0.25 mm maximum per side are not included.
p
D
H
D
(1)(1)(1)
D
0.27
0.20
0.25
0.17
IEC JEDEC EIAJ
0.09
20.1
19.9
REFERENCES
Z
D
0510 mm
(1)
eH
H
14.1
13.9
0.5
22.15
21.85
1997 Apr 0760
D
v M
A
B
v M
B
scale
LLpQZywv θ
E
16.15
15.85
0.75
0.45
0.70
0.58
0.120.20.11.0
EUROPEAN
PROJECTION
Z
D
0.81
0.81
0.59
0.59
ISSUE DATE
96-04-02
E
o
7
o
0
Page 61
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
21 SOLDERING
21.1Introduction
There is no soldering method that is ideal for all IC
packages. Wave soldering is often preferred when
through-hole and surface mounted components are mixed
on one printed-circuit board. However, wave soldering is
not always suitable for surface mounted ICs, or for
printed-circuits with high population densities. In these
situations reflow soldering is often used.
This text gives a very brief insight to a complex technology.
A more in-depth account of soldering ICs can be found in
“IC Package Databook”
our
21.2Reflow soldering
Reflow soldering techniques are suitable for all LQFP
packages.
Reflow soldering requires solder paste (a suspension of
fine solder particles, flux and binding agent) to be applied
to the printed-circuit board by screen printing, stencilling or
pressure-syringe dispensing before package placement.
Several techniques exist for reflowing; for example,
thermal conduction by heated belt. Dwell times vary
between 50 and 300 seconds depending on heating
method. Typical reflow temperatures range from
215 to 250 °C.
Preheating is necessary to dry the paste and evaporate
the binding agent. Preheating duration: 45 minutes at
45 °C.
21.3Wave soldering
Wave soldering is not recommended for LQFP packages.
This is because of the likelihood of solder bridging due to
closely-spaced leads and the possibility of incomplete
solder penetration in multi-lead devices.
(order code 9398 652 90011).
If wave soldering cannot be avoided, the following
conditions must be observed:
• A double-wave (a turbulent wave with high upward
pressure followed by a smooth laminar wave)
soldering technique should be used.
• The footprint must be at an angle of 45° to the board
direction and must incorporate solder thieves
downstream and at the side corners.
Even with these conditions, do not consider wave
soldering LQFP packages LQFP48 (SOT313-2),
LQFP64 (SOT314-2) or LQFP80 (SOT315-1).
During placement and before soldering, the package must
be fixed with a droplet of adhesive. The adhesive can be
applied by screen printing, pin transfer or syringe
dispensing. The package can be soldered after the
adhesive is cured.
Maximum permissible solder temperature is 260 °C, and
maximum duration of package immersion in solder is
10 seconds, if cooled to less than 150 °C within
6 seconds. Typical dwell time is 4 seconds at 250 °C.
A mildly-activated flux will eliminate the need for removal
of corrosive residues in most applications.
21.4Repairing soldered joints
Fix the component by first soldering two diagonallyopposite end leads. Use only a low voltage soldering iron
(less than 24 V) applied to the flat part of the lead. Contact
time must be limited to 10 seconds at up to 300 °C. When
using a dedicated tool, all other leads can be soldered in
one operation within 2 to 5 seconds between
270 and 320 °C.
1997 Apr 0761
Page 62
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
22 DEFINITIONS
Data sheet status
Objective specificationThis data sheet contains target or goal specifications for product development.
Preliminary specificationThis data sheet contains preliminary data; supplementary data may be published later.
Product specificationThis data sheet contains final product specifications.
Limiting values
Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one or
more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation
of the device at these or at any other conditions above those given in the Characteristics sections of the specification
is not implied. Exposure to limiting values for extended periods may affect device reliability.
Application information
Where application information is given, it is advisory and does not form part of the specification.
23 LIFE SUPPORT APPLICATIONS
These products are not designed for use in life support appliances, devices, or systems where malfunction of these
products can reasonably be expected to result in personal injury. Philips customers using or selling these products for
use in such applications do so at their own risk and agree to fully indemnify Philips for any damages resulting from such
improper use or sale.
2
24 PURCHASE OF PHILIPS I
Purchase of Philips I
components in the I2C system provided the system conforms to the I2C specification defined by
Philips. This specification can be ordered using the code 9398 393 40011.
C COMPONENTS
2
C components conveys a license under the Philips’ I2C patent to use the
1997 Apr 0762
Page 63
Philips SemiconductorsProduct specification
LCD controller/driversPCF2116 family
NOTES
1997 Apr 0763
Page 64
Philips Semiconductors – a worldwide company
Argentina: see South America
Australia: 34 Waterloo Road, NORTH RYDE, NSW 2113,
United States: 811 East Arques Avenue, SUNNYVALE, CA 94088-3409,
Tel. +1 800 234 7381
Uruguay: see South America
Vietnam: see Singapore
Yugoslavia: PHILIPS, Trg N. Pasica 5/v, 11000 BEOGRAD,
Tel. +381 11 625 344, Fax.+38111 635777
For all other countries apply to: Philips Semiconductors, Marketing & Sales Communications,
Building BE-p, P.O. Box 218, 5600 MD EINDHOVEN, The Netherlands, Fax. +31 40 27 24825
The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed
without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license
under patent- or other industrial or intellectual property rights.
Internet: http://www.semiconductors.philips.com
Printed in The Netherlands417067/1200/04/pp64 Date of release: 1997 Apr 07Document order number: 9397 750 01754
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.