2020 - Mca Solved Paper
2020 - Mca Solved Paper
1.4 The various ways of accessing data from register, or memory is called CPU
ANS.
ANS.
2.4 State the functions of RSI and RS0 in 8051.
ANS.
These two bits are used to select one of four register banks of RAM. By setting and clearing these
bits, registers R0-R7 are stored in one of four banks of RAM as follows
0 0 Bank 0
0 1 Bank 1
1 0 Bank 2
1 1 Bank 3
ANS.
8 bit MCU.
128 byte of RAM.
4Kbytes of on Chip ROM.
8 bit Bidirectional data bus.
16 bit uni directional address bus
32 general purpose register.
Two 16 bit Timer can operate in multiple mode.
32 I/O pins categorized in 4 different equal size (8 bit each) ports named as
PORT 0, PORT 1,PORT 2 and PORT 3.
ANS.
ALE: This is the address latch enable signal that is used to latch the address for external memory.
PSEN: This is the program store enable signal that is used for accessing the program memory. 17-24.
Address bus: These pins are used for transmitting the address information to the external memory.
3.0 ANSWER ANY TWO OF THE FOLLOWING.
ANS.
This parity flag bit is used to show the number of 1s in the accumulator only. If the accumulator
register contains an odd number of 1s, then this flag set to 1.
This flag is set during ALU operations, to indicate overflow in the result. It is set to 1 if there is a carry
out of either the D7 bit or the D6 bit of the accumulator.
These bits are user-programmable. They can be set by the programmer to point to the correct
register banks.
The register bank selection in the programs can be changed using these two bits.
This is a user-programmable flag; the user can program and store any bit of his/her choice in this
flag, using the bit address.
This flag is used to indicate the carry generated after arithmetic operations. It can also be used as an
accumulator, to store one of the data bits for bit-related Boolean instructions.
ANS.
RST- Reset
It resets the microcontroller and is active low,
meaning that it should constantly be given a
voltage of 5V and if 0 V are given then the
controller is reset.
XTAL1 & XTAL2- These pins are connected to an external oscillator which is
generally a quartz crystal oscillator. They are used to provide an external clock
frequency of 4MHz to 30MHz.
ANS.
Ans. All 8051 microcontrollers have 4 I/O ports each comprising 8 bits which can be configured as
inputs or outputs. Accordingly, in total of 32 input/output pins enabling the microcontroller to be
connected to peripheral devices are available for use.
1. Port 0 (P0):
It is also known as the "Port 0 Latch" because it can be used to latch the lower byte
of the address during external memory interfacing.
2. Port 1 (P1):
Similar to P0, it can be used for both input and output operations.
P1 has internal pull-ups, making it suitable for interfacing with switches or other
digital inputs.
3. Port 2 (P2):
It is often used for general-purpose I/O, and like P0 and P1, it can be used for
interfacing with external devices.
P2 is also used for interfacing with the 8051's built-in serial communication
hardware (TXD and RXD pins).
4. Port 3 (P3):
It is often used for general-purpose I/O, and like P0 and P1, it can be used for
interfacing with external devices.
It also has an alternate function as the high-order address bus during external
memory access.