MICROPROCESSOR AND MICROCONTROLLER

INTRODUCTION TO MICROPEOCESSOR

MICRO PROCESSOR AND MICRO CONTROLLER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
When the microcontroller executes some arithmetic operations, then the flag bits of which register are affected?
A
PSW
B
PC
C
SP
D
DPTR
Explanation: 

Detailed explanation-1: -It is an 8-bit register. The flag bits of the PSW register are affected when arithmetic operations are executed in the 8051.

Detailed explanation-2: -The program status word (PSW) register is an 8-bit register, also known as flag register. It is of 8-bit wide but only 6-bit of it is used. The two unused bits are user-defined flags.

Detailed explanation-3: -Which instructions have no effect on the flags of PSW? Explanation: These instructions are the arithmetic operations and the flags are affected by the data copy instructions, so all these instructions don’t affect the bits of the flag.

There is 1 question to complete.