8051 MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
How are the bits of the register PSW affected if we select Bank2 of 8051?
|
PSW.5=0 and PSW.4=1
|
|
PSW.2=0 and PSW.3=1
|
|
PSW.3=1 and PSW.4=1
|
|
PSW.3=0 and PSW.4=1
|
Explanation:
Detailed explanation-1: -Bits 3 and 4 of the PSW are used for selecting the register bank.
Detailed explanation-2: -8051 has 32 general-purpose registers and the size of each register is 8-bit. It has two 16-bit registers and they are the data pointer (DTPR) and the program counter (PC). ∴ The instruction “SETB PSW. 4” sets RS1 = 1 and RS0 = 0 by selecting register bank 2.
There is 1 question to complete.