MICROPROCESSOR AND MICROCONTROLLER

PIC MICROCONTROLLER

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If a carry generated from D3 bit to D4 bit while adding two numbers in PIC, which flag will set to HIGH.
A
CARRY
B
DIGIT CARRY
C
SIGN
D
ZERO
Explanation: 

Detailed explanation-1: -In an arithmetic operation, when carry is generated from bit D3 to D4, the auxiliary carry flag is set to 1. This flag is only available internally and used for B.C.D. operations and not available for programmer.

Detailed explanation-2: -Expert-Verified Answer. Answer: The carry flag bit is reset when the flag register content is D4H.

Detailed explanation-3: -AC: Auxiliary Carry Flag is set when there is a carry out of lower nibble or lower four bits of the operation. This type of flag is basically used in the BCD (Binary Coded Decimal) number system (0-9).

Detailed explanation-4: -Auxiliary Carry Flag (AF) − It contains the carry from bit 3 to bit 4 following an arithmetic operation; used for specialized arithmetic.

There is 1 question to complete.