English
Language : 

M166 Datasheet, PDF (116/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Addressing Modes
6 Addressing Modes
The Siemens 16-bit microcontrollers provide a lot of powerful addressing modes for access to word,
byte and bit data (short, long, indirect), or to specify the target address of a branch instruction
(absolute, relative, indirect). The different addressing modes use different formats and cover
different scopes.
Short Addressing Modes
All of these addressing modes use an implicit base offset address to specify an 18-bit or 24-bit
physical address (SAB 80C166 group or C167/5 group, respectively).
Short addressing modes allow to access the GPR, SFR or bit-addressable memory space:
Physical Address = Base Address + ∆ * Short Address
Note: ∆ is 1 for byte GPRs, ∆ is 2 for word GPRs.
Mnemonic Physical Address
Rw
(CP)
+ 2*Rw
Rb
(CP)
+ 1*Rb
reg
bitoff
bitaddr
00’FE00H
00’F000H
(CP)
(CP)
+ 2*reg
+ 2*reg *)
+ 2*(reg∧0FH)
+ 1*(reg∧0FH)
00’FD00H + 2*bitoff
00’FF00H + 2*(bitoff∧FFH)
(CP)
+ 2*(bitoff∧0FH)
Word offset as with bitoff.
Immediate bit position.
Short Address Range Scope of Access
Rw = 0...15
GPRs (Word)
Rb = 0...15
GPRs (Byte)
reg
reg
reg
reg
bitoff
bitoff
bitoff
bitoff
bitpos
= 00H...EFH
= 00H...EFH
= F0H...FFH
= F0H...FFH
= 00H...7FH
= 80H...EFH
= F0H...FFH
= 00H...FFH
= 0...15
SFRs (Word, Low byte)
ESFRs (Word, Low byte)*)
GPRs (Word)
GPRs (Bytes)
RAM
SFR
GPR
Bit word offset
Bit word offset
Bit word offset
Any single bit
*) The Extended Special Function Register (ESFR) area is not available in the SAB 8XC166(W)
devices.
Semiconductor Group
116
Version 1.2, 12.97