The circuit below shows how to interface a Serial I2C EEPROM, namely the 2402 to a PIC16F84
via a simple 2 wire interface ! In addition, the circuit has a MAX232 IC for the Voltage level shifting
so that it can be connected to a serial COM port( RS-232C ) of a PC.
The following code,
demonstrate how to uses the 2402 external EEPROM to read and write to an external serial
EEPROM and then display out the results via an RS-232 terminal program running on a PC.