INTEGRATED CIRCUITS
APPLICATION NOTE
AN10146-02
I2C 2002-1A EVALUATION BOARD
LM75A, PCA9501, PCA9515, PCA9543, PCA9550, PCA9551, PCA9554,
PCA9555, PCA9561, PCF8582C-2, P82B96
Abstract
–
Philips Semiconductors families of I2C devices are detailed in this application note that discusses
evaluation board set up and operation including typical applications.
Jean-Marc Irazabal -
PCA Technical Marketing Manager
Steve Blozis -
PCA International Product Manager
Phil Tracy -
Engineering Manager
Specialty Logic Product Line
Logic Product Group
Philips Semiconductors
26 February, 2003
TABLE OF CONTENTS
OVERVIEW .......................................................................................................................................................................3
D
ESCRIPTION
.....................................................................................................................................................................3
O
RDERING
I
NFORMATION
..................................................................................................................................................4
I²C COMMUNICATION BASICS ...................................................................................................................................5
I2C 2002-1A KIT INFORMATION..................................................................................................................................7
B
LOCK
D
IAGRAM
..............................................................................................................................................................7
I2C 2002-1A E
VALUATION
B
OARD
..................................................................................................................................8
I2C 2002-1A E
VALUATION
B
OARD
..................................................................................................................................8
I
2
C A
DDRESSES AND
B
USES
..............................................................................................................................................8
I2CPORT
V
2 A
DAPTER
C
ARD
..........................................................................................................................................9
OPERATIONS INSTRUCTIONS ..................................................................................................................................11
S
TARTING THE
S
OFTWARE
– Q
UICK
O
VERVIEW
..............................................................................................................11
B
EFORE
S
TARTING
..........................................................................................................................................................14
PCA9501 ........................................................................................................................................................................15
PCA9515 ........................................................................................................................................................................18
PCA9543 ........................................................................................................................................................................19
PCA9550/PCA9551 .......................................................................................................................................................23
PCA9554 ........................................................................................................................................................................27
PCA9555 ........................................................................................................................................................................30
PCA9561 ........................................................................................................................................................................32
PCF8582C-2...................................................................................................................................................................37
P82B96 ...........................................................................................................................................................................39
LM75A ...........................................................................................................................................................................44
FREQUENTLY ASKED QUESTIONS .........................................................................................................................46
ADDITIONAL INFORMATION ...................................................................................................................................47
APPENDIX 1 - I2C 2002-1A EVALUATION BOARD BILL OF MATERIAL.........................................................48
APPENDIX 2 - I2C 2002-1A EVALUATION BOARD PICTURE .............................................................................49
2
OVERVIEW
Description
The
I2C 2002-1A Evaluation Board
is a low cost I
2
C based platform that allows Field Application Engineers, designers
and educators to use their Personal Computer (PC) to easily test and demonstrate new I2C devices in a platform that
allows multiple operations to be performed in a setting similar to a real system environment.
The I2C 2002-1A Evaluation Board Kit includes:
• I2C 2002-1A Evaluation Board
– 5” x 5” 2 layer printed circuit board featuring 11 different I
2
C slave devices:
LM75A – Temperature Sensor
PCA9501 – 8-bit I/O Expander with 2Kbit serial EEPROM, Interrupt and 6 address pins
PCA9515 – I
2
C Repeater
PCA9543 – 4 Channel I
2
C Switch
PCA9550 – 2-bit LED Blinker
PCA9551 – 8-bit LED Blinker
PCA9554 – 8-bit I/O Expander with Interrupt
PCA9555 – 16-bit I/O Expander with Interrupt
PCA9561 – 6-bit I2C DIP Switch
PCF8582C-2 – 2Kbit serial EEPROM
P82B96 – I
2
C Bus Buffer
•
I2CPORT v2 Adapter Card
- plugs into the PC parallel port of the PC and provides the interface between the PC (bus
master) and the I
2
C bus slaves on the evaluation board at speeds over 100 kHz.
•
4-wire Connection Cable
- connects the I2CPORT v2 Adapter Card with the I2C 2002-1A Evaluation Board at
normal SDA/SCL signal levels.
•
USB adapter card
– Connects the I2CPORT v2 Adapter Card with the Evaluation Board through an USB cable (cable
not included) via the P82B96.
NOTE: This is not a normal USB connection; the USB cable and USB connectors are used as the means to carry
the SCL/SDA signals at the special P82B96 voltage levels.
•
9 V Power supply
- provides power to the evaluation board devices and LEDs. Operates from 100 to 240 volts at 47 to
66 Hz, AC Edison plug on one side and 9 volt DC mini-plug on the other side.
• CD-ROM
– contains operating instructions and Win-I2CNT software
•
Operating Instructions
– detailed application notes, software operating instructions and set up procedures.
3
•
Win-I2CNT (32-bit)
- application software that provides the device specific and universal mode graphical
interface between the PC and I2CPORT v2 Adapter Card to control the I
2
C bus slaves featured on the I2C
2002-1A Evaluation Board. Compatible with Windows 95/98/ME/2000/NT and XP operating systems.
The devices used on the evaluation board are representative of the various general purpose I
2
C product families being
introduced by Philips. They were selected for these following reasons:
•
PCA9501 -
To show the programming difference between the PCF8574 8-bit GPIO (of which the PCA9501 has
the same state machine) and the PCA9554 8-bit GPIO (more complex state machine) and to showcase this new
device, that has both the PCF8574 GPIO and PCF8582C-2 2Kbit serial EEPROM contained in the same
package, with 6 address pins that allow up to 64 identical devices on the same bus.
•
PCA9561 -
To show its use as a 6-bit DIP switch replacement.
•
PCA9543 -
To show its use as a 2 channel multiplexer/switch.
•
PCA9554/55 -
To show how I/O expanders can be used as LED drivers, how they can be used to provide input
and output to the bus master and to show the size comparison of the PCA9555 in three different packages: The
large Surface Mount (SOIC - D), the smaller Thin Small Surface Package (TSSOP - PW) and the very small
Heat Sink Very Thin Quad Flat Pack No Leads (HVQFN - BS).
•
PCA9550/51 -
To show how the LED Blinkers are used to blink LEDs and to show how unused bits can be
utilized as general purpose inputs and outputs.
•
PCF8582C-2 -
To show 2Kbit EEPROMs and have two identical devices to multiplex with the PCA9543.
•
LM75A -
To show temperature sensors and have two identical devices to multiplex with the PCA9543.
•
PCA9515 and P82B96 -
To show that I2C bus expanders allow larger loading on the I
2
C bus and to be able to
connect a second card to the first evaluation board and to show how the P82B96 can be used to send both I2C
clock and data signals and power supply over USB cables or telephone wires.
Caution:
1. The USB connectors are NOT running USB signals; they are just used as a convenient hardware
wiring system. NEVER connect to a PC's USB port.
2. NEVER connect the telephone wires to your home telephone jack. They are just a convenient
hardware wiring system to communicate from one evaluation board to another.
Some of the experiments and demonstrations that can be performed using the I2C 2002-1A Evaluation Board include:
•
Program and Blink LEDs using the GPIOs and/or the LED Blinker devices
o
Learn differences in programming and blinking LEDs using the older and newer GPIO and the 2/8-bit
LED Blinkers.
o
See the LED Blinker continue to blink LEDs when the I2C bus is disconnected.
•
Command temperature sensors and 2K EEPROMs with same and different addresses through the
PCA9543 two channel switch used as a multiplexer and for voltage translation between 3.3 and 5V
o
Learn how the multiplexer, 2Kbit serial EEPROM and temperature sensor work.
o
See what happens when the master sends commands to devices with the same address at the same time.
o
See the temperature sensor response at different voltage levels.
•
Program the Multiplexed I2C EEPROM as a DIP switch replacement
Ordering Information
The complete I2C 2002-1A Evaluation Board Kit consists of the:
•
I2C 2002-1A Evaluation Board
•
I2CPORT v2 Adapter Card for PC parallel port
•
4-wire connector cable
•
USB Adapter Card
•
9 V power supply
•
CD-ROM with operating instructions and Win-I2CNT software
Purchase the I2C 2002-1A Evaluation Board Kit at
www.demoboard.com
4
I²C COMMUNICATION BASICS
•
General Characteristics
The I²C protocol allows data to be transferred between devices using two open-drain (or open-collector) bi-
directional lines. One line is the
serial clock (SCL)
and the other is the
serial data (SDA).
The bus master generates
the
Start
conditions, the clock signals on SCL, as well as the
Stop
condition. An
Acknowledge
is transmitted on the
bus after each byte is sent over the bus.
Bit Transfer
Information is transferred on an 8-bit word basis, Most Significant Bit (MSB) first.
- Device Address + Read/Write bit: specify which device is addressed (7 bits) and what type of operation needs
to be performed
- Control register: The data can sometimes be used by specific chips as an extension of the address (pointer
information) or be specific commands that prepare chips for further data bytes.
- Data.
I
2
C protocol for information transfer on the I
2
C bus, carried by the SDA line, specifies:
- Signal level must not change whenever SCL is High
- Level changes only when SCL is Low
- No restriction on the number of bytes sent during the same communication
Start and Stop conditions are special exceptions to these rules.
A Start condition is signaled by a High-Low transition of SDA while SCL is high.
A Stop condition is signaled by a Low-High transition of SDA while SCL is high.
The figures below explain the different types of I²C transfer.
Blue: commands and data sent by the master
Yellow: data sent by the addressed slave.
1.
Write to a Slave device
S
ADDRESS
W
A
DATA
A
DATA
A
P
•
“0” = Write
Each byte is acknowledged by the slave device
The master is a
MASTER-TRANSMITTER:
It transmits both Clock and Data during the communication
2.
Read from a Slave device
S
ADDRESS
R
A
DATA
A
DATA
A
P
“1” = Read
Each byte is acknowledged by the master device
(except the last one, just before the STOP condition)
Acknowledged by the slave device
The master is a
MASTER-TRANSMITTER
and then a
MASTER-RECEIVER:
- It transmits the Clock all the time
- It sends the Slave Address data and then becomes a receiver
The address byte is acknowledged by the slave device, and then received data is acknowledged by the master.
When the final byte is received the master generates a "not acknowledge,” followed by a Stop."
5