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

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
}
//****************************************************************************
// Delay time in milliseconds
// Insert a wait into the program flow
// Use Timer 1
// Do not use an interrupt
// Oscillator running at 11.0592 MHz
// 6 clock cycles per clock tick
// Therefore, we need 1843 cycles for 1msec
//****************************************************************************
void InsertDelay(unsigned char delayTime)
{
}
//*************************************************************************************
// Toggles pushbutton S8 in order to determine which
//*************************************************************************************
static void Program_Selection(void)
{
Buffer1[5]
Buffer1[6]
I2C_Write(&Message1);
Message2.address
Message2.buf
Message2.nrBytes
Buffer2[0]
Message3.address
Message3.buf
Message3.nrBytes
unsigned char i;
TMOD = (TMOD & 0x0F) | 0x01;
TR1 = 0;
for (i=0;i<delayTime;i++)
{
}
if (Buffer3[0] == 0x7F)
{
}
switch (ProgramCounter)
{
TF1 = 0;
TH1 = 0xF8;
TL1 = 0xCD;
TR1 = 1;
while(TF1==0);
if (ProgramCounter < 4)
{
}
else
{
}
case 1 : LED0 = 1;
case 2 : LED0 = 0;
case 3 : LED0 = 1;
case 4 : LED0 = 0;
ProgramCounter++;
ProgramCounter = 1;
LED1 = 1;
Buffer3[0]
Blinker_Up_Down();
break;
LED1 = 1;
Buffer3[0] = 0xFF;
Preset_Patterns_PCA9531();
break;
LED1 = 0;
Buffer3[0]
LV51_LPC932();
break;
LED1 = 0;
Buffer3[0] = 0xFF;
I2C_Address_Search();
break;
= 0x00;
= 0x00;
= PCA9554_WR;
= Buffer2;
= 1;
= 0;
= PCA9554_RD;
= Buffer3;
= 1;
= 0xFF;
= 0xFF;
// LD1 to LD4 off
// LD5 to LD8 off
// LD[1:8] off
// subaddress = 0
// read one byte
// 16-bit timer
// set timer1 to 1843
// since it's an up-timer, use
// Start timer
// wait until Timer1 overflows
// Push on S8 detected
// Program selection incremented
// Program selection back to 1
// LD9
// LD10 off
// Blinker PSC and PWM Up/down program is selected
// LD9
// LD10 off
// PCA9531 preset patterns program selected
// LD9
// LD10 on
// LPC932 LED programming program is selected
// LD9
// LD10 on
// LPC932 I2C address search program selected
program the user wants to run
22
off
on
off
on
(65536-1843) = 63693 = F8CD

Related parts for OM6277,598