Philips AN10369 Application Note page 13

Uart/spi/i2c code examples
Table of Contents

Advertisement

Philips Semiconductors
}
/********************** I
__irq void I2C_ISR()
/* I
/* Start condition transmitted */
void ISR_8()
Application note
2
{
int temp=0;
temp=I2STAT;
switch(temp)
{
case 8:
ISR_8();
break;
case 24:
ISR_18();
break;
case 40:
ISR_28();
break;
default :
break;
}
VICVADDR=0xFF;
}
2
C states*/
{
/* Port Indicator */
IOCLR=0x10;
/* Slave address + write */
I2DAT=0x74;
/* Clear SI and Start flag */
I2CONCLR=0x28;
/* Port Indicator */
IOSET=0x10;
}
Rev. 01 — 06 April 2005
Philips ARM LPC microcontroller family
C ISR **************************/
AN10369
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
13 of 17

Advertisement

Table of Contents
loading

Table of Contents