OM6279,598 NXP Semiconductors, OM6279,598 Datasheet - Page 35
![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
}
//****************************************************************************
// Function emulating a Battery Discharge
// Pushing Key 3 discharges the battery (level can be seen with LD5 to LD8
// Pushing 6 resets the emulation (battery fully charged again
//****************************************************************************
void Battery_Status (void)
{
9397 750 14062
Application note
}
Message1.address = PCA9531_R_WR;
Message1.nrBytes = 3;
Buffer1[0]
Buffer1[1]
Buffer1[2]
I2C_Write(&Message1);
Message1.address = PCA9531_G_WR;
I2C_Write(&Message1);
Message1.address = PCA9531_B_WR;
I2C_Write(&Message1);
Buffer3[1]
int Battery_Level = 0xFF;
Buffer3[0]
Message1.address = PCA9531_M_WR;
Message1.nrBytes = 7;
Buffer1[0]
Buffer1[1]
Buffer1[2]
Buffer1[3]
Buffer1[4]
Buffer1[5]
Buffer1[6]
I2C_Write(&Message1);
while (Buffer3[1]!=0xDF)
{
I2C_Write(&Message1);
InsertDelay(150);
Buffer3[1] = 0xFF;
GPIO_Interrupt_Handler();
GPIO_Polling_On = 1;
if (Buffer3[0] == 0xFB)
{
if (Battery_Level != 0x00) Battery_Level--;
if (Battery_Level == 0xC0)
{
}
if (Battery_Level == 0x80)
{
Message1.address = PCA9531_M_WR; // PCA9531 Misc
Message1.nrBytes = 2;
Buffer1[0]
Buffer1[1]
I2C_Write(&Message1);
Message1.address = PCA9531_M_WR; // PCA9531 Misc
Message1.nrBytes = 6;
= 0x15;
= 0x00;
= 0x00;
= 0xFF;
= 0xFF;
= 0x11;
= 0x97;
= 0xF0;
= 0x97;
= 0x08;
= 0x55;
= 0x32;
= 0x15;
= 0x54;
// end if
// PCA9531 Red
// subaddress = 15
// all Red LED's off
// all Red LED's off
// PCA9531 all Green LED's off
// PCA9531 all Blue LED's off
// Clear Key END pushed
// Clear Key 1 pushed
// PCA9531 Misc
// subaddress = 0x01
// Blinking rate
// High Duty Cycle when Battery charge > 50%
// default prescaler pwm1 = 1 Hz
// default duty cycle for pwm1 = 50%
// LD5 to LD8 on --> Indicate battery fully charged
// RG LED Green blinking at BR0
// Loop as long as END button not pushed (Fun pattern 2 programming active)
// Check if an action on pushbutton happened
// Enable PCA9555 polling option (see GPIO_Interrupt_Handler function)
// Key 3 pushed - Battery is discharging when Key 3 pushed (continuous)
// subaddress = 0x05
// LD5 now off
Rev. 01 — 7 January 2005
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
LED dimmer demoboard
AN10315
35 of 45