C8051F39x/37x
SFR Definition 19.2. SFRPGCN: SFR Page Control
Bit
7
6
5
4
3
2
1
0
SFRPGIDX[2:0]
SFRPGEN
Name
Type
Reset
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
1
0
0
SFR Address = 0xCF; SFR Page = All Pages
Bit
Name
Function
7
Reserved
Must Write 0b
6:4
SFRPGIDX[2:0]
SFR Page Stack Index.
This field can be used to access the SFRPAGE values stored in
the SFR page stack. It selects which level of the stack is accessi-
ble when reading the SFRSTACK register.
000: SFRSTACK contains the value of SFRPAGE, the first/top
byte of the SFR page stack
001: SFRSTACK contains the value of the second byte of the SFR
page stack
010: SFRSTACK contains the value of the third byte of the SFR
page stack
011: SFRSTACK contains the value of the forth byte of the SFR
page stack
100: SFRSTACK contains the value of the fifth/bottom byte of the
SFR page stack
101: Invalid index
11x: Invalid index
3:1
0
Reserved
Must Write 000b
SFRPGEN
SFR Automatic Page Control Enable.
This bit is used to enable automatic page switching on ISR entry/
exit. When set to 1, the current SFRPAGE value will be pushed
onto the SFR page stack, and SFRPAGE will be set to the page
corresponding to the flag which generated the interrupt; upon ISR
exit, hardware will pop the value from the SFR page stack and
restore SFRPAGE.
0: Disable automatic SFR paging.
1: Enable automatic SFR paging.
Preliminary Rev. 0.71
107