Texas Instruments MSP430x1xx User Manual page 150

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

Flash Memory Registers
FCTL3, Flash Memory Control Register FCTL3
15
14
7
6
Reserved
Reserved
r0
r0
FWKEYx
Bits
FCTLx password. Always read as 096h. Must be written as 0A5h or a PUC
15-8
will be generated.
Reserved
Bits
Reserved. Always read as 0.
7-6
EMEX
Bit 5
Emergency exit
0
1
LOCK
Bit 4
Lock. This bit unlocks the flash memory for writing or erasing. The LOCK bit
can be set anytime during a byte/word write or erase operation and the
operation will complete normally. In the block write mode if the LOCK bit is set
while BLKWRT=WAIT=1, then BLKWRT and WAIT are reset and the mode
ends normally.
0
1
WAIT
Bit 3
Wait. Indicates the flash memory is being written to.
0
1
ACCVIFG
Bit 2
Access violation interrupt flag
0
1
KEYV
Bit 1
Flash security key violation. This bit indicates an incorrect FCTLx password
was written to any flash control register and generates a PUC when set. KEYV
must be reset with software.
0
1
BUSY
Bit 0
Busy. This bit indicates the status of the flash timing generator.
0
1
5-20
Flash Memory Controller
13
12
11
FWKEYx, Read as 096h
Must be written as 0A5h
5
4
EMEX
LOCK
WAIT
rw-0
rw-1
r-1
No emergency exit
Emergency exit
Unlocked
Locked
The flash memory is not ready for the next byte/word write
The flash memory is ready for the next byte/word write
No interrupt pending
Interrupt pending
FCTLx password was written correctly
FCTLx password was written incorrectly
Not Busy
Busy
10
9
3
2
1
ACCVIFG
KEYV
rw−0
rw-(0)
8
0
BUSY
r(w)−0

Advertisement

Table of Contents
loading

Table of Contents