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

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
extern void I2C_WriteRepRead(I2C_MESSAGE *msg1, I2C_MESSAGE *msg2);
extern void I2C_Read(I2C_MESSAGE *msg);
extern void I2C_ReadRepRead(I2C_MESSAGE *msg1, I2C_MESSAGE *msg2);
extern void I2C_ReadRepWrite(I2C_MESSAGE *msg1, I2C_MESSAGE *msg2);
extern void Blinker_Up_Down(void);
extern void LV51_LPC932(void);
extern void ReadEEprom(short int MinEEPtr, short int MaxEEPtr, int Operation_EEprom, int Operation_Function);
extern void Preset_Patterns_PCA9532(void);
extern void I2C_Address_Search(void);
extern void Init_Slaves(void);
extern void Init_LPC932(void);
extern unsigned char Search_Routine(unsigned char min, unsigned char max);
extern void GPIO_Interrupt_Handler(void);
extern void InsertDelay(unsigned char delayTime);
static sbit LED0
static sbit LED1
static sbit LED2
static sbit LED3
static sbit PCA9554_Int = P3^2;
sbit PCA9564_Reset
Mainloop.c
//*************************************************************************
//
//
//
//
//
//
// File Name:
// Created:
// Modified:
// Revision:
//
//*************************************************************************
#include <REG51RX.H>
#include "i2cexprt.h"
#include "PCA9564sys.h"
#include "I2C_Routines.h"
idata BYTE
idata BYTE
idata BYTE
idata BYTE
idata I2C_MESSAGE Message1;
idata I2C_MESSAGE Message2;
idata I2C_MESSAGE Message3;
idata I2C_MESSAGE Message4;
static short int ProgramCounter = 0;
//****************************************************************************
// Initialization Functions at power up, Reset or program change
//****************************************************************************
static void Init_PCA9564(void)
{
}
static void Init_Slaves(void)
{
PCA9564_Reset = 1;
PCA9564_Reset = 0;
InsertDelay(1);
PCA9564_Reset = 1;
AUXR = 2;
I2C_InitializeMaster(0x00);
Message1.address
Message1.buf
Message1.nrBytes
Buffer1[0]
Buffer1[1]
Buffer1[2]
Buffer1[3]
Buffer1[4]
Buffer1[32];
Buffer2[32];
Buffer3[16];
Buffer4[16];
COPYRIGHT (c)
mainloop.c
June 2, 2003
November 07, 2003
1.00
P H I L I P S
= PCA9531_WR;
= Buffer1;
= 7;
= 0x11;
= 0x80;
= 0x80;
= 0x80;
= 0x80;
--
= P2^2;
= P2^3;
= P2^4;
= P2^5;
= P3^4;
ALL RIGHTS RESERVED
2003 BY PHILIPS SEMICONDUCTORS
P R O P R I E T A R Y
// LD[9:12] mapped with LV51's P2[2:5]
// Interrupt PCA9554 mapped with LV51's P3[2]
// Reset PCA9564 mapped with LV51's P3[4]
// PCA9564 reset time = 1 ms
// External memory space
// 330 kHz
// autoincrement + register 1
// default prescaler pwm0
// default duty cycle for pwm0
// default prescaler pwm1
// default duty cycle for pwm1
--
21

Related parts for OM6277,598