|
M166 Datasheet, PDF (117/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers | |||
|
◁ |
30Mar98@15:00h
C166 Family Instruction Set
Addressing Modes
Rw, Rb:
Specifies direct access to any GPR in the currently active context (register bank). Both
âRwâ and âRbâ require four bits in the instruction format. The base address of the current
register bank is determined by the content of register CP. âRwâ specifies a 4-bit word
GPR address relative to the base address (CP), while âRbâ specifies a 4 bit byte GPR
address relative to the base address (CP).
reg:
Specifies direct access to any (E)SFR or GPR in the currently active context (register
bank). âregâ requires eight bits in the instruction format. Short âregâ addresses from 00H to
EFH always specify (E)SFRs. In that case, the factor âââ equates 2 and the base address
is 00âFE00H for the standard SFR area or 00âF000H for the extended ESFR area. âregâ
accesses to the ESFR area require a preceding EXT*R instruction to switch the base
address (not available in the SAB 8XC166(W) devices). Depending on the opcode of an
instruction, either the total word (for word operations) or the low byte (for byte opera-
tions) of an SFR can be addressed via 'reg'. Note that the high byte of an SFR cannot
be accessed via the 'reg' addressing mode. Short 'reg' addresses from F0H to FFH
always specify GPRs. In that case, only the lower four bits of 'reg' are significant for
physical address generation, and thus it can be regarded as being identical to the
address generation described for the 'Rb' and 'Rw' addressing modes.
bitoff:
Specifies direct access to any word in the bit-addressable memory space. 'bitoff'
requires eight bits in the instruction format. Depending on the specified 'bitoff' range, dif-
ferent base addresses are used to generate physical addresses: Short 'bitoff' addresses
from 00H to 7FH use 00âFD00H as a base address, and thus they specify the 128 high-
est internal RAM word locations (00âFD00Hh to 00âFDFEH). Short 'bitoff' addresses from
80H to EFH use 00âFF00H as a base address to specify the highest internal SFR word
locations (00âFF00H to 00âFFDEH) or use 00âF100H as a base address to specify the
highest internal ESFR word locations (00âF100H to 00âF1DEH). âbitoffâ accesses to the
ESFR area require a preceding EXT*R instruction to switch the base address (not avail-
able in the SAB 8XC166(W) devices). For short 'bitoff' addresses from F0H to FFH, only
the lowest four bits and the contents of the CP register are used to generate the physi-
cal address of the selected word GPR.
bitaddr: Any bit address is specified by a word address within the bit-addressable memory
space (see 'bitoff'), and by a bit position ('bitpos') within that word. Thus, 'bitaddr'
requires twelve bits in the instruction format.
Semiconductor Group
117
Version 1.2, 12.97
|
▷ |