English
Language : 

C8051F02X Datasheet, PDF (269/272 Pages) Silicon Laboratories – 8K ISP FLASH MCU Family
C8051F020/1/2/3
Figure 24.3. FLASHCON: JTAG Flash Control Register
SFLE
Bit7
WRMD2 WRMD1 WRMD0 RDMD3 RDMD2 RDMD1 RDMD0
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Reset Value
00000000
This register determines how the Flash interface logic will respond to reads and writes to the FLASHDAT
Register.
Bit7:
Bits6-4:
Bits3-0:
SFLE: Scratchpad FLASH Memory Access Enable.
When this bit is set, FLASH reads and writes are directed to the 128-byte Scratchpad FLASH sector.
When SFLE is set to logic 1, FLASH accesses out of the address range 0x00-0x7F should not be
attempted. Reads/Writes out of this range will yield unpredictable results.
0:
FLASH access directed to the 64k byte Program/Data FLASH sector.
1:
FLASH access directed to the 128 byte Scratchpad sector.
WRMD2-0: Write Mode Select Bits.
The Write Mode Select Bits control how the interface logic responds to writes to the FLASHDAT
Register per the following values:
000: A FLASHDAT write replaces the data in the FASHDAT register, but is otherwise ignored.
001: A FLASHDAT write initiates a write of FLASHDAT into the memory address by the
FLASHADR register. FLASHADR is incremented by one when complete.
010: A FLASHDAT write initiates an erasure (sets all bytes to 0xFF) of the Flash page containing
the address in FLASHADR. The data written must be 0xA5 for the erase to occur.
FLASHADR is not affected. If FLASHADR = 0x7DFE - 0x7DFF, the entire user space will
be erased (i.e. entire Flash memory except for Reserved area 0x7E00 - 0x7FFF).
(All other values for WRMD3-0 are reserved.)
RDMD3-0: Read Mode Select Bits.
The Read Mode Select Bits control how the interface logic responds to reads to the FLASHDAT Reg-
ister per the following values:
0000: A FLASHDAT read provides the data in the FASHDAT register, but is otherwise ignored.
0001: A FLASHDAT read initiates a read of the byte addressed by the FLASHADR register if no
operation is currently active. This mode is used for block reads.
0010: A FLASHDAT read initiates a read of the byte addressed by FLASHADR only if no
operation is active and any data from a previous read has already been read from
FLASHDAT. This mode allows single bytes to be read (or the last byte of a block) without
initiating an extra read.
(All other values for RDMD3-0 are reserved.)
Rev. 1.4
269