I2C Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551

Similar documents
PCA bit I 2 C LED driver with programmable blink rates INTEGRATED CIRCUITS May 05. Product data Supersedes data of 2003 Feb 20

LED controllers. Voltage-switch drivers, constant-current drivers, and Flash LED drivers

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 Feb May 02. Philips Semiconductors

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data Supersedes data of 2003 May Oct 01. Philips Semiconductors

PCA General description. 8-bit Fm+ I 2 C-bus LED driver

PCA General description. 4-bit Fm+ I 2 C-bus LED driver

INTEGRATED CIRCUITS. PCA bit I 2 C LED dimmer. Product data sheet Supersedes data of 2004 Sep Oct 01. Philips Semiconductors

CAT bit Programmable LED Dimmer with I 2 C Interface FEATURES DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCUIT

CAT bit Programmable LED Dimmer with I 2 C Interface DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATION CIRCUIT

I2C Encoder. HW v1.2

EVDP610 IXDP610 Digital PWM Controller IC Evaluation Board

PCU General description. 24-bit UFm 5 MHz I 2 C-bus 100 ma 40 V LED driver

PCA9633DEMO User Manual. Overview

PCA General description. 4-bit Fm+ I 2 C-bus low power LED driver

PCA General description. 16-bit Fm+ I 2 C-bus LED driver

PCA9955A. 1. General description. 16-channel Fm+ I 2 C-bus 57 ma/20 V constant current LED driver

3-Channel Fun LED Driver

I2C Demonstration Board I 2 C-bus Protocol

LP3943/LP3944 as a GPIO Expander

DS1307ZN. 64 X 8 Serial Real Time Clock

DS4000 Digitally Controlled TCXO

L, LTC, LTM, LT are registered trademarks of Linear Technology Corporation. PowerPath

PCA9956B. 1. General description. 24-channel Fm+ I 2 C-bus 57 ma/20 V constant current LED driver

PCU General description. 16-channel UFm I 2 C-bus 57 ma constant current LED driver

L, LTC, LTM, LT are registered trademarks of Linear Technology Corporation. PowerPath

IS31FL CHANNEL FUN LED DRIVER July 2015

RB-Dev-03 Devantech CMPS03 Magnetic Compass Module

CoolEx User Manual 2008 XDIMAX LTD. Revision 1.0

PCA General description. 2. Features and benefits. 16-bit I 2 C-bus LED dimmer

PCA General description. 16-channel, 12-bit PWM Fm+ I 2 C-bus LED controller

PCA General description. 2. Features. 4-bit I 2 C-bus LED dimmer

INTEGRATED CIRCUITS. PCA9544A 4-channel I 2 C multiplexer with interrupt logic. Product data sheet Supersedes data of 2004 Jul 28.

IS31FL3190 IS31FL CHANNEL FUN LED DRIVER. Preliminary Information November 2015

IS31FL3208A 18-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. August 2018

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

Programming the Dallas/Maxim DS MHz I2C Oscillator. Jeremy Clark

16 Channels LED Driver

DS1803 Addressable Dual Digital Potentiometer

PCA General description. 16-bit Fm+ I 2 C-bus 100 ma 40 V LED driver

INTEGRATED CIRCUITS. Control signals. 8 bits

DALI slave, one to four channels PWM and I2C output

IS31FL3209 IS31FL CHANNELS LED DRIVER; 1/24 DC SCALING WHITE BALANCE. December 2017

Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study

IS31FL3731 AUDIO MODULATED MATRIX LED DRIVER. May 2013

VIO 0.47 F CS2 CS1 SW6 SW5 SW2 SW1 PGND. Figure 1 Typical Application Circuit (6 8)

16-channel, 12-bit PWM Fm+ I 2 C-bus LED controller

DS1065 EconOscillator/Divider

IS31FL3746A 24-RGB MATRIX LED DRIVER. Preliminary Information September 2018

10 Zone RGB-W LED Controller

Pin Assignment SEG28 SEG29 SEG30 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 VDD SDA SCL COM0 COM1 COM2 COM3 COM4 COM5 COM6 COM

