Quantcast
Channel: EngineersGarage - eeprom
Viewing all articles
Browse latest Browse all 20

EEPROM (24C02) Memory Reset using 8051 microcontroller (AT89C51)

$
0
0

 

 

AT24C02 is a two-wire serial EEPROM from Atmel. 24C02 is an 8 pin IC and reads 8 bit data serially. Its memory size is 2KB. Pins 1- 3 are address pins which are connected to ground. Pin 4 is GND; Pin 5 is SDA (serial data); and pin 6 is SCL (serial clock input). Pin 7 is WP (write protect) pin and is connected to GND. Pin 8 is Vcc for providing power supply. For details on its interfacing and operation, refer interfacing 24C02 with 8051.

The microcontroller monitors the start, stop, acknowledge, send, save, read instructions of EEPROM. The memory can be reset after a power loss, a system reset or an interruption in protocol. The project resets memory after a write and read operation continuously.
 
To reset memory, EEPROM is clockednine times followed by the start condition. For this, a high SDA signal is looked for in each cycle while SCL is high, i.e., acknowledge function is called 9 times.
 
 
SDA and SCL pins are connected to P1.0 and P1.1 of AT89C51 and through these pins, serial data transfer takes place. Port P2 of microcontroller is used for connecting LCD data pin while control pins of LCD (RS, RW & EN) are connected to P3.0, P3.1 and P3.6 of the controller. For more details, refer LCD interfacing with AT89C51.  

 

Start condition:
Any read or write operation in EEPROM is initiated by Start condition. This occurs when there is a high to low transition of SDA while SCL is high. (Refer the following diagram) This tells the EEPROM that words from the controller are ready for it. SCL is set low at the end of start condition. This is because any read or write operation first involves transfer of some words to EEPROM. That requires a low to high transition of clock corresponding to each bit of the word.
 

Clocking:
When a sequence of words is transferred to EEPROM, a clock is needed to be sent by the controller after transmission of each word. This is required so that the controller can receive its acknowledgement. Clock is just a high transition followed by a low transition of SCL when the initial clock signal is low.
 
 

 

 

Developed By: 

Himanshu Choudhary

AT24C02 is two-wire serially programmable EEPROM. This means that for programming, the data and control signals are provided serially along with clock signals from the other wire. The read-write operations are accomplished by sending a set of control signals including the address and/or data bits from a microcontroller.

This project demonstrates the memory reset operation of a 24C02 IC by using AT89C51. For basic operations of AT24C02, refer interfacing serial EEPROM with 8051. It writes & reads a byte to/from the EEPROM displaying it on a 16x2 LCD, and then resets the memory. The results can be monitored on the LCD display.
Serial EEPROM (24C02) Memory Reset using 8051 Microcontroller (AT89C51)
texas instrumentsTI launchpad
Banner_TI

Everything you need to get started

Start with a LaunchPad™ development kit

Start with a LaunchPad™ development kit

Know More >>

Stack on BoosterPack™ plug-in modules

Stack on BoosterPack™ plug-in modules

Know More >>

Scalable software tools for all experience levels

Scalable software tools for all experience levels

Know More >>

GET INSPIRED

Featured projects using TI LaunchPad kit

Control a CC3200 LaunchPad with your phone using Blynk

Control a CC3200 LaunchPad with your phone using Blynk

Know More >>

IoT real-time dashboard with PubNub & TI LaunchPad

IoT real-time dashboard with PubNub & TI LaunchPad

Know More >>

Multi-Touch with CapTIvate

Multi-Touch with CapTIvate

Know More >>

GET STARTED

TI LaunchPad™ development kits

Connected MCU

Connected MCU 

Know More >>

MSP430™ low power MCU

MSP430™ low power MCU

Know More >>

C2000™ performance  MCU

C2000™ performance MCU

Know More >>

Hercules™ safety MCU

Hercules™ safety MCU 

Know More >>

This Code is only visible to Registered users. Please Login/Register

 

Serial EEPROM (24C02) Memory Reset using 8051 Microcontroller (AT89C51) circuit
16 x 2 LCD | 16x2 Character LCD Module
LCD

 

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are...

AT89C51 Microcontroller, Atmel 89C51 Controller Image
AT89C51 Microcontroller

AT89C51 is an 8-bit microcontroller and belongs to Atmel's 8051 family. ATMEL 89C51...

24C02 | EEPROM AT24C02 Image
Serial EEPROM AT24C02

AT24C02 is an electrically erasable and programmable ROM. It has a 2Kbits of memory size arranged in 32 pages of 8 byte each. There...

Download:
FLVMP43GP

Viewing all articles
Browse latest Browse all 20

Trending Articles