OM6279,598 NXP Semiconductors, OM6279,598 Datasheet - Page 24
![DEMO BOARD LED DIMMER](/photos/9/8/90803/om6279_sml.jpg)
OM6279,598
Manufacturer Part Number
OM6279,598
Description
DEMO BOARD LED DIMMER
Manufacturer
NXP Semiconductors
Datasheet
1.OM6279598.pdf
(45 pages)
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
935283363598
Philips Semiconductors
void InsertBigDelay(void)
{
}
//****************************************************************************
// Program the 3 PCA9531 (R/G/B) with the same parameter(s)
//****************************************************************************
void Write_RGB_Controller(void)
{
}
//****************************************************************************
// GPIO Interrupt Handling function
// One shot mode (through /INT) or
// permanent action detection (then Input PCA9554 Reg# polling)
//****************************************************************************
void GPIO_Interrupt_Handler(void)
{
9397 750 14062
Application note
InsertDelay(255);
InsertDelay(255);
InsertDelay(255);
InsertDelay(255);
InsertDelay(255);
Message1.address = PCA9531_R_WR;
I2C_Write(&Message1);
Message1.address = PCA9531_G_WR;
I2C_Write(&Message1);
Message1.address = PCA9531_B_WR;
I2C_Write(&Message1);
Message2.address
Message2.buf
Message2.nrBytes
Buffer2[0]
Message3.address
Message3.buf
Message3.nrBytes = 2;
if (PCA9555_Int==0)
{
I2C_WriteRepRead(&Message2,&Message3);
if (Buffer3[0] ==0xFF & Buffer3[1] ==0xFF);
else
{
}
InsertDelay(255);
InsertDelay(255);
InsertDelay(255);
I2C_WriteRepRead(&Message2,&Message3);
Snapshot_2_1st_Byte
Snapshot_2_2nd_Byte
if (Snapshot_1_1st_Byte == Snapshot_2_1st_Byte & Snapshot_1_2nd_Byte == Snapshot_2_2nd_Byte & GPIO_Polling_On == 1)
Snapshot_1_1st_Byte = Buffer3[0];
Snapshot_1_2nd_Byte = Buffer3[1];
= PCA9555_WR;
= Buffer2;
= 1;
= 0;
= PCA9555_RD;
= Buffer3;
= Buffer3[0];
= Buffer3[1];
//subaddress = 0
// read 2 bytes
// Action on pushbutton detected
Rev. 01 — 7 January 2005
// 1st read the PCA9555
// 2nd read the PCA9555
// load the 2nd read data (Byte 1) in a temp memory
// load the 2nd read data (Byte 2) in a temp memory
// load the 1st read data (Byte 1) in a temp memory
// load the 1st read data (Byte 2) in a temp memory
// Compare the 2 read data in the temp memories
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
LED dimmer demoboard
AN10315
24 of 45