Servo click. PID: MIKROE 3133 Weight: 32 g

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

2F. No.25, Industry E. 9 th Rd., Science-Based Industrial Park, Hsinchu, Taiwan Application Note of OGM220, AN001 V1.8

IS31FL3206 IS31FL CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY. Preliminary Information May 2018

Trademarks & Copyright

Experiment#6: Speaker Control

PVCC SW6 SW5 SW2 SW1 IS31FL3742 CS30 CS29 CS2 20 CS1. Figure 1 Typical Application Circuit (Single Color: 30x6)

Advanced Analog Technology, Inc. October 2009 AAT1301 PACKAGE PACKING TEMP RANGE MARKING. T: Tape and Reel. 20 C to +85 C.

IS31FL CHANNELS LED DRIVER. February 2018

DS1307ZN. 64 X 8 Serial Real Time Clock PIN ASSIGNMENT FEATURES

IP1 Datasheet PWM OUTPUT WITH SINGLE CHANNEL ADC MODULE FEATURES DESCRIPTION CONNECTOR DETAILS

HT16C22/HT16C22G RAM Mapping 44 4 LCD Controller Driver

Example KodeKLIX Circuits

Controlling DC Brush Motor using MD10B or MD30B. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

DS1307/DS X 8 Serial Real Time Clock

SMD I 2 C Digital RGB Color Sensor CLS-16D17-34-DF6/TR8

INTEGRATED CIRCUITS. PCA channel I 2 C multiplexer and interrupt logic. Product data Supersedes data of 2001 May 07.

Hello and welcome to this Renesas Interactive Course that provides an overview of the timers found on RL78 MCUs.

PCA General description. 2. Features. 8-bit I 2 C-bus LED dimmer

High Accuracy Ambient Light Sensor with I 2 C Interface

16-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

EIE/ENE 334 Microprocessors

UM User manual for di2c demo board. Document information

Fully Integrated Proximity and Ambient Light Sensor with Infrared Emitter and I 2 C Interface

RAM Mapping 72*4 / 68*8 / 60*16 LCD Driver Controller HT16C24/HT16C24G

IS31FL3235A 28 CHANNELS LED DRIVER. February 2017

CAT Channel I 2 C-bus LED Driver with Programmable Blink Rate

IS31FL3236A 36-CHANNEL LED DRIVER; SELECTABLE PWM FREQUENCY IS31FL3236A. February 2018

EVAL-ADM8843. Evaluation Board for Charge Pump Driver for LCD White LED Backlights. Preliminary Technical Data

INF8574 GENERAL DESCRIPTION

NJU6063. RGB LED Controller Driver with PWM Control FEATURES BLOCK DIAGRAM NJU6063V - 1 -

LED Driver 5 click. PID: MIKROE 3297 Weight: 25 g

MAX x 8 Key-Switch Controller and LED Driver/GPIOs with I2C Interface and High Level of ESD Protection

HT16C23/HT16C23G RAM Mapping 56 4 / 52 8 LCD Driver Controller

IS31FL CHANNEL LIGHT EFFECT LED DRIVER. November 2017

3.3V regulator. JA H-bridge. Doc: page 1 of 7

FAH4830 Haptic Driver for DC Motors (ERMs) and Linear Resonant Actuators (LRAs)

8-Port I/O Expander with LED Intensity Control, Interrupt, and Hot-Insertion Protection

SW2 SW1 CS39 CS38 CS37 CS39 CS38 CS3 CS2 CS1 CS2 CS1. Figure 1 Typical Application Circuit (Single Color: 39 9)

Functional description of BSD-01 Module. Features

ZKit-51-RD2, 8051 Development Kit

U2C-1SP4T-63H. Typical Applications

PCA General description. 2. Features. 8-bit I 2 C-bus LED driver with programmable blink rates

USB-PWM10. User s Manual

IS32FL DOTS MATRIX LED DRIVER WITH INDIVIDUAL AUTO BREATH FUNCTION. Preliminary Information February 2017

I 2 C RedBot & DC Motor Servo Motor Control

IS31FL DOTS MATRIX LED DRIVER WITH INDIVIDUAL AUTO BREATH FUNCTION. January 2018

