C8051F124-TB Silicon Laboratories Inc, C8051F124-TB Datasheet - Page 141

no-image

C8051F124-TB

Manufacturer Part Number
C8051F124-TB
Description
BOARD PROTOTYPING W/C8051F124
Manufacturer
Silicon Laboratories Inc
Datasheets

Specifications of C8051F124-TB

Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
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 11.9 below.
Note that in the above example, all three bytes in the SFR Page Stack are accessible via the SFRPAGE,
SFRNEXT, and SFRLAST special function registers. If the stack is altered while servicing an interrupt, it is
possible to return to a different SFR Page upon interrupt exit than selected prior to the interrupt call. Direct
access to the SFR Page stack can be useful to enable real-time operating systems to control and manage
context switching between multiple tasks.
Push operations on the SFR Page Stack only occur on interrupt service, and pop operations only occur on
interrupt exit (execution on the RETI instruction). The automatic switching of the SFRPAGE and operation
of the SFR Page Stack as described above can be disabled in software by clearing the SFR Automatic
Page Enable Bit (SFRPGEN) in the SFR Page Control Register (SFRPGCN). See SFR Definition 11.2.
Figure 11.9. SFR Page Stack Upon Return From ADC2 Window Interrupt
SFRNEXT
SFRPAGE
popped to
stack on return from
popped off of the
SFR Page 0x02
(Port 5)
Automatically
0x0F
interrupt
Rev. 1.4
C8051F120/1/2/3/4/5/6/7
C8051F130/1/2/3
SFRPAGE
SFRNEXT
SFRLAST
141

Related parts for C8051F124-TB