1FEATURES
2APPLICATIONS
3GENERAL DESCRIPTION
4ORDERING INFORMATION
5BLOCK DIAGRAM
6PINNING
6.1Pad configuration
6.2Pad functions
6.2.1Row driver outputs
6.2.2Column driver outputs
6.2.3Ground supply
6.2.4Supply voltage
6.2.5Voltage multiplier output
6.2.6Voltage multiplier regulation input
6.2.7Supply voltage of bias voltage generator
6.2.8LCD intermediate bias voltages
6.2.9Serial data input
6.2.10Serial data output
6.2.11Serial clock input
6.2.12Slave address inputs
6.2.13Oscillator signal input
6.2.14External reset input
6.2.15Test pads
7FUNCTIONAL DESCRIPTION
7.1Oscillator
7.2I2C-bus interface controller
7.3Input filters
7.4Display Data RAM (DDRAM)
7.5Timing generator
7.6Address counter
7.7Display address counter
7.8Command decoder
7.9Column driver outputs
7.10Row driver outputs
7.11Bias voltage generator
7.12High voltage generator
7.13Temperature compensation
7.14Temperature sensor
7.15LCD driver waveforms
7.16DDRAM to display mapping
7.17DDRAM addressing
7.18I2C-bus interface
7.18.1Bit transfer
7.18.2START and STOP conditions
7.18.3System configuration
7.18.4Acknowledge
7.18.5I2C-bus protocol
7.18.6Command decoder
7.18.7Display data byte
8INSTRUCTIONS
8.1Description of the bit functions
8.1.1Power-down mode
8.1.2Partial screen mode
8.1.3Y-address of DDRAM
8.1.4Bias system
8.1.5High voltage generator configuration
8.1.6Temperature read-out
8.1.7V
8.1.8Grey-scale register and grey-scale level
8.1.9Direct drive mode
8.1.10Frame frequency calibration
8.2Reset and initialization
9LIMITING VALUES
10HANDLING
11DC CHARACTERISTICS
12TIMING
13APPLICATION INFORMATION
13.1Programming example for the PCF8820
13.2Examples of effects on the display
13.3High voltage generator
13.4Application for COG
13.5Typical system configuration
13.6External supply of V
14BONDING PAD INFORMATION
15DEVICE PROTECTION CIRCUITS
16TRAY INFORMATION
17DATA SHEET STATUS
18DEFINITIONS
19DISCLAIMERS
20BARE DIE DISCLAIMER
21PURCHASE OF PHILIPS I2C COMPONENTS
• Compatible with 4-bit, 8-bit or 16-bit microcontrollers
• Multiplex rates of 1 : 67 or 1 : 8
• Logic supply voltage range from 2.5 to 5.5 V
(V
DD1
to V
SS1
)
• High voltage generator supply voltage range from
2.7 to 5.5 V (V
DD2
to V
SS1
and V
DD3
to V
• Bias voltage generator supply voltage range
(V
LCDIN
to V
SS1
):
– From 7 to 14.5 V at a multiplex rate of 1 : 67
– From 4.5 to 14.5 V in partial screen mode at a
multiplex rate of 1 : 8.
• Low power consumption, suitable for battery operated
systems
• Slim chip layout, suitable for chip-on-glass applications
LCDOUT
)
SS2
);
PCF8820
• Software selectable top and bottom row swap for
adapting driver to different glass-layouts
• CMOS compatible inputs
• Manufactured in silicon gate CMOS process.
2APPLICATIONS
• Mobile telecommunication systems
• Battery powered equipment
• Point of sale terminals
• Instrumentation
• Automotive information systems.
3GENERAL DESCRIPTION
The PCF8820 is a low power CMOS LCD row/column
driver,designed to drive grey-scale/ ECB colour dot matrix
graphic displays at a multiplex rate of 1 : 67. In the partial
screen mode, only 8 rows are driven at a multiplex rate of
1:8.
This chip provides all the necessary display functions,
including on-chip generation of the LCD supply voltage
and LCD bias voltages. Consequently, fewer external
components are required and the power consumption is
low.
The PCF8820 interfaces with most microcontrollers and
communicates via a two-line bidirectional bus (I2C-bus).
All inputs are CMOS compatible.
Remark: the waveform generation for ECB colour is
identical to that used for grey-scale.
R0 to R223 to 25LCD row driver outputs (block 1)
R23 to R33232 to 222LCD row driver outputs (block 2)
R34 to R55148 to 127LCD row driver outputs (block 3)
R56 to R66151 to 161LCD row driver outputs (block 4)
C0 to C10026 to 126LCD column driver outputs
V
SS1
V
SS2
V
DD1
V
DD2
V
DD3
V
LCDOUT
V
LCDSENSE
V
LCDIN
V
2
V
3
V
4
V
5
SDA_IN195 and 196serial data input
SDA_OUT197serial data output (acknowledge)
SCL215 and 216serial clock input
SA0204I
SA1214I
OSC220oscillator signal input
RES219external reset input (active LOW)
T1205test 1 input
T2221test 2 output
T3212test 3 I/O
T4213test 4 I/O
T5217test 5 input
T6218test 6 output
206 to 211ground supply 1
198 to 203ground supply 2
179 to 184supply voltage 1 of logic
188 to 194supply voltage 2 of high voltage generator; temperature read-out
185 to 187supply voltage 3 of high voltage generator; temperature read-out
173 to 178voltage multiplier output
172voltage multiplier regulation input
166 to 171supply voltage for LCD (bias voltage generator)
165LCD intermediate bias voltage 2; for test purposes only
164LCD intermediate bias voltage 3; for test purposes only
163LCD intermediate bias voltage 4; for test purposes only
162LCD intermediate bias voltage 5; for test purposes only
Rowdriveroutputs(R0 to R66)aretheoutputsforthe LCD
rowdrivesignals.Theyshouldbeconnecteddirectlytothe
67 rows of the LCD. If less than 67 rows are required, the
unused outputs must be left open-circuit.
6.2.2COLUMN DRIVER OUTPUTS
Columndriver outputs (C0 to C100) are the outputs for the
LCD column drive signals. They should be connected
directly to the 101 columns of the LCD. If less than
101 columns are required, the unused column outputs
must be left open-circuit.
6.2.3GROUND SUPPLY
The ground supply rails (V
connected together. V
V
is related to V
SS2
DD2
SS1
.
and V
SS1
SS2
is related to V
) must be
and V
DD1
DD3
;
PCF8820
When an external supply voltage is used, pads V
V
LCDSENSE
together. However, if pads V
both connected to pad V
and V
do not have to be connected
LCDOUT
LCDSENSE
, the current consumption
LCDIN
and V
LCDOUT
can be reduced under the following conditions:
• The output of V
is set to high-impedance
LCDOUT
(see Table 8)
• The HIGH voltage programming range is selected by
setting bit PRS = 1, the maximum voltage multiplier on
factor 8 and the V
control register on the maximum
LCD
value (see Table 2).
6.2.8LCD INTERMEDIATE BIAS VOLTAGES
The LCD intermediate bias voltages (V2,V3,V4and V5)
which are applied to the LCD columns and rows are
present on these pads for test purposes. They must be left
open-circuit in the application.
6.2.9SERIAL DATA INPUT
LCDIN
are
,
6.2.4SUPPLY VOLTAGE
The supply voltage rails (V
DD1,VDD2
and V
) must be
DD3
connectedtogether when the same supply is used for both
the logic circuits and for the voltage multiplier. When the
circuits are fed separately, V
DD2
and V
DD3
must be
connected to the same supply.
6.2.5VOLTAGE MULTIPLIER OUTPUT
V
is the output of the voltage multiplier of the high
LCDOUT
voltage generator.
6.2.6VOLTAGE MULTIPLIER REGULATION INPUT
V
LCDSENSE
multiplier and must be connected to V
is the regulation input of the high voltage
.
LCDOUT
6.2.7SUPPLY VOLTAGE OF BIAS VOLTAGE GENERATOR
V
is the supply voltage on pad V
LCD
LCDIN
for the bias
voltage generator which supplies the LCD outputs. The
voltage on pad V
If V
is generated internally, pad V
LCD
connected to pad V
If V
is supplied externally, the external supply voltage
LCD
must be connected to pad V
voltagemustbeappliedafterapplyingV
removed before or when removing V
must not be lower than V
LCDIN
.
LCDIN
. An external supply
LCDIN
must be
LCDOUT
,anditmustbe
DD1
(see Fig.25). It is
DD1
DD1
.
recommended that an external supply voltage is applied
after leaving the reset state. The external supply voltage
can stay applied in the Power-down mode.
SDA_IN is the serial data input from the I2C-bus.
6.2.10SERIAL DATA OUTPUT
SDA_OUT is the serial data output (data, acknowledge)
for the I2C-bus. Connecting pad SDA_OUT to
pad SDA_IN makes the SDA line fully I2C-bus compatible.
Not connecting pad SDA_IN to pad SDA_OUT allows the
devicetobeusedin applications inwhichtheacknowledge
bitisnotrequired. In Chip-On-Glass (COG) applications, it
is sometimes beneficial not to connect pad SDA_OUT to
pad SDA_IN. This is because in COG applications where
the track resistance from pad SDA_OUT to the system
SDA line is significant, a voltage divider is created by the
bus pull-up resistor and the Indium Tin Oxide (ITO) track
resistance. This divider could prevent the PCF8820 from
asserting a valid logic 0 level during an acknowledge
cycle.
In COG applications, where the acknowledge cycle is
required, the track resistance from the pad SDA_OUT to
the system SDA line must be minimized to guarantee a
valid LOW-level.
6.2.11SERIAL CLOCK INPUT
SCL is the serial clock input from the I2C-bus.
6.2.12SLAVE ADDRESS INPUTS
These inputs (SA0 and SA1) allow up to four PCF8820
drivers to be controlled on the same I2C-bus. Inputs SA0
and SA1 represent respectively bit 0 and bit 1 of the slave
address.
6.2.13OSCILLATOR SIGNAL INPUT
Pad OSC must be connected directly to V
on-chip oscillator is used. No external components are
required. It should be noted that any voltage drop of V
may affect the performance of the on-chip oscillator.
An external clock must be connected to input OSC.
6.2.14EXTERNAL RESET INPUT
A LOW-level on input RES initializes the chip.
6.2.15TEST PADS
The test pads (T1, T2, T3, T4, T5 and T6) must not be
accessible to the user.
Pads T1, T3 and T4 must be connected to V
must be connected to V
left open-circuit.
, and pads T2 and T6 must be
DD1
when the
DD1
SS1
DD1
, pad T5
PCF8820
7.4Display Data RAM (DDRAM)
The PCF8820 contains a 67 × 101 × 2-bit static RAM,
which stores the display data. The RAM comprises
17 banks of 101 bytes (17 × 101 × 8 bits). Not all of the
last bank is implemented. During RAM access, data is
transferred to the RAM via the I
7.5Timing generator
The timing generator produces the various signals
required to drive the internal circuitry. Internal chip
operation is not affected by operations on the I2C-bus.
7.6Address counter
The address counter generates write addresses to the
DDRAM.During a write operation, display data is stored at
the addressed locations.
7.7Display address counter
The display address counter generates read addresses to
the DDRAM. During a read operation, display data is read
out to the LCD.
7.8Command decoder
2
C-bus interface controller.
7FUNCTIONAL DESCRIPTION
7.1Oscillator
Theon-chiposcillatorprovidestheclock signal for the LCD
system. The clock mode is controlled via the I2C-bus
interface. A clock signal must always be present, except in
the Power-down mode, to prevent the LCD entering a
DC state.
2
7.2I
TheI2C-businterface controller receives and executes the
commands sent via the I2C-bus. The PCF8820 acts as an
I2C-bus slave receiver/transmitter and therefore it cannot
control the bus communication.
7.3Input filters
RC low-pass filters are provided on inputs SDA_IN, SCL
and RES to enhance noise immunity in electrically
adverse environments.
C-bus interface controller
The command decoder receives command words which
are followed by data byte(s) from the I2C-bus. The
command decoder identifies the command words and
determines the destination for the data byte(s).
7.9Column driver outputs
The LCD driver section has 101 outputs (C0 to C100)
which should be connected directly to the column drive
inputs of the LCD. The column driver signals are
generated in accordance with the multiplexed row signals
and with the data in the display data latch.
The programmed grey-scale levels are built-up in the LCD
over four frames (N11,N12,N13 and N14) as shown in
Figs 3, 4 and 5.
7.10Row driver outputs
The LCD driver section has 67 outputs (R0 to R66) which
should be connected directly to the row drive inputs of the
LCD. The row driver signals are generated in accordance
with the selected LCD drive mode.
The bias voltage generator generates 4 buffered
intermediate LCD bias voltages. It contains 4 operational
amplifiers and an input reference voltage generator. It can
operate in two voltage ranges:
• Normal mode (from 7.0 to 14.5 V)
• Partial screen mode (from 4.5 to 14.5 V).
7.12High voltage generator
The high voltage generator contains a voltage multiplier
which uses a charge pump circuit supplied by V
V
.
DD3
The multiplier is software programmable with a factor from
2 to 8. In the direct drive mode the output voltage
V
LCDOUT=VDD2
.
7.13Temperature compensation
The viscosity of the liquid crystal depends on the
temperature; so to maintain optimum contrast at lower
temperatures V
shows V
LCD
needs usually to be increased. Fig.2
LCD
as a function of the temperature for a typical
high multiplex rate liquid crystal.
DD2
and
PCF8820
7.14Temperature sensor
The PCF8820 has a built-in temperature sensor. The
sensor monitors the temperature and writes an 8-bit
number into the status register. The temperature sensor
and status register can both be accessed via the I2C-bus
interface controller.
The temperature sensor allows any temperature
compensation to be implemented; any programmable
parameter can be optimized as a function of the sensor
read-out temperature.
7.15LCD driver waveforms
The LCD waveforms are shown in Figs 3, 4 and 5.
At frame inversion, the PCF8820 generates a dummy row
cycle, where no row is selected. This ensures equal
conditions for the first row after frame inversion as for the
other rows. Therefore the effective multiplex rate in all
modes is 1 : (multiplex rate + 1).
7.16DDRAM to display mapping
DDRAM to display mapping is shown in Fig.6.
Linear temperature compensation is supported in the
PCF8820. The temperature coefficient for V
LCDOUT
can be
set to one of 8 values by setting bits TC2to TC0.
handbook, halfpage
V
LCD
(V)
(1) LCD characteristic.
(2) Linear temperature compensation.
0
T
amb
MGT123
(1)
(2)
(°C)
Fig.2LCD supply voltage as a function of the
temperature.
2000 Dec 078
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
o
o
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2000 Dec 079
ROW 0
ROW 0
R0(t)
R0(t)
ROW 1
ROW 1
R1(t)
R1(t)
COL 0
COL 0
C0(t)
C0(t)
COL 1
COL 1
C1(t)
C1(t)
V
V
state1
state1
V
V
state2
state2
(t)
(t)
(t)
(t)
V
V
LCD
LCD
V
V
2
2
V
V
3
3
V
V
4
4
V
V
5
5
V
V
SS
SS
V
V
LCD
LCD
V
V
2
2
V
V
3
3
V
V
4
4
V
V
5
5
V
V
SS
SS
V
V
LCD
LCD
V
V
2
2
V
V
3
3
V
V
4
4
V
V
5
5
V
V
SS
SS
V
V
LCD
LCD
V
V
2
2
V
V
3
3
V
V
4
4
V
V
5
5
V
V
SS
SS
V
V
LCD
LCD
V
V
3
3
V
V
LCD − V2
LCD − V2
0 V
0 V
V3 − V
V3 − V
V
V
LCD
LCD
V
V
3
3
V
V
LCD − V2
LCD − V2
0 V
0 V
V3 − V
V3 − V
Frame
Frame
2
2
2
2
4
4
79 16xx
79 16xx
N1
N1
N1
1
1
4
4
79 16xx
79 16xx
N1
2
2
4
4
88 16xx
88 16xx
ok, full pagewidth
ok, full pagewidth
N1
N1
3
3
N1
N1
4
4
4
4
5
5
7916xx
7916xx
88 16xx
88 16xx
N2
N2
1
1
V4 − V
V4 − V
5
5
0 V
0 V
− V5
− V5
V4 − V
V4 − V
LCD
LCD
−V
−V
LCD
LCD
V4 − V
V4 − V
5
5
0 V
0 V
− V5
− V5
V4 − V
V4 − V
LCD
LCD
−V
−V
LCD
LCD
state1
state1
state2
state2
LCD driver
Philips SemiconductorsProduct specification
67 × 101 Grey-scale/ECB colour dot matrix
V
(t) = C1(t) − R0(t)
state1
V
(t) = C1(t) − R1(t)
state2
0012 660012 660012 660012 660012 66
0012 660012 660012 660012 660012 66
Example for setting grey-scale register.
ROW0, COL0: GS = 17
ROW1, COL0: GS = 0
ROW0, COL1: GS = 30
ROW1, COL0: GS = 63 (63 will be set to 64; see Section 8.1.8).
Fig.3 Typical LCD driver waveforms at a multiplex rate of 1 : 67.
MGT115
MGT115
PCF8820
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
o
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2000 Dec 0710
ROW 0
R0(t)
ROW 1
R1(t)
COL 0
C0(t)
COL 1
C1(t)
V
state1
V
state2
(t)
(t)
V
LCD
V
2
V
3
V
4
V
5
V
SS
V
LCD
V
2
V
3
V
4
V
5
V
SS
V
LCD
V
2
V
3
V
4
V
5
V
SS
V
LCD
V
2
V
3
V
4
V
5
V
SS
V
LCD
V
3
V
LCD − V2
0 V
V3 − V
V
LCD
V
3
V
LCD − V2
0 V
V3 − V
Frame
2
2
N1
1
N1
2
4
4
79 16xx
79 16xx
4
88 16xx
ok, full pagewidth
N1
3
N1
4
N2
1
4
5
79 16xx
88 16xx
V4 − V
5
0 V
− V5
V4 − V
LCD
−V
LCD
V4 − V
5
0 V
− V5
V4 − V
LCD
−V
LCD
state1
state2
LCD driver
Philips SemiconductorsProduct specification
67 × 101 Grey-scale/ECB colour dot matrix
V
(t) = C1(t) − R0(t)
state1
V
(t) = C1(t) − R1(t)
state2
0012 70012 70012 7 0012 70012 7
Example for setting grey-scale register.
ROW0, COL0: GS = 17
ROW1, COL0: GS = 0
ROW0, COL1: GS = 30
ROW1, COL0: GS = 63 (63 will be set to 64; see Section 8.1.8).
Fig.4 Typical LCD driver waveforms at a multiplex rate of 1 : 8 for partial screen mode.
MGT116
PCF8820
This text is here in white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here in
o
_white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader.This text is here inThis text is here in
white to force landscape pages to be rotated correctly when browsing through the pdf in the Acrobat reader. white to force landscape pages to be ...
2000 Dec 0711
V
state1
ROW 0
R0(t)
ROW 1
R1(t)
COL 0
C0(t)
COL 1
C1(t)
Frame
V
LCD
0.5V
LCD
V
SS
V
LCD
0.5V
LCD
V
SS
V
LCD
V
SS
V
LCD
V
SS
V
LCD
0.5V
LCD
(t)
0 V
−0.5V
LCD
−V
LCD
N1
1
N1
2
ok, full pagewidth
N1
3
N1
4
N2
1
state1
state2
LCD driver
Philips SemiconductorsProduct specification
67 × 101 Grey-scale/ECB colour dot matrix
V
state2
V
(t) = C1(t) − R0(t).
state1
V
(t) = C1(t) − R1(t).
state2
V
LCD
0.5V
LCD
(t)
0 V
−0.5V
LCD
−V
LCD
0012 70012 70012 7 0012 70012 7
MGT117
Example for setting grey-scale register.
ROW0, COL0: GS = 0
PCF8820
ROW1, COL0: GS = 63 (63 will be set to 64; see Section 8.1.8).
ROW0, COL1: GS = 63 (63 will be set to 64; see Section 8.1.8).
ROW1, COL0: GS = 63 (63 will be set to 64; see Section 8.1.8).
Fig.5 Typical LCD driver waveforms at a multiplex rate of 1 : 8, for partial screen mode and bias system1/2.
Data is written in 8-bit bytes into the display data RAM
matrix of the PCF8820 (see Figs 6 to 8). The display data
RAMcomprisesamatrixof 67 × 101 × 2 bits. The columns
areaddressedbytheaddress pointer. The addressranges
are:X = 0 to 100 (64H) and Y=0to16(10H). It should be
noted that only 3 rows are addressed in bank 16.
Addresses outside these ranges are not allowed.
handbook, full pagewidth
LSB
Col0
MSB
PCF8820
Bit MX (see Table 3) enables or disables horizontal
address space mirroring:
• When bit MX = 0, mirroring is disabled. The address
corresponds to Col0 (see Fig.7).
• When bit MX = 1, mirroring is enabled and address
X = 0 corresponds to Col0 (see Fig.8). Bit MX
determines how data is written to the RAM. If bit MX is
changedafterwritingdatatotheRAM,nochangeonthe
display will be visible.
0
Y address
handbook, full pagewidth
LSB
MSB
0100X address
Fig.7 RAM X-address format for mirroring disabled.
Bit V (see Table 3) selects either horizontal or vertical
address mode:
• In vertical address mode (bit V = 1), the Y-address is
incremented after each byte (see Fig.9). After Y = 16,
the Y-address sequence returns to Y = 0 and the
X-address is incremented to address the next column.
• In horizontal address mode (bit V = 0) the X-address is
incremented after each byte (see Fig.10). After X = 100,
the X-address sequence returns to X = 0 and the
Y-address is incremented to address the next row.
handbook, full pagewidth
017
118
219
320
13
14
15
16
0100X address
PCF8820
After the very last address (X = 100 and Y = 16), the
address pointers return to the first address (X = 0 and
Y = 0). It should be noted that in bank 16 only
bits DB0 to DB5 of the data will be written into the RAM.
0
Y address
161716
MGT121
Fig.9 Writing data to RAM sequence in vertical address mode.
handbook, full pagewidth
012345100
101102
202203
303304
404
1414
1515
1616
0100X address
Fig.10 Writing data to RAM sequence in horizontal address mode.
The I2C-bus allows bidirectional data communication
betweendifferentICsormodules. The serialdatainputline
and serial data output line are connected together, so
representing the Serial Data (SDA) line. See Section 13.4
for layout considerations. The SDA line and the Serial
Clock Line (SCL) line must be connected to a positive
supply voltage via a pull-up resistor. Data transfer may be
initiated only when the bus is not busy.
7.18.1BIT TRANSFER
Onedatabitistransferredduringaclockpulseperiod.The
data on the SDA line must remain stable during the HIGH
periodoftheclockpulse,otherwiseanychangeinthedata
within this period will be interpreted as a control signal
(see Fig.11).
PCF8820
7.18.2START
Both data and clock lines are HIGH when the bus is not
busy (see Fig.12).
A START condition (S) occurs when the data line goes
from HIGH-to-LOW while the clock is HIGH.
ASTOP condition (P) occurs when the data line goes from
7.18.3SYSTEM CONFIGURATION
Thd system components are defined below (see Fig.13):
• Transmitter: the device which sends data to the bus
• Receiver: the device which receives data from the bus
• Master: the device which initiates a transfer, generates
clock signals and terminates a transfer
• Slave: the device addressed by a master
• Multi-master: more than one master can attempt to
control the bus at the same time without corrupting the
message
• Arbitration: procedure to ensure that, if more than one
master simultaneously tries to control the bus, only one
is allowed to do so and the message is not corrupted
• Synchronization: procedure to synchronize the clock
signals of two or more devices.
7.18.4ACKNOWLEDGE
Each 8-bit data byte transferred over the bus must be
followed by an acknowledge bit (see Fig.14).
PCF8820
Duringthe acknowledge clock pulse a HIGH-level signal is
put on the bus by the transmitter.
A slave receiver which is addressed must generate an
acknowledge bit after the reception of each data byte.
A master receiver must generate an acknowledge bit after
receiving a data byte that has been clocked out of the
slave transmitter. The device that acknowledges must
pull-down the SDA line to a LOW-level during the
acknowledge clock pulse. Set-up and hold times must be
taken into consideration to ensure that the SDA line is
stable during the HIGH period of the acknowledge related
clock pulse.
A master receiver must signal an end-of-data to the slave
transmitter by not generating an acknowledge bit on the
lastbytethathasbeenclockedoutoftheslavetransmitter.
In this event the slave transmitter must leave the data line
HIGH to allow the master to generate a STOP condition.
For the PCF8820 the acknowledge bit is output at
pad SDA_OUT.
The PCF8820 is a slave transmitter/receiver. If data is to
be read from the device, the SDA_OUT output must be
used.
Before any data is transferred over the I2C-bus, the
destination device is addressed first (see Fig.15).
The PCF8820 has four 7-bit slave addresses reserved:
0111 100, 0111 101, 0111 110 and 0111 111. The two
least significant bits of the slave address are set by
connecting slave address inputs SA1 and SA0 to either
V
(logic 0) or V
SS1
A write sequence (see Fig.17) is initiated with a START
condition (S) from the I2C-bus master which is followed by
the slave address. Only the addressed slave
acknowledges. After acknowledgement, one or more
command words follow which define the status of the
addressed slave.
A command word consists of a control byte (see Fig.16)
defining ‘continuation’ bit Co and ‘register selection’
bit RS, plus a data byte. The last control byte is indicated
byresettingbit Co = 0. The control and data bytes are also
acknowledged by all addressed slaves on the bus.
Depending on the setting of bit RS in the last control byte,
either a series of display data bytes or command data
bytes may follow.
If bit RS = 1, the data bytes are stored as display data in
the DDRAM at the address specified by the data pointer.
The data pointer is automatically incremented.
If bit RS = 0, the data byte is interpreted as a command
byte to be decoded and the device will be set according to
the received commands.
DD1
(logic 1).
PCF8820
Only the addressed PCF8820 acknowledges after each
byte is received. The I
condition (P) at the end of the transmission.
S01111SA0SA1A
START
condition
MGU185
CoRSXXXXXX
continuation
bit
2
C-bus master issues a stop
slave address
slave
address
bit 1
Fig.15 Slave address.
register
selection
bit
control byte
Fig.16 Control byte.
slave
address
bit 0
acknowledge
bit
R/W
read/write
bit
MGT124
handbook, full pagewidth
S01111
slave address
acknowledgement
from PCF8820
S
S
A
1
A
0
0A
R/W
Co
1
RS
acknowledgement
from PCF8820
control byte
Adata bytedata byte
2n ≥ 0 bytes
Fig.17 Write sequence: master transmits bytes to slave receiver.
For a read sequence (see Fig.18), the addressed
PCF8820 will immediately start to output the requested
data until a NOT acknowledge is transmitted by the
master. Before the read access, the user has to set bit RS
to the appropriate value by a preceding write access. The
sequence should be terminated by a STOP condition
when no further access is required, or by a RE-START
condition if further access is required.
7.18.6COMMAND DECODER
The command decoder identifies command words
received via the I2C-bus.
Bit 7 of the control byte is named bit Co (see Fig.16):
• Bit Co = 1 indicates that only one command byte or
DDRAM data byte will follow next
• Bit Co = 0 indicates that a stream of command bytes or
DDRAM data bytes will follow next depending on last
status of bit RS.
Bit 6 of a control byte is named bit RS:
• Bit RS = 1 indicates that another DDRAM data byte will
follow next
• Bit RS = 0 indicates that another command byte will
follow next.
The definition of bits Co and RS is shown in Table 1.
PCF8820
acknowledgement
from PCF8820
S
S01111
slave address
S
A
1
A
0
1A
R/W
Fig.18 Read sequence: master receives bytes
from slave transmitter status register.
MSBLSB
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
P3
P3
LSB
MSBP2LSBP2MSBP1LSBP1MSBP0LSBP0MSB
pixel 3pixel 2pixel 1pixel 0
not acknowledgement
temperature
readout value
from master
AP
STOP condition
MGT126
MGT127
7.18.7DISPLAY DATA BYTE
Fig.19 Grey-scale display data byte.
A display data byte for grey-scale is shown in Fig.19.
Table 1 Definition of bits Co and RS
BIT VALUEACTION
Co0last control byte to be sent; only a stream of data bytes are allowed to follow; this stream may
only be terminated by a STOP or RE-START condition
1another control byte will follow the data byte unless a STOP or RE-START condition is
received
RS0data byte will be decoded and used to set up the device
data byte will return the sensor temperature read-out
1data byte will be stored in the DDRAM
RAM read-back (not supported)
2000 Dec 0718
Loading...
+ 42 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.