C8051F040/1/2/3/4/5/6/7
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 12.7. SFR Page Stack Upon Return From PCA Interrupt
On the execution of the RETI instruction in the ADC2 Window Comparator ISR, the value in SFRPAGE
register is overwritten with the contents of SFRNEXT. The CIP-51 may now access the Port 5 SFR bits as
it did prior to the interrupts occurring. See Figure 12.8 below.
140
Rev. 1.5