Fundamentals of Microcontroller and Its Application: Unit N0.1
Fundamentals of Microcontroller and Its Application: Unit N0.1
Unit N0.1
1.The internal RAM memory of the 8051 is:
a) RAM, ROM, I/O devices, serial and parallel ports and timers
b) CPU, RAM, I/O devices, serial and parallel ports and timers
c) CPU,RAM, ROM, I/O devices, serial and parallel ports and timers
d) CPU, ROM, I/O devices and timers
4.Unlike micro processors, micro controllers make use of batteries because they have:
a) high power dissipation
b) low power consumption
c) low voltage consumption
d) low current consumption
5. How are micro controllers classified on the basic of internal bus width?
a) 8,16,32,64 bits
b) 4,8,16,32 bits
c) 8,16 bits
d) 4,16,32 bits
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
10.The SP is of ___ wide register. And this may be defined anywhere in the ______.
a) 8 byte, on-chip 128 byte RAM. b) 8 bit, on chip 256 byte RAM. c) 16 bit, on-chip
128 byte ROM d) 8 bit, on chip 128 byte RAM.
a) 8H b) 9H c) 7H d) 6H
13. Which pin of port 3 is has an alternative function as write control signal for external
data memory? a) P3.8 b) P3.3 c) P3.6 d) P3.1 6.
a) 1->ii, 2->iv, 3->v, 4->i, 5->iii. b) 1->i, 2->v, 3->iv, 4->iii, 5->ii. c) 1->v, 2->iii, 3->ii,
4->iv, 5->i. d) 1->iii, 2->ii, 3->i, 4->v, 5->iv.
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
18. . How many synchronous and asynchronous modes are there in serial port of 8096?
19. If the __ pin is ___ , then we have the option of using the ____ ROM or EPROM
together with _____ memory and devices.
20. Why micro controllers are not called general purpose devices?
a) because they are based on VLSI technology
b) because they are not meant to do a single work at a time
c) because they are cheap
d) because they consume low power
24.When the micro controller executes some arithmetic operations, then the flag bits of
which register are affected?
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
a) PSW
b) SP
c) DPTR
d) PC
25. How are the bits of the register PSW affected if we select Bank2 of 8051?
a) PSW.5=0 and PSW.4=1
b) PSW.2=0 and PSW.3=1
c) PSW.3=1 and PSW.4=1
d) PSW.3=0 and PSW.4=1
26. . How is the status of the carry, auxiliary carry and parity flag affected if write
instruction
MOV A,#9C
ADD A,#64H
a) CY=0,AC=0,P=0
b) CY=1,AC=1,P=0
c) CY=0,AC=1,P=0
d) CY=1,AC=1,P=1
27. If we push data onto the stack then the stack pointer
a) increases with every push
b) decreases with every push
c) none of the mentioned
d) both of the mentioned
28. On power up, the 8051 uses which RAM locations for register R0- R7
a) 00-2F
b) 00-07
c) 00-7F
d) 00-0F
29. How many bytes of bit addressable memory is present in 8051 based micro
controllers?
a) 8 bytes
b) 32 bytes
c) 16 bytes
d) 128 bytes
30. How many types of architectures are available, for designing a device that is able to
work on its own?
a) 3
b) 2
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
c) 1
d) 4
31. Which architecture involves both the volatile and the non volatile memory?
a) Harvard architecture
b) Von Neumann architecture
c) None of the mentioned
d) All of the mentioned
32. Which architecture provides separate buses for program and data memory?
a) Harvard architecture
b) Von Neumann architecture
c) None of the mentioned
d) All of the mentioned
34. Which data memory control and handle the operation of several peripherals by
assigning them in the category of special function registers? Which data memory control
and handle the operation of several peripherals by assigning them in the category of
special function registers?
35. Why is the speed accessibility of external data memory slower than internal on-chip
RAM?
a. Due to multiplexing of lower order byte of address-data bus
b. Due to multiplexing of higher order byte of address-data bus
c. Due to demultiplexing of lower order byte of address-data bus
d. Due to demultiplexing of higher order byte of address-data bus
36. Which control signal/s is/are generated by timing and control unit of 8051
microcontroller in order to access the off-chip devices apart from the internal timings?
a. ALE
b. PSEN
c. RD & WR
d. All of the above
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
37. Which register usually store the output generated by ALU in several arithmetic and
logical operations?
a. Accumulator
b. Special Function Register
c. Timer Register
d. Stack Pointer
38. Which among the below mentioned devices of MCS-51 family does not possess two
16 -bit timers/counters?
a. 8031
b. 8052
c. 8751
d. All of the above
39. Which general purpose register holds eight bit divisor and store the remainder
especially after the execution of division operation?
a. A-Register
b. B-Register
c. Registers R0 through R7
d. All of the above
40. How many registers can be utilized to write the programs by an effective selection
of register bank in program status word (PSW)?
a. 8
b. 16
c. 32
d. 64
41. Which is the only register without internal on-chip RAM address in MCS-51?
a. Stack Pointer
b. Program Counter
c. Data Pointer
d. Timer Register
42. What is the default value of stack once after the system undergoes the reset
condition?
a. 07H
b. 08H
c. 09H
d. 00H
43. Which bit/s play/s a significant role in the selection of a bank register of Program
Status Word (PSW)?
a. RS1
b. RS0
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
c. Both a & b
d. None of the above
44. hich flags represent the least significant bit (LSB) and most significant bit (MSB) of
Program Status Word (PSW) respectively?
a. Parity Flag & Carry Flag
b. Parity Flag & Auxiliary Carry Flag
c. Carry Flag & Overflow Flag
d. Carry Flag & Auxiliary Carry Flag
45. Which register bank is supposed to get selected if the values of register bank select
bits RS1 & Rs0 are detected to be ‘1’ & ‘0’ respectively?
a. Bank 0
b. Bank 1
c. Bank 2
d. Bank 3
46. It is possible to set the auxiliary carry flag while performing addition or subtraction
operations only when the carry exceeds _______
a. 1st bit
b. 2nd bit
c. 3rd bit
d. 4th bit
47. What is the maximum capability of addressing the off-chip data memory & off-chip
program memory in a data pointer?
a. 8K
b. 16K
c. 32K
d. 64K
48. Which among the below stated registers does not belong to the category of special
function registers?
a. TCON & TMOD
b. TH0 & TL0
c. P0 & P1
d. SP & PC
49. Where should the pin 19 (XTAL1), acting as an input of inverting amplifier as well as
part of an oscillator circuit, be connected under the application of external clock?
a. to XTAL2
b. to Vcc
c. to GND
d. to ALE
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
50. Which port does not represent quasi-bidirectional nature of I/O ports in accordance
to the pin configuration of 8051 microcontroller?
a. Port 0 (Pins 32-39)
b. Port 1 (Pins 1-8)
c. Port 2 (Pins 21-28)
d. Port 3 (Pins 10-17)
51. Which among the below mentioned functions does not belong to the category of
alternate functions usually performed by Port 3 (Pins 10-17)?
a. External Interrupts
b. Internal Interrupts
c. Serial Ports
d. Read / Write Control signals
52. What is the constant activation rate of ALE that is optimized periodically in terms of
an oscillator frequency?
a. 1 / 8
b. 1 / 6
c. 1 / 4
d. 1 / 2
53. Which memory allow the execution of instructions till the address limit of 0FFFH
especially when the External Access (EA) pin is held high?
a. Internal Program Memory
b. External Program Memory
c. Both a & b
d. None of the above
54. Which value of disc capacitors is preferred or recommended especially when the
quartz crystal is connected externally in an oscillator circuit of 8051?
a. 10 pF
b. 20 pF
c. 30 pF
d. 40 Pf
55. Why are the resonators not preferred for an oscillator circuit of 8051?
a. Because they do not avail for 12 MHz higher order frequencies
b. Because they are unstable as compared to quartz crystals
c. Because cost reduction due to its utility is almost negligible in comparison to total cost
of microcontroller board
d. All of the above
56. What happens when the pins of port 0 & port 2 are switched to internal ADDR and
ADDR / DATA bus respectively while accessing an external memory?
a. Ports cannot be used as general-purpose Inputs/Outputs
b. Ports start sinking more current than sourcing
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
57. The upper 128 bytes of an internal data memory from 80H through FFH usually
represent _______.
a. general-purpose registers
b. special function registers
c. stack pointers
d. program counters
58. What is the divisional range of program memory for internal and external memory
portions respectively when enable access pin is held high (unity)?
a. 0000H – 0FFFH & 1000H – FFFFH
b. 0000H – 1000H & 0FFFH – FFFFH
c. 0001H – 0FFFH & 01FFH – FFFFH
d. None of the above
59. Consider the following statements. Which of them is/are correct in case of program
execution related to program memory?
a. External Program memory execution takes place from 1000H through 0FFFFH only
when the status of EA pin is high (1)
b. External Program memory execution takes place from 0000H through 0FFFH only
when the status of EA pin is low (0)
c. Internal Program execution occurs from 0000H through 0FFFH only when the status
of EA pin is held low (0)
d. Internal program memory execution occurs from 0000H through 0FFFH only when
EA pin is held high (1)
a. A & C
b. B & D
c. A & B
d. Only A
60. What is the counting rate of a machine cycle in correlation to the oscillator frequency
for timers?
a. 1 / 10
b. 1 / 12
c. 1 / 15
d. 1 / 20
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
Unit N0.2
1. This program code will be executed continuously:
2. The address space of the 8051 is divided into four distinct areas: internal data,
external data, internal code, and external code.
a)True b)False
3. Data transfer from I/O to external data memory can only be done with the MOVX
command.
a)True b)False
4. MOV A, @ R1 will:
5When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
b) R4-A
c) A-R4
d) R4+A
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
16. JZ, JNZ, DJNZ, JC, JNC instructions monitor the bits of which register ?
a) DPTR
b) B
c) A
d) PSW
17. When the call instruction is executed the top most element of stack comes out to be
a) the address where stack pointer starts
b) the address next to the call instruction
c) address of the call instruction
d) next address of the stack pointer
19. Are PUSH and POP instructions are a type of CALL instructions?
a) yes
b) no
c) none of the mentioned
d) cant be determined
20. What is the time taken by one machine cycle if crystal frequency is 20MHz?
a) 1.085 micro seconds
b) 0.60 micro seconds
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
i BACK: DEC R0
JZ BACK
a)yes
b) no
c) cant be determined
d) yes and second one is preferred
23. Which operations are performed by stack pointer during its incremental phase?
a. Push
b. Pop
c. Return
d. All of the above
25. Which commands are used for addressing the off-chip data and associated codes
respectively by data pointer?
a. MOVX & MOVC
b. MOVY & MOVB
c. MOVZ & MOVA
d. MOVC & MOVY
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
26. Which instruction find its utility in loading the data pointer with 16 bits immediate
data?
a. MOV
b. INC
c. DEC
d. ADDC
1 C
2 B
3 C
4 B
5 B
6 B
7 c
8 d
9 C
10 D
11 C
12 D
13 C
14 A
15 A
16 D
17 D
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
18 C
19 A
20 B
21 B
22 A
23 C
24 A
25 D
26 B
27 A
28 B
29 C
30 B
31 A
32 A
33 D
43 A
35 A
36 D
37 A
38 B
39 B
40 C
41 B
42 A
43 C
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application
44 A
45 C
46 C
47 D
48 D
49 C
50 A
51 B
52 B
53 A
54 C
55 D
56 A
57 B
58 A
59 B
60 B
61
Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik