Texas Instruments MSP430x4xx User Manual
Page 138
Flash Memory Operation
5-13
Flash Memory Controller
; Write one block starting at 0F000h.
; Must be executed from RAM, Assumes Flash is already erased.
;
514 kHz < SMCLK < 952 kHz
; Assumes ACCVIE = NMIIE = OFIE = 0.
MOV
#32,R5
; Use as write counter
MOV
#0F000h,R6
; Write pointer
MOV
#WDTPW+WDTHOLD,&WDTCTL
; Disable WDT
L1
BIT
#BUSY,&FCTL3
; Test BUSY
JNZ
L1
; Loop while busy
MOV
#FWKEY+FSSEL1+FN0,&FCTL2 ; SMCLK/2
MOV
#FWKEY,&FCTL3
; Clear LOCK
MOV
#FWKEY+BLKWRT+WRT,&FCTL1
; Enable block write
L2
MOV
Write_Value,0(R6)
; Write location
L3
BIT
#WAIT,&FCTL3
; Test WAIT
JZ
L3
; Loop while WAIT=0
INCD
R6
; Point to next word
DEC
R5
; Decrement write counter
JNZ
L2
; End of block?
MOV
#FWKEY,&FCTL1
; Clear WRT,BLKWRT
L4
BIT
#BUSY,&FCTL3
; Test BUSY
JNZ
L4
; Loop while busy
MOV
#FWKEY+LOCK,&FCTL3
; Set LOCK
...
; Re-enable WDT if needed
- Digital Signal Processor SM320F2812-HT (153 pages)
- MSP430x1xx (440 pages)
- Laser And Motor Drives DRV8811EVM (13 pages)
- TMS320 DSP (88 pages)
- MSP430x11x1 (45 pages)
- TVP5154EVM (55 pages)
- TMS320DM646X DMSOC (64 pages)
- CC2511 (24 pages)
- SN65HVS880 (4 pages)
- TPS650231EVM (14 pages)
- TMS320TCI648x (256 pages)
- TSC2007EVM-PDK (16 pages)
- UCC38500EVM (16 pages)
- TMS320C6000 (62 pages)
- SCAU020 (21 pages)
- TPS40051 (17 pages)
- TNETE2201 (14 pages)
- TMS320C64x DSP (306 pages)
- UCC2891 (21 pages)
- TMS320C3x (757 pages)
- MSP430 (138 pages)
- TMS320C6712D (102 pages)
- TMS320C6454 (225 pages)
- SPRU938B (48 pages)
- TUSB3210 (22 pages)
- TMS320C6457 (43 pages)
- CC2530ZNP (3 pages)
- TMS320C6455 (50 pages)
- TSB12LV26 (91 pages)
- TMS320C6472 (2 pages)
- VLYNQ Port (49 pages)
- TMS380C26 (92 pages)
- MSP-FET430 (95 pages)
- TMS320TCI6486 (160 pages)
- TPS2330 (22 pages)
- DM648 DSP (47 pages)
- TMS320DM36X (134 pages)
- MSC1211 (35 pages)
- SPRAA56 (29 pages)
- DAC7741EVM (28 pages)
- CDCM7005 (34 pages)
- TMS370 (99 pages)
- Adpater (37 pages)
- TMS320C6452 DSP (46 pages)