Flash Memory Operation
6-6
Flash Memory Controller
6.3
Flash Memory Operation
The default mode of the flash memory is read mode. In read mode, the flash
memory is not being erased or written, the flash timing generator and voltage
generator are off, and the memory operates identically to ROM.
MSP430 flash memory is in-system programmable (ISP) without the need for
additional external voltage. The CPU can program its own flash memory. The
flash memory write/erase modes are selected with the BLKWRT, WRT,
GMERAS, MERAS, and ERASE bits and are:
-
Byte/word write
-
Block write
-
Segment Erase
-
Mass Erase (all main memory segments)
-
All Erase (all segments)
Reading or writing to flash memory while it is being programmed or erased is
prohibited. If CPU execution is required during the write or erase, the code to
be executed must be in RAM. Any flash update can be initiated from within
flash memory or RAM.
6.3.1
Flash Memory Timing Generator
Write and erase operations are controlled by the flash timing generator shown
in Figure 6−3. The flash timing generator operating frequency, f
FTG
, must be
in the range from ~ 257 kHz to ~ 476 kHz (see device-specific data sheet).
Figure 6−3. Flash Memory Timing Generator Block Diagram
FN5
FN0
PUC
...........
EMEX
Flash Timing Generator
Divider, 1−64
BUSY
WAIT
Reset
f
(FTG)
FSSELx
SMCLK
SMCLK
ACLK
MCLK
00
01
10
11
The flash timing generator can be sourced from ACLK, SMCLK, or MCLK. The
selected clock source should be divided using the FNx bits to meet the
frequency requirements for f
FTG
. If the f
FTG
frequency deviates from the
specification during the write or erase operation, the result of the write or erase
may be unpredictable, or the flash memory may be stressed above the limits
of reliable operation.
Содержание 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 ...