Circuit to Read and Write Data in a 24C02 using Arduino Mega (Part 1 of 5)
We had already seen the circuit to read and write data to 24C04 using Arduino mega in one of the previous blog. Here, we will design a circuit to read and write data to 24C02 using arduino mega. Circuit is done as shown in the following diagram. Before reading this blog, it is better to read my blog which explains the procedures for writing and reading data from 24C04. 24C02 is a serial electrically erasable and programmable read-only memory (EEPROM) which provides 256 bytes (256 * 8 = 2048 bits) of memory. From the circuit it is clear that, we need only a little time to complete such a circuit. But, we have to spend a lot of time to develop a program to write and read data to 24C02. Programming arduino for 24C02 is a bit complicated and you must read the datasheet of 24C02 which will give you a clear idea about the working of 24C02. I spend around one month to analyse the datasheet and to develop the program. So, if you find it difficult to understand the datasheet during initial reading, don’t left it. Try to spend more and more time for the datasheet.
Pin out Diagram of 24C02
We will see the arduino program to write 170 (1 0 1 0 1 0 1 0) to the 255th memory byte of 24C02 in the next part.