4.4 Flash Control Registers
4.4.1 PSCTL: Program Store Control
Bit
7
6
5
4
3
2
1
0
Name
Reserved
SFLE
PSEE
PSWE
Access
R
RW
RW
RW
Reset
0x00
0
0
0
SFR Page = 0x0; SFR Address: 0x8F
Bit
Name
Reset
Access
Description
7:3
Reserved
Must write reset value.
2
SFLE
0
RW
Scratchpad Flash Memory Access Enable.
When this bit is set, flash MOVC reads and MOVX writes from user software are directed to the Scratchpad flash sector.
Flash accesses outside the address range 0x0000-0x01FF should not be attempted and may yield undefined results when
SFLE is set to 1.
Value
Name
Description
0
SCRATCHPAD_DISA-
BLED
Flash access from user software directed to the Program/Data Flash sector.
1
SCRATCHPAD_ENA-
BLED
Flash access from user software directed to the Scratchpad sector.
1
PSEE
0
RW
Program Store Erase Enable.
Setting this bit (in combination with PSWE) allows an entire page of flash program memory to be erased. If this bit is logic 1
and flash writes are enabled (PSWE is logic 1), a write to flash memory using the MOVX instruction will erase the entire
page that contains the location addressed by the MOVX instruction. The value of the data byte written does not matter.
Value
Name
Description
0
ERASE_DISABLED
Flash program memory erasure disabled.
1
ERASE_ENABLED
Flash program memory erasure enabled.
0
PSWE
0
RW
Program Store Write Enable.
Setting this bit allows writing a byte of data to the flash program memory using the MOVX write instruction. The flash loca-
tion should be erased before writing data.
Value
Name
Description
0
WRITE_DISABLED
Writes to flash program memory disabled.
1
WRITE_ENABLED
Writes to flash program memory enabled; the MOVX write instruction targets flash
memory.
EFM8SB2 Reference Manual
Flash Memory
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 28