Download Print this page

Siemens SAB 80515 Series User Manual page 152

8-bit single-chip microcontroller family

Advertisement

CPL
bit
Function:
Complement bit
Description:
The bit variable specified is complemented. A bit which had been a one is changed
to zero and vice versa. No other flags are affected. CPL can operate on the carry or
any directly addressable bit.
Note:
When this instruction is used to modify an output pin, the value used as the original
data will be read from the output data latch, not the input pin.
Example:
Port 1 has previously been written with 5D
CPL
CPL
will leave the port set to 5B
CPL
C
Operation:
CPL
(C) ← ¬ (C)
Encoding:
1 0 1 1
Bytes:
1
Cycles:
1
CPL
bit
Operation:
CPL
(bit) ← ¬ (bit)
Encoding:
1 0 1 1
Bytes:
2
Cycles:
1
Semiconductor Group
P1.1
P1.2
(01011011
H
0 0 1 1
0 0 1 0
(01011101
H
).
B
*
bit address
152
Instruction Set
). The instruction sequence
B

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k