Академический Документы
Профессиональный Документы
Культура Документы
*************************************************
// SIRI 11.09 //
***********************************************************************************
**************/
#include <LPC214X.H>
main()
{
while(1)
{
void Set_Address()
{
unsigned long i;
find:
I2C0CONSET = 0x10; /* Set STO bit */
I2C0CONCLR = 0x08; /* Clear I2C interrupt
bit */
I2C0CONCLR = 0x40; /* Disable I2C interface
*/
return(Address);
while(I2C0STAT != 0x18);
while(I2C0STAT != 0x28);
while(I2C0STAT != 0x40);
I2C0CONSET = 0x04;
I2C0CONCLR = 0x08;
while(I2C0STAT != 0x50);
data = I2C0DAT ; /* Data from EEPROM */
I2C0CONCLR = 0x04;
return(data);
}