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

ATMEGA64A-AU 参数 Datasheet PDF下载

ATMEGA64A-AU图片预览
型号: ATMEGA64A-AU
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器,带有64K字节的系统内可编程闪存 [8-bit Microcontroller with 64K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 7964 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA64A-AU的Datasheet PDF文件第278页浏览型号ATMEGA64A-AU的Datasheet PDF文件第279页浏览型号ATMEGA64A-AU的Datasheet PDF文件第280页浏览型号ATMEGA64A-AU的Datasheet PDF文件第281页浏览型号ATMEGA64A-AU的Datasheet PDF文件第283页浏览型号ATMEGA64A-AU的Datasheet PDF文件第284页浏览型号ATMEGA64A-AU的Datasheet PDF文件第285页浏览型号ATMEGA64A-AU的Datasheet PDF文件第286页  
ATmega64A  
26.4 Read-While-Write and No Read-While-Write Flash Sections  
Whether the CPU supports Read-While-Write or if the CPU is halted during a Boot Loader soft-  
ware update is dependent on which address that is being programmed. In addition to the two  
sections that are configurable by the BOOTSZ Fuses as described above, the Flash is also  
divided into two fixed sections, the Read-While-Write (RWW) section and the No Read-While-  
Write (NRWW) section. The limit between the RWW- and NRWW sections is given in  
“ATmega64A Boot Loader Parameters” on page 292 and Figure 26-2 on page 284. The main  
difference between the two sections is:  
• When erasing or writing a page located inside the RWW section, the NRWW section can be  
read during the operation.  
• When erasing or writing a page located inside the NRWW section, the CPU is halted during  
the entire operation.  
Note that the user software can never read any code that is located inside the RWW section dur-  
ing a Boot Loader software operation. The syntax “Read-While-Write section” refers to which  
section that is being programmed (erased or written), not which section that actually is being  
read during a Boot Loader software update.  
26.4.1  
RWW – Read-While-Write Section  
If a Boot Loader software update is programming a page inside the RWW section, it is possible  
to read code from the Flash, but only code that is located in the NRWW section. During an ongo-  
ing programming, the software must ensure that the RWW section never is being read. If the  
user software is trying to read code that is located inside the RWW section (i.e., by a  
call/jmp/lpm or an interrupt) during programming, the software might end up in an unknown  
state. To avoid this, the interrupts should either be disabled or moved to the Boot Loader sec-  
tion. The Boot Loader section is always located in the NRWW section. The RWW section Busy  
Bit (RWWSB) in the Store Program Memory Control Register (SPMCSR) will be read as logical  
one as long as the RWW section is blocked for reading. After a programming is completed, the  
RWWSB must be cleared by software before reading code located in the RWW section. See  
“SPMCSR – Store Program Memory Control Register” on page 293. for details on how to clear  
RWWSB.  
26.4.2  
NRWW – No Read-While-Write Section  
The code located in the NRWW section can be read when the Boot Loader software is updating  
a page in the RWW section. When the Boot Loader code updates the NRWW section, the CPU  
is halted during the entire Page Erase or Page Write operation.  
Table 26-1. Read-While-Write Features  
Which Section Can be  
Which Section does the Z-pointer  
Address During the Programming?  
Read During  
Programming?  
Is the CPU  
Halted?  
Read-While-Write  
Supported?  
RWW section  
NRWW section  
None  
No  
Yes  
No  
NRWW section  
Yes  
282  
8160C–AVR–07/09  
 复制成功!