C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
SFR Definition 15.3. PSCTL: Program Store Read/Write Control
R/W
R/W
-
-
Bit7
Bit6
Bits 7–3: UNUSED. Read = 00000b, Write = don't care.
Bit 2:
SFLE: Scratchpad Flash Memory Access Enable
When this bit is set, Flash MOVC reads and writes from user software are directed to the
two 128-byte Scratchpad Flash sectors. When SFLE is set to logic 1, Flash accesses out of
the address range 0x00-0xFF should not be attempted (with the exception of address
0x400, which can be used to simultaneously erase both Scratchpad areas). Reads/Writes
out of this range will yield undefined results.
0: Flash access from user software directed to the Program/Data Flash sector.
1: Flash access from user software directed to the two 128 byte Scratchpad sectors.
Bit 1:
PSEE: Program Store Erase Enable.
Setting this bit allows an entire page of the Flash program memory to be erased provided
the PSWE bit is also set. After setting this bit, 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. Note: The Flash page con-
taining the Read Lock Byte and Write/Erase Lock Byte cannot be erased by software.
0: Flash program memory erasure disabled.
1: Flash program memory erasure enabled.
Bit 0:
PSWE: Program Store Write Enable.
Setting this bit allows writing a byte of data to the Flash program memory using the MOVX
write instruction. The location must be erased prior to writing data.
0: Write to Flash program memory disabled. MOVX write operations target External RAM.
1: Write to Flash program memory enabled. MOVX write operations target Flash memory.
R/W
R/W
R/W
-
-
-
Bit5
Bit4
Bit3
Rev. 1.4
R/W
R/W
R/W
SFLE
PSEE
PSWE
Bit2
Bit1
Bit0
SFR Address:
SFR Page:
Reset Value
00000000
SFR
Address:
0x8F
0
209
Need help?
Do you have a question about the C8051F12 Series and is the answer not in the manual?
Questions and answers