Machine-translated by Google. Questions are authored in English.
Top

8051 Microcontroller Architecture Questions and Answers

1.

An internal RAM memory of the 8051 is :

Exam Year(s)

MH SET - 2018, SET Exam - 2018,

Answer: C

The internal RAM of the 8051 is 128 bytes.

The 8051 microcontroller has 128 bytes of on-chip data RAM (addresses 00H to 7FH), holding four register banks of 8 registers each, a 16-byte bit-addressable area and a general-purpose scratch pad. It also has 4 KB of on-chip ROM and can address 64 KB of external memory.

32 bytes is only the four register banks, 64 bytes is not an 8051 figure, and 64 KB is the external program or data memory space, not internal RAM. The 8052 variant doubles the internal RAM to 256 bytes.

Please log in or register to report this question.

2.

Microcontroller 8051 operates with 12 MHz oscillator and one machine cycle is defined as 12 oscillator periods. The execution time for a 4 machine cycle instruction would therefore be :

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: A

The execution time is 4 µs.

\[ \begin{aligned} T_{osc} &= \frac{1}{12\ \text{MHz}} = \frac{1}{12}\ \mu s \\ T_{cycle} &= 12 \times \frac{1}{12}\ \mu s = 1\ \mu s \\ T_{instr} &= 4 \times 1\ \mu s = 4\ \mu s \end{aligned} \]

With the usual 12 MHz crystal, each machine cycle of the 8051 takes exactly 1 µs, so a 4-cycle instruction (such as MUL or DIV) takes 4 µs. 1 µs is a single machine cycle, and 8 µs or 2 µs would need a 6 MHz or 24 MHz clock.

Please log in or register to report this question.

3.

Which of the following special function registers of 8051 is not bit addressible ?

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: D

The SFR that is not bit addressable is SBUF, the serial data buffer.

In the 8051, only the special function registers whose addresses end in 0H or 8H (divisible by 8) are bit addressable. ACC is at E0H, PSW at D0H and port P0 at 80H, so their individual bits can be set, cleared and tested with bit instructions.

SBUF is at 99H, which does not end in 0 or 8, so it can only be read or written as a whole byte.

Please log in or register to report this question.

4.

Vector addresses of 8051 interrupts are located in :

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: B

The 8051 interrupt vectors are located in 0000-0023H.

The interrupt vectors are fixed addresses at the bottom of program memory (ROM). Reset starts execution at 0000H, and the five interrupts vector to 0003H (external INT0), 000BH (timer 0), 0013H (external INT1), 001BH (timer 1) and 0023H (serial port), each with 8 bytes of space.

They are in code memory, not in on-chip RAM, and with an internal ROM they are not in external memory; 0001-1000H does not correspond to the vector table.

Please log in or register to report this question.

5.

8051 has 8 bit data bus, but it can generate 16 bit addresses using :

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: B

The 8051 generates 16-bit addresses with the help of ALE.

Port 0 of the 8051 is multiplexed: it first carries the low byte of the address (A0-A7) and then the data byte. The Address Latch Enable (ALE) pulse tells an external latch (such as a 74LS373) to capture the low address byte, while port 2 supplies the high byte (A8-A15). Together they form the 16-bit address even though the data bus is only 8 bits.

IO/M is an 8085 signal, and R/W is a generic read-write line, neither of which latches addresses. The EA pin selects whether the 8051 executes from internal or external program memory.

Please log in or register to report this question.

Answer: B

The alternate function of port 2 is sending the higher order address (A8-A15).

When the 8051 accesses external memory, port 2 outputs the upper byte of the 16-bit address, while port 0 carries the lower byte multiplexed with data.

The data byte D0-D7 and the lower address A0-A7 are the alternate functions of port 0. Serial input and output (RXD, TXD) are alternate functions of port 3.

Please log in or register to report this question.

7.

On power up, the 8051 uses following locations in the RAM for registers Ro - RI and bit addressable memory :

Exam Year(s)

MH SET - 2021, SET Exam - 2021,

Answer: C

The locations are 00 - 07 and 20 - 2F.

On reset the 8051 selects register bank 0, so R0-R7 (printed Ro - RI) occupy internal RAM addresses 00H to 07H. Banks 1 to 3 follow up to 1FH. The bit-addressable area is the 16 bytes from 20H to 2FH, giving 128 individually addressable bits, and the general-purpose scratch area runs from 30H to 7FH.

00-7F is the whole lower internal RAM and 80-FF holds the special function registers. 30-7F is the scratch area, not the register bank.

Please log in or register to report this question.

8.

After reset, SP register in 8051 is initialized to address .............. .

Exam Year(s)

MH SET - 2023, SET Exam - 2023,

Answer: C

After reset, SP is initialised to 07H.

On reset, the 8051 loads the stack pointer with 07H. Because the 8051 increments SP before it stores data, the first byte pushed goes to location 08H, the start of register bank 1. Programs that use banks 1 to 3 usually move the stack higher.

08H is where the first pushed byte lands, not the reset value of SP. 09H and 06H have no special role at reset.

Please log in or register to report this question.

9.

What is the address range of SFR Register bank ?

Exam Year(s)

MH SET - 2023, SET Exam - 2023,

Answer: B

The SFR address range is 80H - FFH.

In the 8051 the special function registers, such as the accumulator, B, PSW, SP, DPTR, the port latches and the timer and serial registers, occupy the upper 128 bytes of the direct address space, 80H to FFH. Only some of these addresses are actually used.

00H to 7FH is the internal RAM (register banks, bit-addressable area and scratch pad), so 00H - 77H is part of RAM. 40H - 80H straddles RAM and the SFRs, and 80H - 7FH is not a valid range.

Please log in or register to report this question.

10.

If the .......... pin is ............., then we have the option of using the .......... ROM or EPROM together with .............. memory and devices.

Exam Year(s)

MH SET - 2023, SET Exam - 2023,

Answer: B

The answer is \(\overline{\mathrm{EA}}\), high, internal, external.

The \(\overline{\mathrm{EA}}\) (external access) pin of the 8051 decides where program memory is fetched from. When it is tied high, the chip executes from its internal ROM or EPROM for the low addresses and automatically goes to external memory for addresses beyond it, so internal ROM and external memory and devices can be used together.

When \(\overline{\mathrm{EA}}\) is tied low, all program fetches go to external memory and the internal ROM is ignored. That rules out the options combining low with internal, and the option reversing internal and external.

Please log in or register to report this question.

Loading…
Tags: 8051 Microcontroller Architecture Questions and Answers || 8051 Microcontroller Architecture MCQ Questions and Answers || 8051 Microcontroller Architecture GK Questions and Answers || 8051 Microcontroller Architecture GK MCQ Questions || 8051 Microcontroller Architecture Multiple Choice Questions and Answers || 8051 Microcontroller Architecture GK || GK on 8051 Microcontroller Architecture || Microprocessors and Microcontrollers Questions and Answers || Microprocessors and Microcontrollers MCQ Questions and Answers || Microprocessors and Microcontrollers GK Questions and Answers || GK on Microprocessors and Microcontrollers