I2C PROTOCAL
I2C PROTOCAL Code for I2C to EEPROM TASK TO WRITE VALUES IN EEPROM AND READ FROM EEPROM ? //I2C #include <LPC21xx.h> #include "delayheader.h" #include "lcdheader.h" #include "i2c_header.h" int main() { char c; PINSEL0 |=(1<<4)|(1<<6); //pin configure PINSEL0 &=~(1<<5)|(1<<7); lcdinit(); //lcd initialization lcdstring("I2C PROGRAM"); lcdcmd(0xc0); I2CONSET= (1<<6); //this register 6th bit is ENABLE the I2C Block I2SCLH=75; //refer notes given clcok I2SCLL=75; I2C_START(); //FOR I2C start funtion I2C_DATA(0xA0); // device addres (memory addres) I2C_DATA(0x00); I2C_...