Electronic Components Datasheet Search |
|
CC2510F32RSP Datasheet(PDF) 83 Page - Texas Instruments |
|
CC2510F32RSP Datasheet(HTML) 83 Page - Texas Instruments |
83 / 244 page CC2510Fx / CC2511Fx SWRS055F Page 83 of 241 Figure 21: Flash Write using DMA 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) must be aligned on a 2-byte boundary. Figure 22 shows an example of code that correctly aligns the instruction for triggering DMA (Note that this code is IAR specific). The code below is shown for CC2510Fx, but will also work for CC2511Fx if the include file is being replaced by ioCC2511.h ; Write flash and generate FLASH DMA trigger ; Code is executed from flash memory ; #include “ioCC2510.h” MODULE flashDmaTrigger.s51 RSEG RCODE (1) PUBLIC halFlashDmaTrigger FUNCTION halFlashDmaTrigger, 0203H halFlashDmaTrigger: ORL FCTL, #0x02; RET ; END ; Figure 22: DMA Flash Write Executed from within Flash Memory 12.3.2.2 CPU Flash Write The CPU can also write directly to the flash when executing program code from RAM using unified memory space. The CPU writes data to the Flash Write Data register, FWDATA. The flash memory is written each time two bytes have been written to FWDATA, if a write has been enabled by setting FCTL.WRITE to 1. The CPU can poll the FCTL.SWBSY status to determine when the flash is ready for two new bytes to be written to FWDATA. Note that there exist a timeout period of 40 µs for writing one flash word to FWDATA, thus writing two bytes to the FWDATA register has to end within 40 µs after FCTL.SWBSY went low and also within 40 µs after a write has been initiated by writing a 1 to FCTL.WRITE (see Figure 24). Failure to do so will clear the FCTL.BUSY bit. FADDRH:FADDRL will contain the address of the location where the write operation failed. A new write operation can be started by setting FCTL.WRITE to 1 again and write two bytes to FWDATA. If one wants to do the whole write operation over again and not just start from where it failed, one has to erase the page, writing the start address to FADDRH:FADDRL, and setting FCTL.WRITE to 1 (see Section 12.3.3). |
Similar Part No. - CC2510F32RSP |
|
Similar Description - CC2510F32RSP |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |