Z8 Encore!® Motor Control Flash MCUs
Product Specification
218
Flash Status Register
The Flash Status Register, shown in Table 117, indicates the current state of the Flash Con-
troller. This register can be read at any time. The read-only Flash Status Register shares its
Register File address with the write-only Flash Control Register.
Table 117. Flash Status Register (FSTAT)
BITS
FIELD
RESET
R/W
7
6
5
4
3
2
1
0
Reserved
FSTAT
00_0000B
R
00B
R
FF8H
ADDR
Bit
Value
Description
Position
[7:6]
Must be 00.
Reserved
[5:0]
Flash Controller Status
00_0000 Flash Controller locked.
FSTAT
00_0001 First unlock command received.
00_0010 Second unlock command received.
00_0011 Flash Controller unlocked.
00_0100 Flash Sector Protect register selected.
00_1xxx Program operation in progress.
01_0xxx Page erase operation in progress.
10_0xxx Mass erase operation in progress.
Flash Page Select Register
The Flash Page Select (FPS) Register, shown in Table 118, selects one of the 32 available
Flash memory pages to be erased or programmed. Each Flash Page contains 512 bytes of
Flash memory. During a Page Erase operation, all Flash memory locations with the 7 most
significant bits of the address assigned by the PAGEfield are erased to FFh.
The Flash Page Select Register shares its Register File address with the Flash Sector Pro-
tect Register. The Flash Page Select Register cannot be accessed when the Flash Sector
Protect Register is enabled.
Program Memory
P R E L I M I N A R Y
PS024604-1005