Previous Year Question
The instruction CPL P1.5 in the 8051 microcontroller performs which action?
Correct answer: A
Explanation
CPL means complement. Applied to a bit-addressable pin such as P1.5, it replaces the bit by its logical complement: 1 becomes 0 and 0 becomes 1.
Formula
P1.5 ← NOT(P1.5)
Step-by-step solution

Correct Answer
A — Toggles the current logic level of the pin P1.5 (if it was high, it becomes low, and vice versa).
Explanation
CPL means complement. Applied to a bit-addressable pin such as P1.5, it replaces the bit by its logical complement: 1 becomes 0 and 0 becomes 1.
Key Concept
CPL Bit Instruction
Formula
P1.5 ← NOT(P1.5)
Exam Point
CPL = Complement = Toggle.
Exam tip
CPL = Complement = Toggle.
Quick method
CPL = Complement = Toggle.