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

CC2430EMK 参数 Datasheet PDF下载

CC2430EMK图片预览
型号: CC2430EMK
PDF下载: 下载PDF文件 查看货源
内容描述: 真正的系统级芯片解决方案的2.4 GHz IEEE 802.15.4 / ZigBee的 [A True System-on-Chip solution for 2.4 GHz IEEE 802.15.4 / ZigBee]
分类和应用:
文件页数/大小: 212 页 / 1862 K
品牌: TAOS [ TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS ]
 浏览型号CC2430EMK的Datasheet PDF文件第71页浏览型号CC2430EMK的Datasheet PDF文件第72页浏览型号CC2430EMK的Datasheet PDF文件第73页浏览型号CC2430EMK的Datasheet PDF文件第74页浏览型号CC2430EMK的Datasheet PDF文件第76页浏览型号CC2430EMK的Datasheet PDF文件第77页浏览型号CC2430EMK的Datasheet PDF文件第78页浏览型号CC2430EMK的Datasheet PDF文件第79页  
CC2430  
Peripherals : Flash Controller  
Figure 16: Performing CPU Flash write  
13.3.3  
Flash Page Erase  
After a flash page erase, all bytes in the  
erased page are set to 1.  
Performing flash erase from flash memory  
The steps required to perform a flash page  
erase from within flash memory are outlined in  
Figure 17.  
A
page erase is initiated by setting  
FCTL.ERASE to 1. The page addressed by  
FADDRH[6:1]is erased when a page erase is  
initiated. Note that if a page erase is initiated  
Note that, while executing program code from  
within flash memory, when a flash erase or  
write operation is initiated, program execution  
will resume from the next instruction when the  
flash controller has completed the operation.  
The flash erase operation requires that the  
instruction that starts the erase i.e. writing to  
FCTL.ERASEis followed by a NOP instruction  
as shown in the example code. Omitting the  
NOP instruction after the flash erase operation  
will lead to undefined behavior.  
simultaneously with  
a
page write, i.e.  
FCTL.WRITE is set to 1, the page erase will  
be performed before the page write operation.  
The FCTL.BUSYbit can be polled to see when  
the page erase has completed.  
Note: If flash page erase operation is  
performed from within flash memory and the  
watchdog timer is enabled, a watchdog timer  
interval must be selected that is longer than 20  
ms, the duration of the flash page erase  
operation, so that the CPU will manage to  
clear the watchdog timer.  
; Erase page in flash memory  
; Assumes 32 MHz system clock is used  
;
CLR  
MOV  
JB  
MOV  
MOV  
MOV  
NOP  
RET  
EA  
A,FCTL  
ACC.7,C1  
FADDRH,#00h  
FWT,#2Ah  
FCTL,#01h  
;mask interrupts  
;wait until flash controller is ready  
C1:  
;setup flash address high  
;setup flash timing  
;erase page  
;must always execute a NOP after erase  
;continues here when flash is ready  
Figure 17: Flash page erase performed from flash memory  
CC2430 Data Sheet (rev. 2.1) SWRS036F  
Page 75 of 211  
 
 复制成功!