+ All Categories
Home > Engineering > EEPROM Part-21

EEPROM Part-21

Date post: 18-Aug-2015
Category:
Upload: techvilla
View: 56 times
Download: 2 times
Share this document with a friend
Popular Tags:
7
www.techvilla.org.in 1 TECHVILLA www.techvilla.org.in
Transcript

www.techvilla.org.in

1

TECHVILLA

www.techvilla.org.in

www.techvilla.org.in

EEPROM

• Introduction

• Read/Write single character, number and string

www.techvilla.org.in

EEPROM

The EEPROM• EEPROM stands for Electrically Erasable Programmable Read Only

Memory.

• This is a non-volatile memory which means any data which will be written to the EEPROM will remain in the memory even when no power is supplied and it can be read at any time to retrieve the data.

• AVR has an inbuilt EEPROM.

www.techvilla.org.in

Registers

The registers associated with EEPROM of the AVR are

• EEAR : EEPROM Address Registers

• The EEPROM module needs a 9 bit address to access the 512 Bytes of memory. So the address Register is divided into two registers the EEARH and EEARL for high and low bits.

www.techvilla.org.in

Registers

• Bits 15 to 9 are reserved

• Bits 8 to 0 are R/W bits and are used to specify the location where the data is to be written or the data has to be read from.

• EEDR

• The EEDR is the EEPROM data register and any kind of value can be written. This register value will be written to the EEPROM.

www.techvilla.org.in

Registers

• EECR

• This is the EEPROM Control Register.

• Bits 7 to 4 are reserved.

www.techvilla.org.in

Bits 0 -4

• EERIE : The 3rd bit is EEPROM Ready Interrupt Enable. Writing EERIE to one enables the EEPROM Ready Interrupt if the I bit in SREG is set.Writing EERIE to zero disables the interrupt. The EEPROM Ready interrupt generates a constant interrupt when EEWE is cleared.• EEMWE: EEPROM Master Write Enable. This bit must be made 1 to

write data to the EEPROM• EEWE: EEPROM Write Enable. To write data to the EEPROM this bit

must be made 1 but only after EEMWE is made 1.• EERE: EEPROM read enable. This bit must be made 1 to read from

the AVR.


Recommended