C8051F575-IMR Silicon Labs, C8051F575-IMR Datasheet - Page 101

no-image

C8051F575-IMR

Manufacturer Part Number
C8051F575-IMR
Description
8-bit Microcontrollers - MCU 50 MIPS 16 kB 2 kB SPI UART I2C
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F575-IMR

Rohs
yes
Core
8051
Processor Series
C8051
Data Bus Width
8 bit

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
C8051F575-IMR
Manufacturer:
SILICON
Quantity:
290
C8051F55x/56x/57x
On the execution of the RETI instruction in the CAN0 ISR, the value in SFRPAGE register is overwritten
with the contents of SFRNEXT. The CIP-51 may now access the SPI0DAT register as it did prior to the
interrupts occurring. See Figure 12.6.
SFR Page 0xC
Automatically
popped off of the
stack on return from
interrupt
0x0
SFRPAGE
(SPI0DAT)
SFRNEXT
popped to
SFRPAGE
SFRNEXT
SFRLAST
Figure 12.6. SFR Page Stack Upon Return From CAN0 Interrupt
In the example above, 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 (SFR0CN). See SFR Definition 12.1.
Rev. 1.1
101

Related parts for C8051F575-IMR