SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 108
![no-image](/images/manufacturer_photos/0/3/327/infineon_technologies_sml.jpg)
SAF-C164SM
Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
1.SAF-C164SM.pdf
(470 pages)
- Current page: 108 of 470
- Download datasheet (6Mb)
C164CM/C164SM
Derivatives
Interrupt and Trap Functions
Context Switching
An interrupt service routine usually saves all the registers it uses on the stack and
restores them before returning. The more registers a routine uses, the more time is spent
saving and restoring. To save time, the C164CM allows switching the complete bank of
CPU registers (GPRs) with a single instruction, so the service routine executes within its
own separate context.
The instruction “SCXT CP, #New_Bank” pushes the content of the context pointer (CP)
on the system stack and loads CP with the immediate value “New_Bank”; this in turn,
selects a new register bank. The service routine may now use its “own registers”. This
register bank is preserved when the service routine terminates, i.e. its contents are
available on the next call.
Before returning (RETI) the previous CP is simply POPped from the system stack, which
returns the registers to the original bank.
Note: The first instruction following the SCXT instruction must not use a GPR.
Resources used by the interrupting program must eventually be saved and restored, e.g.
the DPPs and the registers of the MUL/DIV unit.
User’s Manual
5-18
V1.0, 2002-02
Related parts for SAF-C164SM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![SAF-C161S-L25M AA](/photos/12/22/122291/saf-c161s-l25m_aa_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-80-7
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161S-LM 3V AA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-80-7
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-XC164TM-4F40F AA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT 32KB TQFP-64-8
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161O-LM 3V HA](/photos/12/23/122301/saf-c1610-lm_3v_ha_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-80-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161K-LM 3V HA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-80-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-LM CA](/photos/12/23/122304/saf-c161pi-lm_ca_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-100-2
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C165-LF HA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS TQFP-100
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-LF 3V CA](/photos/12/23/122317/saf-c161pi-lf-_3v_ca_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS TQFP-100-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C165-LM 3V HA](/photos/30/99/309970/qfp100_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-100
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-L25M CA](/photos/12/23/122321/saf-c161pi-l25m_ca_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-100-2
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C164CI-8EM CB](/photos/12/23/122343/saf-c164ci-8em_cb_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT OTP MQFP-80-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-L25F CA](/photos/30/99/309970/qfp100_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS TQFP-100-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-LF CA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS TQFP-100-1
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C161PI-LM 3V CA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS MQFP-100-2
Manufacturer:
Infineon Technologies
Datasheet:
![SAF-C165-L25F HA](/images/manufacturer_photos/0/3/327/infineon_technologies_tmb.jpg)
Part Number:
Description:
IC MCU 16BIT ROM/LESS TQFP-100
Manufacturer:
Infineon Technologies
Datasheet: