OM6279,598 NXP Semiconductors, OM6279,598 Datasheet - Page 16

DEMO BOARD LED DIMMER

OM6279,598

Manufacturer Part Number
OM6279,598
Description
DEMO BOARD LED DIMMER
Manufacturer
NXP Semiconductors
Datasheet

Specifications of OM6279,598

Main Purpose
Lighting, RGB LED Controller
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
PCA9564PW, PCA9555PW, PCA9531PW, PCA9533DP/01
Primary Attributes
I2C Bus Controller, 1 8-Bit GPIO, 1 8-Bit LED Dimmer
Secondary Attributes
Different Demonstration Programs Through MCU
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
568-4003
935283363598
Philips Semiconductors
9397 750 14062
Application note
4.8 How to code I
I
number of bytes to be sent/received and a pointer to a buffer with the data are used:
typedef struct
{
} I2C_MESSAGE;
The user must then use a variable with an ‘I2C_MESSAGE’ type and a variable acting as
a buffer that will be filled with the message to send (Write operation) or filled with the
message received (Read operation).
Example 1: Program the PCA9531_Red with BR0 at (max frequency, 50 % duty cycle)
idata I2C_MESSAGE
idata BYTE Buffer1[16];
Message1.nrBytes = 7;
Message1.buf
Message1.address = 0xCA;
Buffer1[0]
Buffer1[1]
Buffer1[2]
Buffer1[3]
Buffer1[4]
Buffer1[5]
Buffer1[6]
I2C_Write(&Message1);
Example 2: Read the PCA9555 Input port Registers. To perform this operation a Write to
idata I2C_MESSAGE Message2;
data I2C_MESSAGE
idata BYTE Buffer2[16];
idata BYTE Buffer3[16];
Message2.nrBytes = 1;
Message3.nrBytes = 2
Message2.buf
Message3.buf
Message2.address = 0x46;
Message3.address = 0x47;
Buffer2[0] = 0x00;
2
C messages are described using a ‘structure’ type definition where the I
BYTE
BYTE
BYTE
address;
nrBytes;
*buf;
and BR1 at (max frequency, 10 % duty cycle), with LD13 to LD16 blinking at
BR0 and LD17 to LD20 blinking at BR1.
the device must been initiated first in order to provide the command code (or
pointer information) to decide which register(s) needs to be read. Then a
read is performed.
2
= Buffer2;
= Buffer3;
C commands using the P89LV51RD2/PCA9564
= Buffer1;
= 0x11;
= 0x00;
= 0x80;
= 0x00;
= 0x19;
= 0x00;
= 0x00;
Message3;
Message1;
Rev. 01 — 7 January 2005
// slave address to sent/receive message
// number of bytes in message buffer
// pointer to application message buffer
// I2C address PCA9531 Red (RGB LEDs)
// auto increment + register 1
// max frequency
// 50 % duty cycle
// max frequency
// 10 % duty cycle
// Red RGB LED's = off
// Red RGB LED's = off
// Function sending the I2C sequence
// The 1st message is 1 byte long
// The 2nd message is 2 bytes long;
// I2C address PCA9555 Write
// I2C address PCA9555 Read
// Set the command byte / pointer
1st part of the message)
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
LED dimmer demoboard
AN10315
2
C address, the
16 of 45

Related parts for OM6279,598