OUT1 OUT2 OUT3 OUT4 IS31FL3237 OUT34 OUT35 OUT36. Figure 1 Typical Application Circuit

FEATURES MECHANICAL SPECIFICATIONS ELECTRICAL SPECIFICATIONS PRODUCT INTERFACE

CAT bit Programmable LED Dimmer with I 2 C Interface

Transcription:

I2C 2005-1 Demonstration Board LED Dimmers and Blinkers PCA9531 and PCA9551 Oct, 2006

Intelligent I 2 C LED Controller RGBA Dimmer/Blinker /4/5 Dimmer PCA9531/2/3/4 1 MHz I²C Bus PCA963X PCA9533 PCA9533 PWM 1 PWM 2P Global P I²C Bus W : : W PWM : PWM 2 : PWM n M M HW Addr pin Osc Osc 160 Hz Osc 25 MhZ Osc 400 khz PCA953X PCA9533 PCA9533 PWM 1 OE HW Addr pin addr Sub1 addr Sub3 addr Sub2 addr. Group addr. 8-pin = no HW pin 10-pin = 2 HW pins 16-pin = 7 HW pins Blinker PCA9551/2/3/4 400 khz I²C Bus HW Addr pin PCA955X PCA9533 PCA9533 PWM 1 PWM 2 Osc 40 Hz Osc P W M : 2

PCA953x and PCA955x LED Dimmers & Blinkers In a nutshell 2, 4, 8 and 16 bits Open Drain output drivers that can drive up to 25 ma each Fully internal oscillator generates the programmed blinking or dimming schemes Each LED driver can be programmed to be: Fully OFF (default power up state) Fully ON Blinking / Dimming at Frequency_0, Duty_Cycle_0 Blinking / Dimming at Frequency_1, Duty_Cycle_1 8-bit resolution for the Blinking / Dimming frequencies and duty cycle Hex value Frequency Duty Cycle LED DIMMERS 0 (00h) 255 (FFh) 160 Hz 1 / 1.6 s 0 % 99.6 % 2.3 V to 5.5 V power supply with 5 V tolerant I/O s Device portfolio: # of bits 2 4 8 16 LED BLINKERS PCA9550 PCA9553 PCA9551 PCA9552 LED BLINKERS 0 (00h) 255 (FFh) 40 Hz 1 / 6.4 s 100 % 0.4 % LED DIMMERS PCA9530 PCA9533 PCA9531 PCA9532 3

LED Lighting 3.3/5V 12V 12V Twisted-pair telephone wires, USB or flat ribbon cables Up to 15V logic levels, Include V CC & GND SCL 3.3/5 12V NO LIMIT to the number of connected bus devices! 3.3V SDA P82B96 P82B96 P82B96 P82B96 P82B96 5V SDA/SCL Slave Slave SDA/SCL SDA/SCL Slave SCL SDA/SCL SDA Slave PCA9665 Bus Controller ASIC 4

: 4-bit I 2 C LED Driver 4 LED drivers On, Off, Individual brightness, individual brightness + global blink/dim control Individual 8-bit (256 step) linear brightness control Global 8-bit linear brightness or blinking control 5 V tolerant programmable totem-pole / open drain structure: 10 ma source, 25 ma sink capability Output state change at ACK or STOP command Active low /OE input pin allowing hardware dimming / blinking Software programmable I 2 C addresses Sub calls allow groups of devices to be addressed at the same time Fast Mode Plus compatible I 2 C protocol 25 MHz fully internal oscillator Power Supply = 2.3 V to 5.5 V, - 40 to 85 C PCA9634 8-bit and PCA9635 16-bit also available I²C Bus Global PWM R PWM G PWM B PWM W PWM RGBW LED Mixing Part Number Package Dev per bus D16 SO16 126 DP1 TSSOP8 1 DP2 TSSOP10 4 PW TSSOP16 126 TK HVSON8 1 BS HVQFN16 126 5

