English
Language : 

C161U Datasheet, PDF (49/469 Pages) Infineon Technologies AG – Embedded C166 with USB, USART and SSC
C161U
Memory Organization
The technique of implementing this circular stack is described in chapter “System
Programming”.
General Purpose Registers
The General Purpose Registers (GPRs) use a block of 16 consecutive words within the
internal RAM. The Context Pointer (CP) register determines the base address of the
currently active register bank. This register bank may consist of up to 16 word GPRs (R0,
R1, ..., R15) and/or of up to 16 byte GPRs (RL0, RH0, ..., RL7, RH7). The sixteen byte
GPRs are mapped onto the first eight word GPRs (see table below).
In contrast to the system stack, a register bank grows from lower towards higher address
locations and occupies a maximum space of 32 Byte. The GPRs are accessed via short
2-, 4- or 8-bit addressing modes using the Context Pointer (CP) register as base address
(independent of the current DPP register contents). Additionally, each bit in the currently
active register bank can be accessed individually.
Mapping of General Purpose Registers to RAM Addresses
Internal RAM
Address
<CP> + 1EH
<CP> + 1CH
<CP> + 1AH
<CP> + 18H
<CP> + 16H
<CP> + 14H
<CP> + 12H
<CP> + 10H
<CP> + 0EH
<CP> + 0CH
<CP> + 0AH
<CP> + 08H
<CP> + 06H
<CP> + 04H
<CP> + 02H
<CP> + 00H
Byte Registers
---
---
---
---
---
---
---
---
RH7 RL7
RH6 RL6
RH5 RL5
RH4 RL4
RH3 RL3
RH2 RL2
RH1 RL1
RH0 RL0
Word Register
R15
R14
R13
R12
R11
R10
R9
R8
R7
R6
R5
R4
R3
R2
R1
R0
C161U supports fast register bank (context) switching. Multiple register banks can
physically exist within the internal RAM at the same time. Only the register bank selected
Data Sheet
49
2001-04-19