Flash Memory Segmentation
6-5
Flash Memory Controller
6.2.1
SegmentA on F47x Devices
On F47x devices SegmentA of the information memory is locked separately
from all other segments with the LOCKA bit. When LOCKA = 1, SegmentA
cannot be written or erased and all information memory is protected from
erasure during a mass erase or production programming. When LOCKA = 0,
SegmentA can be erased and written as any other flash memory segment, and
all information memory is erased during a mass erase or production
programming.
The state of the LOCKA bit is toggled when a 1 is written to it. Writing a 0 to
LOCKA has no effect. This allows existing flash programming routines to be
used unchanged.
; Unlock SegmentA
BIT
#LOCKA,&FCTL3
; Test LOCKA
JZ
SEGA_UNLOCKED
; Already unlocked?
MOV
#FWKEY+LOCKA,&FCTL3
; No, unlock SegmentA
SEGA_UNLOCKED
; Yes, continue
; SegmentA is unlocked
; Lock SegmentA
BIT
#LOCKA,&FCTL3
; Test LOCKA
JNZ
SEGALOCKED
; Already locked?
MOV
#FWKEY+LOCKA,&FCTL3
; No, lock SegmentA
SEGA_LOCKED
; Yes, continue
; SegmentA is locked
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...