OM6277,598 NXP Semiconductors, OM6277,598 Datasheet - Page 29

DEMO BOARD FOR PCA9564

OM6277,598

Manufacturer Part Number
OM6277,598
Description
DEMO BOARD FOR PCA9564
Manufacturer
NXP Semiconductors
Datasheet

Specifications of OM6277,598

Main Purpose
Interface, I2C Controller
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
PCA9564
Primary Attributes
I2C Bus Controller, 1 8-Bit GPIO, 1 8-Bit LED Dimmer
Secondary Attributes
8 Momentary Switches, 23 LEDs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
568-4001
935283226598
if (Operation_EEprom == 0)
{
}
if (Operation_EEprom == 1)
{
EEPROM_Scan_Done = 0;
Message4.nrBytes = 2;
I2C_Write(&Message3);
InsertDelay(2);
I2C_Read(&Message4);
switch (Buffer4[1])
{
case 0x00 : if (MinPtrFound_0 == 0)
case 0x01 : if (MinPtrFound_1 == 0)
case 0x02 : if (MinPtrFound_2 == 0)
case 0x03 : if (MinPtrFound_3 == 0)
// If more patterns, add the additional “case” here
case 0x99 : EndofMessages = 1;
}
EEPROM_Scan_Done = 1;
Message4.nrBytes = 1;
//I2C_WriteRepRead(&Message3,&Message4);
I2C_Write(&Message3);
InsertDelay(2);
I2C_Read(&Message4);
InsertDelay(2);
Message4.nrBytes = Buffer4[0];
//I2C_WriteRepRead(&Message3,&Message4);
I2C_Write(&Message3);
InsertDelay(2);
I2C_Read(&Message4);
InsertDelay(2);
{
}
if (MinPtrFound_0 == 1)
{
}
break;
{
}
if (MinPtrFound_1 == 1)
{
}
break;
{
}
if (MinPtrFound_2 == 1)
{
}
break;
{
}
if (MinPtrFound_3 == 1)
{
}
break;
break;
MinPtr_0 = NextEEaddress;
MinPtrFound_0 = 1;
MaxPtr_0 = NextEEaddress;
MinPtr_1 = NextEEaddress;
MinPtrFound_1 = 1;
MaxPtr_1 = NextEEaddress;
MinPtr_2 = NextEEaddress;
MinPtrFound_2 = 1;
MaxPtr_2 = NextEEaddress;
MinPtr_3 = NextEEaddress;
MinPtrFound_3 = 1;
MaxPtr_3 = NextEEaddress;
// We're going to write one byte (subaddress)
// EEPROM reading - Function (search min and max / function)
// We're going to read 2 bytes (length of descriptor + Function)
// Min and Max search for function 0
// Min and Max search for function 1
// Min and Max search for function 2
// Min and Max search for function 3 (not defined in the EEPROM)
// End of data in the EEPROM
// EEPROM reading - Data in a specified function
// We're going to read one byte (length of descriptor)
// Read the EEPROM
// Buffer4[0] contains the length of the descriptor
// First byte of data is the descriptor length
// Read the entire descriptor from the eeprom
// Buffer4 contains the data from the eeprom
// ----------------------------------------------------------
// At this point we have the data from the eeprom in Buffer4
29

Related parts for OM6277,598