English
Language : 

M166 Datasheet, PDF (31/127 Pages) Siemens Semiconductor Group – C16x Family of Siemens 16-Bit CMOS Single-Chip Microcontrollers
30Mar98@15:00h
C166 Family Instruction Set
Instruction Description
Representation in the
Assembler Listing:
N2N1
N4N3
N6N5
N8N7
High Byte 2nd word
Low Byte 2nd word
High Byte 1st word
Low Byte 1st word
Internal Organization:
MSB
Bits in ascending order LSB
N8 N7 N6 N5 N4 N3 N2 N1
Figure 5-1: Instruction Format Representation
Notes on the ATOMIC and EXTended Instructions
These instructions (ATOMIC, EXTR, EXTP, EXTS, EXTPR, EXTSR) disable standard and PEC
interrupts and class A traps during a sequence of the following 1...4 instructions. The length of the
sequence is determined by an operand (op1 or op2, depending on the instruction). The EXTended
instruction additionally change the addressing mechanism during this sequence (see detailled
instruction description).
The ATOMIC and EXTended instructions become active immediately, so no additional NOPs are
required. All instructions requiring multiple cycles or hold states to be executed are regarded as one
instruction in this sense. Any instruction type can be used with the ATOMIC and EXTended
instructions.
CAUTION: When a Class B trap interupts an ATOMIC or EXTended sequence, this sequence is
terminated, the interrupt lock is removed and the standard condition is restored, before the trap
routine is executed! The remaining instructions of the terminated sequence that are executed after
returning from the trap routine will run under standard conditions!
CAUTION: Be careful, when using the ATOMIC and EXTended instructions with other system
control or branch instructions.
CAUTION: Be careful, when using nested ATOMIC and EXTended instructions. There is ONE
counter to control the length of such a sequence, ie. issuing an ATOMIC or EXTended instruction
within a sequence will reload the counter with value of the new instruction.
Note: The ATOMIC and EXTended instructions are not available in the SAB 8XC166(W) devices.
The following pages of this section contain a detailled description of each instruction of the C166
Family in alphabetical order.
Semiconductor Group
31
Version 1.2, 12.97