English
Language : 

C8051F124-GQR Datasheet, PDF (140/350 Pages) Silicon Laboratories – Mixed Signal ISP Flash MCU Family
C8051F120/1/2/3/4/5/6/7
C8051F130/1/2/3
SFRPAGE
pushed to
SFRNEXT
SFRNEXT
pushed to
SFRLAST
SFR Page 0x00
Automatically
pushed on stack in
SFRPAGE on PCA
interrupt
0x00
(PCA)
0x02
(ADC2)
0x0F
(Port 5)
SFRPAGE
SFRNEXT
SFRLAST
Figure 11.7. SFR Page Stack Upon PCA Interrupt Occurring During an ADC2 ISR
On exit from the PCA interrupt service routine, the CIP-51 will return to the ADC2 Window Comparator
ISR. On execution of the RETI instruction, SFR Page 0x00 used to access the PCA registers will be auto-
matically popped off of the SFR Page Stack, and the contents of the SFRNEXT register will be moved to
the SFRPAGE register. Software in the ADC2 ISR can continue to access SFR’s as it did prior to the PCA
interrupt. Likewise, the contents of SFRLAST are moved to the SFRNEXT register. Recall this was the
SFR Page value 0x0F being used to access Port 5 before the ADC2 interrupt occurred. See Figure 11.8
below.
SFRNEXT
popped to
SFRPAGE
SFRLAST
popped to
SFRNEXT
SFR Page 0x00
Automatically
popped off of the
stack on return from
interrupt
0x02
(ADC2)
0x0F
(Port 5)
SFRPAGE
SFRNEXT
SFRLAST
Figure 11.8. SFR Page Stack Upon Return From PCA Interrupt
140
Rev. 1.4