I2C-bus Protocol & Applications pp SASE, March 2010

I2C-bus Protocol & Applications pp SASE, March 2010
I2C-bus Protocol & Applications
pp
SASE, March 2010
Alix Maldonado -Technical Marketing Manager
Product Line System Management
Business Line Interface Products
Agenda
I2C-bus Protocol
Applications
Support resources
Q
Questions
2
I2C-bus Protocol
3
I2C - Protocol
IIC - Inter-Integrated
g
Circuit
Logic
I2C-bus
This means:
• Decreased number of wires (reduced PCB area)
• Reduced number of chip
pp
pins
• Remove glue logic
• Clip many devices on to the bus
• Modular design: Time-to-Market
VCC
Invented by NXP!
(Philips Semiconductors)
I2C-bus developed in the late 1970’s for Philips consumer products (e.g. TVs)
Worldwide industry standard and used by all major IC manufacturers
4
I2C - Protocol
Hardware architecture
VDD
Pull up resistors
SDA
SCL
Clock out
Data out
Clock out
Data out
Clock in
Data in
Clock in
Data in
Device 1
Device 2
2 wire bus:
– SDA: Serial Data Line
– SCL: Serial Clock Line
Open-drain or open-collector output stages: wired-AND function
5
I2C - Protocol
Hardware architecture (2)
Master2
Slave2
VDD
SDA
SCL
Master1
Slave1
Multiple master
Multiple slave
Bi-directional
– Master-transmitter
– Master-receiver
– Slave-transmitter
– Slave-receiver
Data collision is taken care off
6
I2C - Protocol
Addressing / device selection
Each device is addressed individually by software
New devices or functions can be easily “clipped" on to an existing bus!
112 different addresses max with the 7-bit format ((others reserved);
) additional 1024 with
10-bit format
Address allocation coordinated by the I2C-bus committee
Programmable pins means that several of the same devices can share the same bus
Unique address per device: fully
f
fixed
f
or with a programmable part through hardware
pin's)
10-bit format use a 2 byte message: 1111 0A9A8R/W + A7A6A5A4A3A2A1A0
VDD
SDA
SCL
Master1
Slave1
Address register
Fixed
A6 A5 A4 A3 A2 A1 A0
VDD
0
0
1
1
1
0
0
Hardware
Programmable
7
I2C - Protocol
Master
Communication
Slave
Communication must start with: START condition
Start bit is always followed by slave address
Master or Slave
Sl
Slave
address
dd
is
i followed
f ll
d by
b a READ or NOT
NOT-WRITE
WRITE bit
The receiving device (either master or slave) must send an ACKNOWLEDGE bit
Communication must start with: STOP condition
START
SLAVE
ADDRESS[7]
R/W
ACK
DATA[8]
ACK
STOP
0
ACK
DATA[8]
ACK
DATA[8]
ACK
STOP
1
ACK
DATA[8]
ACK
DATA[8]
ACK
STOP
Example:
Transmit (0 = Write)
START
SLAVE
ADDRESS[7]
Receive (1 = Read)
START
SLAVE
ADDRESS[7]
8
I2C - Protocol
START & STOP conditions
Start condition - a HIGH to LOW transition on the SDA line while SCL is HIGH
Stop condition - a LOW to HIGH transition on the SDA line while SCL is HIGH
9
I2C - Protocol
Bit transfer
During data transfer, SDA must be stable when SCL is High
10
I2C - Protocol
Data transfer
Each byte has to be followed by an acknowledge bit
Number of data bytes transmitted per transfer is unrestricted
If a slave can’t receive or transmit another complete byte of data, it can hold the clock
line SCL LOW (clock stretching) to force the master into a wait state
11
I2C - Protocol
Acknowledge / NOT-Acknowledge
I2C specification: Data transfer with acknowledge is obligatory. The receiver must pull
down the SDA line during the acknowledge clock pulse so that it remains stable LOW
d i th
during
the HIGH period
i d off thi
this clock
l k pulse.
l
Scenarios with a NOT-acknowledge (NACK) (SDA staying HIGH):
1. A receiver with the address is not present in the I2C bus.
2 The receiver is performing real-time
2.
real time tasks and it cannot process the received I2C
information.
3. The receiver is the master and wants to take control of SDA line again in order to
generate a STOP command. The slave transmitter MUST then release the SDA
line when it sees the NACK so the master can send the STOP command
command.
12
I2C - Protocol
Arbitration procedure
p
Two or more masters may generate a START
condition at the same time
VDD
SDA
Arbitration is done on SDA while SCL is HIGH Sl
Slaves
are not iinvolved
l d
DATA1
DATA2
SDA
SDA
Master 1
Master 2
Summary: The master that first
sends a “1” while the other
sends a “0” loses control
(arbitration)
13
I2C - Protocol
Clock synchronization
y
during
g the arbitration procedure
p
VDD
Internal counters of masters count the LOW
and HIGH times (TL1, TH1) and (TL2, TH2)
SCL
CLK1
CLK2
SCL
SCL
Master 1
Master 2
TL1
Wired-AND SCL connection:
TL= longest TL= max (TL1, TL2 ,TLn)
TH= shortest TH= min (TH1, TH2,T
THn)
TH1
TL2
TL
TH2
TH
14
I2C - Protocol
Modes
Standard Mode
Fast Mode
Fast Mode Plus
(FM+)
Bitrate (kBit/s)
0 – 100
0 – 400
0 – 1000
0 – 1700
0 – 3400
Address (bits)
7 (10)
7 (10)
7 (10)
7 (10)
7 (10)
400
400
550
400
100
3
3
20
3
3
Capacitive Bus Load (pF)
Sink current (mA)
High Speed Mode
Fast mode Plus (FM+):
– Increased bandwidth
– Increased transmission distance (at reduced bandwidth: >> 550 pF bus load)
15
I2C - Protocol
Modes: Electrical specification
Standard Mode
Fast Mode
Fast Mode Plus
(FM+)
Bitrate (kBit/s)
0 – 100
0 – 400
0 – 1000
0 – 1700
0 – 3400
Address (bits)
7 (10)
7 (10)
7 (10)
7 (10)
7 (10)
400
400
4000
400
100
3
3
20
3
3
1000
300
120
160
80
Capacitive Bus Load (pF)
Sink current (mA)
Trise: Rise time (ns)
High Speed Mode
trise
Vcc
VIH
0.7 * VDD
Vbus
(V)
VIL
VOL
0 3 * VDD
0.3
gnd
t1
t2
0.4 V @ 3 mA sink current
t (s)
0 4 V @ 20 mA sink current (FM+)
0.4
16
I2C - Protocol
Electrical: VDD / How to calculate the pull-up
p
p resistor values
VDDvoltage can be chosen freely
Pull-up resistor value:
– Minimum
Mi i
resistor
i t value:
l
•
Determined by the I²C spec limit of 3 mA sinking current
•
R = (VDDmax– Volmax)/ 0.003A
•
Example: using a VDD = 5 ± 0.5 V: Rpull
pull-up
up = (5.5 V – 0.4 V) / 0.003 A = 1.7 kΩ
– Maximum resistor value:
•
Determined by the I²C-bus rise time requirements:
V(t1) = 0.3 * VDD = VDD (1 – 1/et1/RC); then t1 = 0.3566749 * RC
V(t2) = 0.7 * VDD = VDD (1 – 1/et2/RC); then t2 = 1.2039729 * RC
t = t2 – t1 = 0.8472979 * RC
•
For standard-mode I²C-bus: trise = 1000 ns (1 µs)
so RC = 1180.2 ns
•
E
Example:
l att a bus
b lload
d off 400 pF:
F Rmax= 2.95
2 95 kΩ
•
For Fast-Mode: I²C-bus rise time = 300 ns @ 400 pF: Rmax= 885 Ω
17
I2C - Protocol
Summary
START
HIGH to LOW transition on SDA while SCL is HIGH
STOP
LOW to HIGH transition on SDA while SCL is HIGH
DATA
8-bit word, MSB first (Address, Control, Data):
- Must be stable when SCL is HIGH
- Can change only when SCL is LOW
- Number of bytes transmitted is unrestricted
ACKNOWLEDGE
D
on each
h 9th clock
l k pulse
l d
during
i th
the HIGH period
i d
- Done
- The transmitter releases the bus - SDA goes HIGH
- The receiver pulls DOWN the bus line - SDA goes LOW
CLOCK
- Generated by the Master(s)
- Maximum speed:
p
((100, 400, 1000, 3400 kHz)) but NO min
- A receiver can hold SCL low when performing another function (transmitter in a Wait state)
- A master can slow down the clock for slow devices
ARBITRATION
- Master can start a transfer only if the bus is free
- Several masters can start a transfer at the same time
- Arbitration
A bit ti is
i d
done on SDA liline
- Master that lost the arbitration must stop sending data
18
I2C-bus Applications
19
I2C-bus Building Blocks
AD/DA
Converter
I/O
`Expander`
LED
Blinker/
Dimmer
VCC4
VCC0
VCC2
Multiplexer
& Switch
Master
Selector
VCC1
Color Mixing
LED Driver
Bus Buffer,
Voltage
Translator,
Extender
I²C in hardware
or software
emulation
Bus
C
Controller
I2C
EEPROM
LCD Driver
DIP Switch
Real Time
Clock /
Calendar
Other
Slave
VCC5
Functions with I2C
µC
I2C Bus Architecture
Devices
8
µC
Custom I2C
hardware or
software emulated
Temperature
Sensor
Other hardware
VCC3
SPI
UART
Bridge
20
Market Application Segments
Computing
Communication
Industrial
Mobile
Gaming/LED Sign
Subject / Department / Author 21
February 24, 2010
Application: Computing
Server/IPMI
Storage Server
BMC
Fan Control
Power Supply
Voltage Translation
22
Server/IPMI
Power
Supply
Temp Sensor
SA56004
LM75A
SE95/98
SC18IS600/601
SC18IM700
Bus
Controller
SC16IS650B/652B
SC16C750B/752B
Clock
8-bit Parallel
CPU
Disk
Temp Sensor
GTL2006
SB
PCI Express
PX1011A / 1012A
BMC
GbE
GbE
RAID
Disk
PCA9510A –
PCA9514A
SC16IS740/750/760
SC16IS752/762
CBTU0808
Disk
Disk
I2C Bus
PCA9508
I2C
Bus
GPIO
Disk
PCA9540
PCA9542-9548
PCI
PCI-X
I 2C
BUFFER
BUFFR
Memory
Interface
I 2C
Mux/Switch
GPIO
I 2C
DIMM
PCA9509/17
Power1
RAID
Disk
NB
BUFFER
Disk
Disk
PWM
Power2
PCA9510A –
PCA9514A
IPMB
PCA9508
PMB BUFFER
PCA9519 :
MODEM
Memory
Bus Switch
Power3
PCA9534/35
PCA9554/55
PCA9536/7/8/9
PCA9698
PCA9506
PCA9557
PCF8574/75
External
SCSI
IR receiver
LED Blinkers
I2C
BUFFER
GPIO
Internal
SCSI
Remote control
Warning LED control
PCA9633/4/5
PCA9530/31/32/33
PCA9550/51/52/53
23
Storage Server Block Diagram
PCA9519 performs level translation for BMC’s I2C ports
PCA9552 collects hard drive interrupts and turns on/off LEDs
24
Redundant BMC Implementation
= NXP I2C Solution
C 95
PCA9541
BMC
Primary
PCA9508
PCA9541
Master
Selector
PMB IPMB
BMC
Backup
B
k
SCL
SDA
INT
PCA9508
SCL
SDA
PCA9541 selects between a primary
and redundant BMC masters
PCA9508 is hot-swap bus buffer
without offset on A-side, enables
each BMC card to hot-swap without
data
d t corruption
ti
INT
INT
PMB IPMB
Buffer’s A-side
Buffer’s B-side
25
Temperature and Fan Control in IPMI
PCA9511A-14A
PCA9508 NEW
NXP I2C Solution
PCA9540B
NEW
1.1 V
IPMI
3.3 V
PCA9519
Board
Management
Control
4x4
Voltage
Translator
I 2C
SCL
SDA
Hot-swap
Buffer
SCL
SDA
Fan trays with
Identical
I2C address
MUX
SCL
SDA
PMB
Hot-swap
Buffer
EEPROM
I 2C
IPMB
SCL
SDA
GPIO
INT
PCA8574/PCF8574
PCA953x, PCA955x
LM75A
SE98
SA56004
NE1617A
NE1619
26
Internal Power Supply
Problem: Power supply requires 1.5 kV isolation on PMBus
Solution:
Opto-coupler
PCA9600, b
bus extender
S l ti
O
t
l iis required
i d – and
d P82B96 or PCA9600
t d
converts opto-coupler electrical transmit/receive signals to I2C and PMBUS
NEW
PCA9600 is 1 MHz
With improved voltage
threshold on Sx/Sy
side over P82B96
PCF8591
27
Hot-Swap External Power Supply
= NXP I2C Solution
Hot-swap Buffer
PCA9508
PCA9512A
External Power Supply
2kbit
EEPROM
NEW
3.3 V
Backplane
I2C
LM75A
5V
PCA9508
1k Ohm
Digital POT
I2C
PCF8574
Power
Supply Unit
I/O Expander
PCA8574/PCF8574
PCA953x
PCA955x
Temp Sensor
LM75A
SE97
SA56004
NE1617A
28
I2C-busVoltage Translator
2
7V – 5
5V
2.7V
5.5
Features
Capacitance/noise isolation
0
9V–5
5V
0.9
5.5
VCCB
Master
(PCA9665)
Voltage Translation
VCCA
SCLB
SCLA
SDAB PCA9517A
C 95
SDAA
Slave
EN
GND
– A-side: 0.9 V to 5.5 V
– B-side: 2.7 V to 5.5 V
TTL compatible I/O
High drive offset free A-side (6mA)
Hot-swap
Applications
pp
2.7V – 5.5 V
0.9 V – 5.5 V
Telecom
VCCB
Storage
Computing
C
i
Master
(PCA9665)
SCLB
SDAB
VCCA
PCA9508
SCLA
SDAA
S
Backplane
p
EN
Switching Power Supply
GND
29
Voltage Translation for Low Voltage Master or
Slave
1.
Low Voltage Master
3.0V – 5.5 V
VA = 1.1 V up to (VB – 1 V)
Master
A
PCA9509
Normal I/O Level
Static Level
Offset
2
2.
Slave
B
L
Low
Voltage
V lt
Slave
Sl
0.9 V – 5.5 V
2.7V – 5.5 V
Master
B
Static Level
Offset
PCA9517
A
Sl
Slave
Normal I/O Level
30
Application: Communications
Networking Line Card
GPON
Router
AdvancedTCA
31
Networking Line Card
DUART
Status Monitor
RS232
Memory Module
Module 1
Module 0
Switch Fiber
Translator
I2C MUX
Ethernet
Buffer
Transceiver
Alarm Interface
Glue Logic
Serial Transmit
Clock Distribution
Main Clock
Level Shifter
System Clock
32
GigE over Passive Optical Network (GPON)
in for 2 line cards having the same I2C
PCA9543A allows easy plug
plug-in
address without address conflict.
33
I2C Buffer for Box-to-Box Communication
Problem: Box-to-box uses more expensive connectivity solution
Solution: I2C buffer, PCA9517A, is a cost effective solution and operate
up to 400kHz
= NXP I2C Solution
A-side
PCA9517A
Redundant
Power
Supply
(RPS)
PCA9517A
2 meter cable
A-side
PCA9517A
PCA9517A
:
PCA9517A
PCA9517A
PCA9517A
PCA9517A
PCA9517A
34
Advanced TCA Basic
PICMG: PCI Industrial Computer Manufacturers Group
– Specifications body (700+ members) www.picmg.org
– AdvancedTCA is the name for PICMG 3.x standards and programs
ZONE 3
ZONE 2
ZONE 1
I2C is used for
Management in Zone
1
35
ATCA Shelf Manager: IPMB-0
Hot swap Buffer:
Hot-swap
PCA9511A: Drop-in replacement for LT4300
PCA9508: Over 25% improvement for noise
margin over LT4300 buffer
IPMB-A
IPMB-B
processor
Hot-swap
Buffer
Sx
P82B715
Lx
½ LVC4066
or 2G66
½ LVC4066
or 2G66
½ LVC4066
or 2G66
Lx
P82B715
Sx
Lx
P82B715
Sx
Buffered I2C bus
signals SCL and
SDA renamed
“LCL” and “LDA”
because
large capacitance
is allowed on them
I2C bus lines
SCL and SDA
Sx
P82B715
Lx
2G66
etc.
2G66
etc.
Repeat for up
to 24 lines
Lx
P82B715
Sx
Hot-swap
Buffer
Lx
P82B715
S
Sx
½ LVC4066
or 2G66
½ LVC4066
or 2G66
½ LVC4066
or 2G66
Lx
P82B715
Sx
Lx
P82B715
Sx
Lx
P82B715
S
Sx
Repeat for up
to 24 lines
Lx
P82B715
Sx
Backplane connector
I2C bus lines
SCL and SDA
Hot-swap
Buffer
IPMB-B
IPMB-A
Hot-swap
p
Buffer
Note:
Sx means SDA and SCL
Lx means LDA and LCL
IPMB-0
ONE plug-in card
36
Voltage Translator with Hot-Swap for Modular Systems
with I2C at Card Edge
PCA9512A – integrated rise time accelerator
PCA9508A – No rise time accelerator and no offset
Features
• Integrated IDLE/STOP for hotswap
support
• Integrated rise time accelerator
• Voltage translation support
(PCA9512A)
New Product:
PCA9508
2.7V – 5.5 V
0.9
0
9V–5
5.5
5V
VCCB
Master
(PCA9665)
SCLB
SDAB
EN
VCCA
Hot-swap
Voltage
Translator
SCLA
SDAA
Backplane
GND
37
Hot-swap for Modular Systems with I2C at Card Edge
PCA9511A – 0.6 V threshold
PCA9514A – 0.8 V threshold
Features
• Integrated IDLE/STOP for hotswap
support
• Integrated rise time accelerator
2.7V – 5.5 V
0.9 V – 5.5 V
VCCB
Master
(PCA9665)
SCLB
SDAB
VCCA
SCLA
PCA9511A SDAA
Backplane
EN
GND
38
Application: Industrial
Bus Buffers
Bridges
GPIO
39
Industrial Application using I2C bus Extender
3.3/5V
12V
12V
Twisted-pair telephone wires,
wires
USB or flat ribbon cables
Up to 15V logic levels, Include
VCC & GND
SCL
12V
3 3/5
3.3/5
NO LIMIT to the number of
connected bus devices !
3.3V
SDA
P82B96
Link parking meters
and pay stations
P82B96
P82B96
P82B96
SDA/SCL
SDA/SCL
SDA/SCL
Link vending machines
to save cell phone links
•-•-•-•-•-•-•-•-•-•--
•-•-•-•-•--
P82B96
SCL
SDA
Warehouse
pick/pack
systems
• Factory automation
• Access/alarm systems
• Video, LCD & LED display signs
• Hotel/motel management systems
• Monitor emergency lighting/exit signs
40
Long Distance I2C Communication in Noisy
Environment
Single-ended I2C
3.3 V – 5.5 V
Capacitance/noise
p
isolation
Master
Sx
Sy
12 V high drive offset free on T/R-side
PCA9601
GND
Seamless interface to opto-coupler
Differential I2C
3.3 V – 5.5 V
Convert single-ended
Differential I2C
3.3 V – 12 V
VCC
TTL compatible I/O
I2C
New:
PCA9601
(Sampling)
Tx
Ty
Cable
Rx
Ryy
New: Sample
Sept/10
5.5 V
to
Low common mode noise voltage
VCCA
Master
SCL
SDA
EN
P82B485
GND
VCC
DSCLP
DSCLM
Cable
DSDAP
DSDAM
Termination resistors
are not shown
41
Bridge Application example
BRIDGE
I2C
SPI CPU interface with the I2C devices
CPU #1
SPI
Master
I2C Slave Devices
SC18IS600/601
SPI Bus
SPI
Slave
I2C EEPROM
(PCF85116)
I2C
Master
I2C LED Dimmer
(PCA9531)
GPIO
I2C GPIO
((PCA9554A))
Peripherals
CPU #2
LEDs, Swicthes
I2C
Master
I2C Bus
42
Bridge Application example
Bridge
UART
I2C CPU interface with Modem and IrDA
SC16IS752/762
UART
U
Phone
Jack
RXA
TXA
CPU
/CTSA
/RTSA
Modem
CHA
SDA
SCL
I2C
A1
I2C
A0
INT
TXB
RXB
RXB
TXB
CHB
IrDA TRANSCEIVER
43
Bridge Application example
BRIDGE
I2C
SPI CPU interface with the I2C devices
CPU #1
SPI
Master
I2C Slave Devices
SC18IS600/601
SPI Bus
SPI
Slave
I2C EEPROM
(PCF85116)
I2C
Master
I2C LED Dimmer
(PCA9531)
GPIO
I2C GPIO
((PCA9554A))
Peripherals
CPU #2
LEDs, Swicthes
I2C
Master
I2C Bus
44
Bus Buffering for Complex Systems & “Out of
the Box”
Box Short Cable (5m) Connectivity
Problem: For redundant server, system management through the use of other kind of
connectivity is more costly and often unnecessary
Solution: I2C-bus is a cost effective solution and allows bidirectional communication from
100kHz to 400 kHz – and with PCA9517A bus buffer, it is cheap and reliable
2.7V – 5.5 V
0.9 V – 5.5 V
VCCB
Master
(PCA9665)
0.9 V – 5.5 V
2.7V – 5.5 V
VCCA
VCCA
VCCB
SCLA
SCLB
SDAA PCA9517A SDAB
SCLB
SCLA
SDAB PCA9517A
SDAA
EN
Master
((PCA9665))
EN
GND
GND
I2C
45
Bus Buffering for Complex Systems & “Out of
the Box”
Box Long Cable (> 1 km) Connectivity
Problem: Driving > 1 km typically requires very expensive discrete components
Solution: I2C-bus is a reliable,
reliable cost effective solution that allows bidirectional
communication up to 100kHz – P82B96, PCA9600, PCA9601
3.3 V – 5.5 V
3.3 V – 12 V
VCC
Master
Sx
Sy
P82B96
GND
3.3 V – 12 V
3.3 V – 5.5 V
VCC
Tx
Ty
Rx
Ry
Tx
Ty
P82B96
Rx
Ry
GND
Sx
Sy
Master
Or
Slave
I2C
46
I2C-bus GPIO
Advantages
• Resolves I2C address conflicts
• Processor pin savings
• Improved board routing
• Reduced board space
Applications
• I2C bus isolation
• LED control
• Temperature sensing
• Fan control
47
I2C - GPIOs: General Purpose I/O Expanders
1. LED driver
VDD
2. Read interrupts
I2C Bus
µC
3. Give subsystem resets
4 Control devices
4.
5. Drive alarm pins
7. Read out keys position
6. Make even LED displays
48
Application: Mobile
GPIO
LED control
49
Ultra Low-Voltage GPIOs Make Design Easier
New Dual Rail
Level Shifting PCA9575/74
Status & Control
LCD or Camera control signals:
/RESET & /INT
Keypad Control
2-wire
GPIO
GPIO
Benefits:
- Easy to add I/O (x8, x16) via I2C
- Combat “Feature Creep” by expanding I/O port
- Avoid Costly Congested PCB
Integrated Functionality:
- Programmable On/Off Control
- Monitor Input State Change
- Blinking
- Dimming
-Voltage Translation (1.1-3.6V)
-Seamless migration to newer Baseband ICs
Optimized for Mobile:
-Low Power Consumption
-Low Vcc and bus voltage 1.1V-3.6V
- Hardware / RESET pin
- Programmable Pull-up/Pull Down
- Bus Hold Feature
- Small & Thin HWQFN package (3x3x0.8mm)
Zoom-in view
50
PCA953x/5x for key pad control
• Can
C b
be placed
l
d anywhere,
h
only
l 2
2-wires
i
pass th
through
h congested
t d routing
ti area
I2C
INT output
Lid open
Standby
Reset
INT1
PCA9
953x/5xx
Enable/Disable
Shutdown
INT2
INT3
51
LED Controls via I2C
Old Design
Simple
p LCD
w/Backlight
New Design
Design, new problems
I²C Solves the problem
Aux Keypad
Aux Keypad
LED Array
LED Array
Too many
wires
through
hinge!
Only two
wires for
control!
I²C LED Blinker
Add I²C
I²C
µcontroller
µcontroller
µcontroller
52
LED Control and IO Expansion via I2C
PCA9633, PCA9634, PCA9635
PWM Control
C t l and
d Color
C l Mixing
Mi i for
f LCD Backlighting
B kli hti
IO Expanders:
PCA9537 PCA9534
PCA9537,
PCA9534, PCA9535
PCA9530-33
LED Dimmers
PCA9550-53
PCA9901 (1-Wire)
LED Blinkers
53
Application: Gaming/LED Sign
LED Controllers
54
LED Controllers For Architectural
And Accent Lighting
55
LED Controllers For Architectural And
Accent Lighting
Features Needed
● Drive Medium to High Power Multiple Color LEDs
● Provide Flexible PWM Control
● Provide Simple Interface To Master Controller / Micro
● Provide
P id Si
Simple
l C
Command
dS
Sequences T
To C
Control
t l
Brightness And Color Mixing
● Offload Micro For Repetitive Sequences/Patterns
● Reduce Micro Firmware Overhead
● Provide Solution To Drive LEDs on Long Cables
56
I2C - LED Drivers, Blinkers and Dimmers
Using
g PWM for color mixing
g in RGB LED
ONred
Voltage on RED LED driver
<Iblue>
LED
Driver
Voltage
(V)
Voltage on GREEN LED driver
ONgreen
+
<Iblue>
Voltage on BLUE LED driver
ONblue
+
<Iblue>
t (s)
Frequency > 80 .. 100 Hz
=
To perform color mixing:
– Frequency high enough so the human eye does not see the ON/OFF phases
– Brightness for each primary color (desired amount of each primary color) is controlled with the
duty cycle
– Human eye sees the sum of primary colors’ average brightness: X% Red + Y% Green + Z%
Blue
57
I2C Color Mixing LED – PCA9633
Individual + Global PWM
VDD
PCA9633
PWM 1
1 MHz
PWM 2
Global
: 3
PWM
PWM
PWM 4
I²C Bus
R
G
B
A
Osc
uC
OE
HW Addr pin
Sub1 addr
Sub2 addr.
Sub3 addr
Group addr.
addr
58
LED Architectural Lighting
3.3/5V
12V
12V
Twisted-pair telephone wires,
USB or flat ribbon cables
Up to 15V logic levels, Include VCC & GND
SCL
3.3/5
…
12V
NO LIMIT to the number of
connected bus devices !
3.3V
SDA
PCA9600
PCA9600
PCA9600
PCA9600
SDA/SCL
SCL
PCA9626
SDA
SDA/SCL SDA/SCL
SDA/SCL
SDA/SCL SDA/SCL
PCA9626 PCA9626 PCA9626
PCA9600
5V
PCA9665
Bus Controller
PCA9626
PCA9626
PCA9626
PCA9626
PCA9626
PCA9626
PCA9626
ASIC/FPGA
59
LED Controllers For Signage And Large
Displays
Gaming
60
LED Controllers For Signage And Large
Displays
Features Needed
● Drive Low To Medium Power Color LEDs
● Constant
C
t t Current
C
t Drive
Di F
For Predictable
P di t bl B
Brightness
i ht
● Serial Shift Data Mode
● LED Output Error Detection
61
PCA9922 Serial Interface LED Controller
Constant Current Output LED Driver for large LED signs
Features
• 25 MHz serial interface
• 3.3 V to 5.5 V operation
• 8 LED low side constant current outputs
• Global control for the 8 LED outputs
variable between 15 mA to 60 mA
• 5 mA to 60 mA maximum current for all 8
output channels set by an external resistor
• Constant current matching at 25 °C,
VDD = 5.0 V
• Bit-to-bit: ±6 %
• Chip-to-chip: ±10 %
• Gradual turn-on/turn-off output to limit EMI
• Error detection mode for line open, output
short to ground, LED open and LED short
• -40 C to +85 C operation
Usage
5V
The PCA9922 is a pin-to-pin functionally
equivalent 5 V alternative for the ST2221A and
STP08CDC596.
62
LED Controllers Example
Applications
Subject / Department / Author 63
February 24, 2010
LED Application – Mobile
LED Blinking, Dimming, Fun lighting Color mixing
Part Type: PCA9632
Flash LED Success Story in Mobile (SSL3250A)
65
LED Application – Consumer
Mouse & Pointing Devices
Part Type: PCA9633, 4, 5
LED Controller Success Story in JVC
Application: JVC LCD Backlight for Car Audio
Part Type: PCA9624PW
D
Description:
i ti
8
8-channel
h
l LED controller
t ll (40 V / 100 mA)
A)
EAU: 1 M pcs
67
LED Controller – PCA9633
Application: Mouse, Headset, Keyboard
LED Application – Automotive Backlight
Application: PCA9626 Based Single Chip Automotive Cluster Lighting
Customer: Continental
EAU:
+12V
3 LEDs in
series per
color:
Current
limiting
series
resistors
R,G,B
, ,
3 Output
Channels
used for each
dotted line
PCA9626
24 Channel LED Controller
I2C Control
LED Controller – PCA962x
Application: Pachinko and Slot
Machines
Party Type: PCA9622DR/S900
PCA9624DR/S900
PCA9626DR/S900
D
Description:
i ti
40 V /100 mV
V8
8-, 16-,
16 and
d
24- channel LED controllers
LED MATRIX
Which tools to help y
you win ?
I2C Demoboards
Demo and Evaluation Boards
72
Evaluation/Demo Board List
OM#
Description
OM6270
SPI/I2C to UART Bridge Demoboard (SC16IS750)
OM6271
SPI to I2C Master Bridge Demoboard (SC18IS600)
OM6272
UART to I2C Master Bridge Demoboard (SC18IM700)
OM6273
SPI/I2C to Dual UART/IRDA/GPIO Demoboard (SC16IS752)
OM6274
I2C to SPI Master Bridge Demoboard (SC18IS602)
OM6275
I2C 2005-1 Demo Board (15 I2C devices w/USB control & GUI)
OM6276
PCA9633 Demo Board (Four Color PWM LED Control with Microcontroller)
OM6277
PCA9564 Eval Board (I2C Master)
OM6278
I2C 2002-1A Eval Board (11 I2C devices w/printer port control & GUI)
OM6279
LED Dimmer Demo Board
OM6281
PCA9698 Demo Board (Advanced 40-bit GPIO with PCA9530 LED blinker)
OM6276
PCA9633 Demo Board (Four Color PWM LED Control)
OM6285
I2C 2002-1A Eval Board (without/printer port control & GUI)
OM6290
I2C –bus LCD driver evaluation board
OM10088
PCF8562 LCD Segment Display
More information: www.ics.nxp.com/support/tools/interface
www ics nxp com/support/tools/interface
NXP Bridge IC – Demo Board Kits
I2C/SPI slave to UART UART to I2C master
SC16IS7xx
SC18IM700
SPI to
t I2C master
t
SC18IS600
I2C tto SPI master
t
SC18IS602
Kit include
Kits
i l d
Kit include
Kits
i l d
Kits include
Kits include
•Sample code: RS232,
RS485, and IrDA
•User Manual
•Sample code: RS232
and NXP I2C devices
•User Manual
•Sample code: SPI
and NXP I2C devices
•User Manual
•Sample code: I2C
and NXP SPI devices
•User Manual
y Benefit
Key
Key
y Benefit
Key
y Benefit
Key
y Benefit
Easy interface to
UART host and
various I2C and
GPIO devices. Onboard I2C EEPROM
and I2C LED Dimmer
Easy interface to SPI host
and various I2C and GPIO
devices. On-board I2C
EEPROM and I2C LED
Dimmer
Easy interface to
I2C/SPI host and IrDA,
RS232/RS485, and
GPIO devices.
Selectable I2C or SPIbus interface
Up to 5Mbps!
OM6270 – SC16IS750
OM6273 – SC16IS752
OM6271
OM6272
Easy interface to I2C
host and SPI and GPIO
devices.
Up to 4 SPI chip selects
OM6274
Experience the variety of I²C peripherals with the
latest I²C Training
g Board
Fifteen different I²C devices on one board allows easy experimentation and training.
(PCA9531, PCA9536, PCA9538, PCA9540B, PCA9541, PCA9543A, PCA9551, PCF8563, PCF8574, PCF85116-3, SA56004,
SE98)
Add Extra I/O Ports, Temperature Sensors, LED Drivers, Real-time Clock, I²C Bus
Switching
S it hi
USB Connection to trial version (only devices on board and that fixed address is
operational) Graphics Interface for Windows PC/Laptop
www.ics.nxp.com/support/boards/i2c20051/
p
pp
Target Board & USB based GUI (400 kHz) #OM6275
Get the color right with the single chip
four color LED driver (R G B ?)
Individual and Global PWM to set your perfect color and brightness or blink
I²C interface for easy connection to Micro or Baseband IC
Demo board with on board micro (LPC900) and FETs #OM6276
Stand alone demo Board #OM6282
www.ics.nxp.com/support/boards/pca9633/
Blink an LED without bit banging
Dim and LED without burning a PWM on the MCU
Two PWMs to map across 2,4,8,16 outputs
– 25 mA per pin
I²C interface for easy connection to Micro or Baseband IC
Demo Board with on board micro #OM6279
– PCA9533, PCA9531
– On-board NXP MCU demonstrates capabilities
– www.ics.nxp.com/support/boards/leddemo
Easily Test and Demonstrate the PCA9698 40-Bit
GPIO
Demonstrates a wide range of functions
1MHz Fast-mode Plus I2C-bus serial interface with 30mA drive
2.3 to 5.5V operation with 5.5V-tolerant I/O
40 configurable I/O pins that default to inputs at power-up
Designed for live insertion in PICMG applications
Onboard PCA9530 LED dimmer/blinker for LED applications
Low standby current
Demo board #OM6281
www.ics.nxp.com/support/boards/pca9698/
Train on many I²C peripherals using parallel
printer port to PC
Eleven different I²C devices on one board allows easy experimentation and training
(LM75A, P82B96/PCA9600, PCA9501, PCA9515, PCA9543, PCA9550, PCA9551,
PCA9554, PCA9555, PCA9561, PCF8582C-2)
Add Extra I/O Ports, Temperature Sensors, LED Drivers, II²C
C Bus Switching
I²C Bus adapter uses parallel printer port for connection to full version (all devices and
addresses operational) of Graphics Interface for Windows PC/Laptop
www.ics.nxp.com/support/boards/i2c20021/
Target Board plus parallel printer port control (100 kHz) & GUI #OM6278
Target Board only #OM6285
NXP I2C-bus LCD driver evaluation board (OM6290)
Th NXP I2C-bus
C b LCD h
l
h controlled
t ll d b
C b LCD
The
has th
three di
displays
each
by an I2C-bus
driver.
The segment display has a backlight driven by LED driver PCA9633.
The board includes an NXP ARM7 microcontroller LPC2148
Demo board #OM6290
Easily drive a LCD Segment Display with a very
small MCU and PCF8562
Good for a User Interface at the front panel of a system
Scalable to match the complexity of the LCD display
Simple code using industry-standard 8051 core
Easily reprogram micro via USB adapter (#OM10083)
http://www.teamfdi.com/products/lcddemo/lcddemo.shtml
Demo Board with on board micro #OM10088
PCF
8562
MCU
II²C
C
LCD
Driver
LCD
Glass
“Glass”
COG is
i an option
ti
Easy Access to I2C Technical Help
Three easy ways to ask technical questions and obtain answers
Access I2C Discussion Forum from > www.nxp.com/i2c
CONTACT link on every
Product Information Page
www nxp com/support
www.nxp.com/support
Send e-mail directly to
pp @ p
[email protected]
82
I2C Device Data Sheets, IBIS models Application
Notes and Other Information
Product family
descriptions
line cards
cross reference
data sheets
Link to
app notes
models
user guides
PLL design
software
datasheets
www.nxp.com/i2c
or
www.nxp.com/i2clogic
83
Interface Products Internet Support
General: http://www.nxp.com/support
I2C Control:
http://www.nxp.com/i2c
[email protected] (E-mail Support)
http://forums nxp com/forums (Forum)
http://forums.nxp.com/forums
All other Interface Products
http://www.ics.nxp.com/interface/
[email protected]
84
Questions?
85
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement