欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA128L-8AL 参数 Datasheet PDF下载

ATMEGA128L-8AL图片预览
型号: ATMEGA128L-8AL
PDF下载: 下载PDF文件 查看货源
内容描述: [RISC Microcontroller, 8-Bit, FLASH, 8MHz, CMOS, PQFP64, 14 X 14 MM, 1 MM HEIGHT, 0.80 MM PITCH, PLASTIC, MS-026AEB, TQFP-64]
分类和应用: 时钟微控制器外围集成电路
文件页数/大小: 391 页 / 6192 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA128L-8AL的Datasheet PDF文件第18页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第19页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第20页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第21页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第23页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第24页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第25页浏览型号ATMEGA128L-8AL的Datasheet PDF文件第26页  
The EEPROM Address Registers – EEARH and EEARL – specify the EEPROM address in the  
4K bytes EEPROM space. The EEPROM data bytes are addressed linearly between 0 and  
4096. The initial value of EEAR is undefined. A proper value must be written before the  
EEPROM may be accessed.  
EEPROM Data  
Register – EEDR  
Bit  
7
6
5
4
3
2
1
0
MSB  
R/W  
0
LSB  
R/W  
0
EEDR  
Read/Write  
Initial Value  
R/W  
0
R/W  
0
R/W  
0
R/W  
0
R/W  
0
R/W  
0
• Bits 7..0 – EEDR7.0: EEPROM Data  
For the EEPROM write operation, the EEDR Register contains the data to be written to the  
EEPROM in the address given by the EEAR Register. For the EEPROM read operation, the  
EEDR contains the data read out from the EEPROM at the address given by EEAR.  
EEPROM Control  
Register – EECR  
Bit  
7
6
5
4
3
EERIE  
R/W  
0
2
EEMWE  
R/W  
0
1
EEWE  
R/W  
X
0
EERE  
R/W  
0
EECR  
Read/Write  
Initial Value  
R
0
R
0
R
0
R
0
• Bits 7..4 – Res: Reserved Bits  
These bits are reserved bits in the ATmega128 and will always read as zero.  
• Bit 3 – EERIE: 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 inter-  
rupt when EEWE is cleared.  
• Bit 2 – EEMWE: EEPROM Master Write Enable  
The EEMWE bit determines whether setting EEWE to one causes the EEPROM to be written.  
When EEMWE is written to one, writing EEWE to one within four clock cycles will write data to  
the EEPROM at the selected address. If EEMWE is zero, writing EEWE to one will have no  
effect. When EEMWE has been written to one by software, hardware clears the bit to zero after  
four clock cycles. See the description of the EEWE bit for an EEPROM write procedure.  
• Bit 1 – EEWE: EEPROM Write Enable  
The EEPROM Write Enable Signal EEWE is the write strobe to the EEPROM. When address  
and data are correctly set up, the EEWE bit must be set to write the value into the EEPROM.  
The EEMWE bit must be set when the logical one is written to EEWE, otherwise no EEPROM  
write takes place. The following procedure should be followed when writing the EEPROM (the  
order of steps 3 and 4 is not essential):  
1. Wait until EEWE becomes zero.  
2. Wait until SPMEN in SPMCSR becomes zero.  
3. Write new EEPROM address to EEAR (optional).  
4. Write new EEPROM data to EEDR (optional).  
5. Write a logical one to the EEMWE bit while writing a zero to EEWE in EECR.  
6. Within four clock cycles after setting EEMWE, write a logical one to EEWE.  
The EEPROM can not be programmed during a CPU write to the Flash memory. The software  
must check that the Flash programming is completed before initiating a new EEPROM write.  
Step 2 is only relevant if the software contains a boot loader allowing the CPU to program the  
22  
ATmega128(L)  
2467P–AVR–08/07  
 复制成功!