Intel 8XC251SA User Manual page 302

Embedded microcontroller
Hide thumbs Also See for 8XC251SA:
Table of Contents

Advertisement

8XC251SA, SB, SP, SQ USER'S MANUAL
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
CPL
(A) ← Ø(A)
CPL bit
Function:
Complement bit
Description:
Complements (Ø) the specified bit variable. A clear bit is set, and a set bit is cleared. CPL
can operate on the CY or any directly addressable bit.
Note: When this instruction is used to modify an output pin, the value used as the original
data is read from the output data latch, not the input pin.
Flags:
Only for instructions with CY as the operand.
CY
Example:
Port 1 contains 5BH (01011101B). After executing the instruction sequence
CPL P1.1
CPL P1.2
port 1 contains 5BH (01011011B).
Variations
CPL bit51
Binary Mode
Bytes:
States:
†If this instruction addresses a port (P x , x = 0–3), add 2 states.
[Encoding]
1 0 1 1
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation:
CPL
(bit51) ← Ø(bit51)
CPL CY
Binary Mode
Bytes:
States:
[Encoding]
1 0 1 1
Hex Code in:
Binary Mode = [Encoding]
Source Mode = [Encoding]
A-50
AC
Source Mode
2
2
2†
2†
0 0 1 0
Source Mode
1
1
1
1
0 0 1 1
OV
N
bit addr
Z

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc251sb8xc251sp8xc251sq

Table of Contents