Bus Applications Each has an individual address set by the seven hardware pins and then up to four more sub call addresses that are programmed via the I²C-bus to allow individual control of each node and also groups of nodes to be controlled with one I²C command. Individual 1 2 3 4 5 6 7 Sub 1 Sub 2 Sub 3 Sub 4 126 126 126 126 126 126 126 125 124 123 125 124 123 125 122 122 122 121 121 121 120 120 119 119 118 118 117 5V PCA9665 Bus Controller ASIC 6

Demonstration Board SW 5 & 6 used to turn bus pull up resistors on for only the master and termination cards. P82B96 buffers micro onto the high drive I²C-bus SW 4 send Output Enable signal to other boards RJ45 connections & cable used for I²C-bus, power and /OE signal between cards Push Buttons control micro and LEDs 60 V 350 ma FETs for higher brightness LED SW 7 sends 9V battery power over the cables Reprogram micro using ICP SW 8 turns on 9V battery power SW 1-3 sets address pins to GND or V CC allowing up to 8 board to be connected to the same micro 7

PCA9531 LED Blinker Hardware and Register definition 8

Device Hardware and Register definition INPUT Input Register: read back LED driver logic state Programmable I 2 C Addresses 8 devices in the same bus LSx LED Selector: selects the state of the LED Driver 5 V tolerant I 2 C bus 5 V tolerant, 25 ma capable open drain LED drivers Device powers up in a known state Active low RESET pin initializes the device in the same known state PSCx - Prescaler register: defines the frequency to be used for the LED PWMx Pulse Width Modulation register: defines the duty cycle for the LED x = 0 or 1 Internal oscillator does not require any additional components 9

Demonstration Board: PCA9551 Hardware Introduction MAIN I 2 C bus SDA SCL LEDs with different colors Only 4 outputs connected to LEDs From PCA9538 I/O0 PCA9551: I 2 C address: A[2:0] = 000 Address = 0xC0 Active Low RESET input controlled by the PCA9538 I/O0 needs to be configured as an output 10

Demonstration Board PCA9551 Hardware Introduction 11

Switched 3.3 V. Demonstration Board PCA9531 Hardware Introduction Secondary I 2 C buses controlled by the PCA9543A Active Low RESET input controlled by the PCA9538 I/O1 and I/O4 need to be configured as outputs Unswitched 5 V MAIN I 2 C bus From PCA9538 I/O1. From PCA9538 I/O4 PCA9543A: I 2 C address: A[1:0] = 01 Address = 0xE2. LEDs with different colors RGB LED controlled by the two PCA9531 s PCA9531 device 1 and device 2: I 2 C address: A[2:0] = 100 Address = 0xC8 12

Demonstration Board PCA9531 Hardware Introduction 13

