I2C_Write(data);
I2C_Stop();
AbsDelay(5);
// read data from 24C64 (8k x 8) EEPROM
I2C_Start();
I2C_Write(0xA0);
I2C_Write(address>>8);
I2C_Write(address);
I2C_Start();
I2C_Write(0xA1);
EEPROM_data=I2C_Read_NACK();
I2C_Stop();
Msg_WriteHex(EEPROM_data);
}
6.9
Interrupt
The Controller provides a multitude of interrupts. Some of them are used for system functions and
are thus not available to the user. The following interrupts can be utilized by the user.
Table: Interrupts
© 2008 Conrad Electronic
Libraries
148
// write Data
// delay for EEPROM Write Cycle
// DEVICE ADDRESS : A0
// HIGH WORD ADDRESS
// LOW WORD ADDRESS
// RESTART
// DEVICE ADDRESS : A1
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers