欢迎访问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文件第69页浏览型号CC2430EMK的Datasheet PDF文件第70页浏览型号CC2430EMK的Datasheet PDF文件第71页浏览型号CC2430EMK的Datasheet PDF文件第72页浏览型号CC2430EMK的Datasheet PDF文件第74页浏览型号CC2430EMK的Datasheet PDF文件第75页浏览型号CC2430EMK的Datasheet PDF文件第76页浏览型号CC2430EMK的Datasheet PDF文件第77页  
CC2430  
Peripherals : Flash Controller  
13.3.2.1  
DMA Flash Write  
When using DMA write operations, the data to  
be written into flash is stored in the XDATA  
memory space (RAM or FLASH). A DMA  
channel is configured to read the data to be  
written from memory, source address, and  
write this data to the Flash Write Data register,  
FWDATA, fixed destination address, with the  
When the DMA channel is armed, starting a  
flash write by setting FCTL.WRITE to 1 will  
trigger the first DMA transfer (DMA and Flash  
controller handles the reset of the transfer).  
Figure 15 shows an example of how a DMA  
channel is configured and how a DMA transfer  
is initiated to write a block of data from a  
location in XDATA to flash memory, assuming  
the code is executed from RAM (unified  
CODE).  
DMA  
trigger  
event  
FLASH  
(TRIG[4:0]=10010 in DMA configuration)  
enabled. Thus the Flash Controller will trigger  
a DMA transfer when the Flash Write Data  
register, FWDATA, is ready to receive new  
data. The DMA channel should be configured  
to perform single mode, byte size transfers  
with source address set to start of data block  
and destination address to fixed FWDATA(note  
that the block size, LEN in configuration data,  
must be 4 bytes aligned). High priority should  
also be ensured for the DMA channel so it is  
not interrupted in the write process. If  
interrupted for more than 40 µs the write will  
not take place as write bit, FCTL.WRITE, will  
be reset.  
DMA Flash Write from XDATA memory  
When performing DMA flash write while  
executing code from within flash memory, the  
instruction that triggers the first DMA trigger  
event FLASH (TRIG[4:0]=10010 DMA in  
configuration) must be aligned on a 4-byte  
boundary. Figure 14 shows an example of  
code that correctly aligns the instruction for  
triggering DMA (Note that this code is IAR  
specific).  
; Write flash and generate Flash DMA trigger  
; Code is executed from flash memory  
;
#include “ioCC2430.h”  
MODULE flashDmaTrigger.s51  
RSEG RCODE (2)  
PUBLIC halFlashDmaTrigger  
FUNCTION halFlashDmaTrigger, 0203H  
halFlashDmaTrigger:  
ORL FCTL, #0x02;  
RET;  
END;  
Figure 14: Flash write using DMA from flash  
CC2430 Data Sheet (rev. 2.1) SWRS036F  
Page 73 of 211  
 
 复制成功!