REGISTERS definition and PROGRAMMING PCA953x and PCA955x LED Dimmers and Blinkers have the same register mapping Registers: INPUT: allows reading of the LED driver outputs PSC0 & PWM0: define the Blinking or Dimming scheme 0 (8-bit value each) PSC1 & PWM1: define the Blinking or Dimming scheme 1 (8-bit value each) LS0 (up to LS3): defines the LED driver output state (4 possible states per output) A Blinking/Dimming scheme is defined by its period (PSC) and duty cycle (PWM) Programming differences Frequency and duty cycles calculation LED output state programming (2 bits per output) Value LED DIMMERS LED BLINKERS 00 01 OFF ON ON OFF 10 Rate 0 Rate 0 11 Rate 1 Rate 1 256 - PWMx 256 ON OFF ON PSCx + 40 1 PWMx 256 ON = OFF = OFF ON OFF ON OFF ON PSCx + 1 160 LED BLINKERS LED DIMMERS Auto Increment feature Allows more than one register to be programmed (or read) with the same command Bit 4 in the Control Register (2 nd byte - contains the # of the register to be addressed) INPUT PSC0 PWM0 PSC1 PSC2 LS0 LS1 LS2 LS3 LED ON LED OFF 14

Hands-On 1: PCA9551GUI 1. Power sequence the board Board OFF then ON 2. Open the PCA9551 GUI: Device LED Blinkers and Dimmers PCA9551 8-bit LED Blinker 3. Read all the registers. What do you read? All the LED outputs are OFF Both blinking rates default to slower blinking rate (once every ~ 6.4 s, 50 % duty cycle) 4. Program the 4 LEDs connected to the PCA9551 as following: LED0 ( Y): ON LED1 ( B): Blinking Rate 0 with Blinking Rate 0 = 1s 75 % duty cycle LED2 ( G): OFF LED3 ( R): Blinking Rate 1 with Blinking Rate 1 = 0.2 s (5 Hz) 25 % duty cycle Observe the result 5. Check the Auto Write option Program LED0 to LED3 to Blinking Rate 0 Use the maximum frequency for Blinking Rate 0 (40 Hz) and change the duty cycle from min to max back and forth. What do you observe? Using the maximum frequency of the LED blinkers allow brightness control by changing the duty cycle. However, the human eye can observe some flickering (no perfect dimming) due to the fact that the dimming frequency is not high enough. Effective dimming is achieved with a PWM frequency > 80 to 100 Hz 15

RGB COLOR MIXING Human eye sees the sum of primary colors average brightness: X % Red + Y % Green + Z % Blue 16

Using PWMs To Mix Colors In RGB LED To perform color mixing: Frequency high enough so that 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 17

PCA9531 LED Dimmer GUI Device LED Blinkers and Dimmers PCA9531 8-bit LED Dimmer Blinking / Dimming frequency and duty cycle selection Register Hexadecimal values LED output state selection I 2 C address: PCA9551 = 0xC0 PCA9531 = 0xC8 Auto Write Feature 18

Hands-On: RGB Color mixing using the 2 PCA9531 devices and the PCA9543A 1. Power sequence the board Board OFF then ON 2. a) Open the PCA9531 GUI: Device LED Blinkers and Dimmers PCA9531 8-bit LED Dimmer b) Open the PCA9543A GUI: Device Multiplexers/Switches PCA9543A 2-channel switch with Interrupt Logic Reminder Architecture (see slide PCA9531 Hardware introduction): a) The 2 PCA9531 have the same I 2 C address and the PCA9543A allows to select one or the other (or both) b) The RGB LED is connected as following: - Red: LED4 of PCA9531 Device 1 (PCA9543A Channel 0) - Green: LED5 of PCA9531 Device 1 (PCA9543A Channel 0) - Blue: LED4 of PCA9531 Device 2 (PCA9543A Channel 1) 3. Use the PCA9543A and PCA9531 GUIs to control individually the 3 LEDs PCA 9543A 0 1 PCA9531 (1) PCA9531 (2) 4 5 4 Rate 0 Rate 1 Rate 0 19

Hands-On: RGB Color mixing using the 2 PCA9531 devices and the PCA9543A When it is understood how the RGB LEDs are controlled, program the two PCA9531 devices to display a not too bright purple color using the right amount of Red, Green and Blue (Hint: Use the PCA9543A (Switch) and PCA9531 GUIs to control individually the 3 LEDs) Blink the LEDs displaying purple color Now, program the two PCA9531 devices to display a not too bright yellow color. Blink the LEDs displaying Yellow color 20

Hands-On 3: Using the Expert Mode Write the following I 2 C sequences (Red) using the Expert Mode and execute it step by step 1. Connect Jumpers SDA and SCL to Master 0 (Higher position) and enable Jumper JP15 (INT_IN) LED INT_IN should be ON 2. Power sequence the board Board OFF then ON 3. Write to the PCA9551 to have LED0/LED3 blinking at 1 Hz, 50% duty cycle and LED1/LED2 blinking at 2 Hz, 50 % duty cycle 4. Write to the 2 PCA9531 to have the 8 discrete blinking at 1 Hz, 50 % duty cycle and the RGB LED displaying a white color 5. Run the sequence above during 2s 6. Reset the 2 PCA9531 and the PCA9551 during 2s 7. Clear the reset conditions and loop back to the 1 st instruction Hints, methodology and Technical Information: Use the GUI s to define the register values (easier than calculating with the formulas) Resets are active low PCA9551 Reset line controlled by I/O0 ; PCA9531 Reset line controlled by I/O4 21

1= AUTO INCREMENT 23

24

25