INTRODUCTION TO MICROPEOCESSOR
MICRO PROCESSOR AND MICRO CONTROLLER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
PORT 0 and PORT 1
|
|
PORT 1 and PORT 2
|
|
PORT 0 and PORT 2
|
|
PORT 1 and PORT 3
|
Detailed explanation-1: -PORT 0 and PORT 2 are used as the 16 bit address lines where PORT0 act as lower bit address lines and PORT 2 as higher bit address lines.
Detailed explanation-2: -Dual role of Port 2 − Besides working as I/O, Port P2 is also used to provide 16-bit address bus for external memory along with Port 0.
Detailed explanation-3: -The 8051 has four important ports: Port 0, Port 1, Port 2 and Port 3. These ports allow the microcontroller to connect with the outside world. Each port has 8 bits. Thus the four ports jointly comprise 32 pins.
Detailed explanation-4: -Register indirect addressing Mode The R0 and R1 are used for 8-bit addresses, and DPTR is used for 16-bit addresses, no other registers can be used for addressing purposes. Let us see some examples of this mode. In the instructions, the symbol is used for register indirect addressing.