0% found this document useful (0 votes)
139 views

Fundamentals of Microcontroller and Its Application: Unit N0.1

The document contains a quiz on fundamentals of microcontrollers and the 8051 microcontroller. It includes 50 multiple choice questions covering topics like 8051 architecture, memory, registers, interrupts, I/O ports, and applications of microcontrollers. The questions test knowledge of basic concepts as well as specific details of the 8051 microcontroller architecture.

Uploaded by

Pankaj Kale
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views

Fundamentals of Microcontroller and Its Application: Unit N0.1

The document contains a quiz on fundamentals of microcontrollers and the 8051 microcontroller. It includes 50 multiple choice questions covering topics like 8051 architecture, memory, registers, interrupts, I/O ports, and applications of microcontrollers. The questions test knowledge of basic concepts as well as specific details of the 8051 microcontroller architecture.

Uploaded by

Pankaj Kale
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Fundamentals Of Microcontroller and Its Application

Unit N0.1
1.The internal RAM memory of the 8051 is:

a) 32 bytes b) 64 bytes c) 128 bytes d) 256 bytes

2.The 8051 has ________ 16-bit counter/timers.

a)1 b)2 c)3 4)4

3. A micro controller at-least should consist of:

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

6. Abbreviate CISC and RISC.

a) Complete Instruction Set Computer, Reduced Instruction Set Computer


b) Complex Instruction Set Computer, Reduced Instruction Set Computer
c) Complex Instruction Set Computer, Reliable Instruction Set Computer
d) Complete Instruction Set Computer, Reliable Instruction Set Computer

7. The 8051 can handle ________ interrupt sources.

a)3 b)4 c)5 d)6

8. What is embedded system?

a)The programme which arrives by being wrapped in box.

Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application

b)The programme which is the permanent part of the computer

c) The computer which is the part of a big computer

d)The computer and software system that control the machine

9.The 8051 microcontroller is of ___pin package as a ______ processor.

a) 30, 1byte b) 20, 1 byte c) 40, 8 bit d) 40, 8 byte 2.

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.

11. After reset, SP register is initialized to address________.

a) 8H b) 9H c) 7H d) 6H

12. What is the address range of SFR Register bank?

a) 00H-77H b) 40H-80H c) 80H-7FH d) 80H-FFH

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.

14.Match the following:

1) TCON i) contains status information

2) SBUF ii) timer / counter control register.

3) TMOD iii) idle bit, power down bit

4) PSW iv) serial data buffer for Tx and Rx.

5) PCON v) timer/ counter modes of operation.

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.

15. Which of the following is of bit operations?

i) SP ii) P2 iii) TMOD iv) SBUF v) IP

a) ii, v only b) ii, iv, v only c) i, v only d) iii, ii only

16. Serial port interrupt is generated, if ____ bits are set

Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application

a) IE b) RI, IE c) IP, TI d) RI, TI

17. Intel 8096 is of ___ bit microcontroller family called as ______.

a) 8, MCS51 b) 16, MCS51 c) 8, MCS96 d) 16, MCS96

18. . How many synchronous and asynchronous modes are there in serial port of 8096?

a) 2, 2 respectively b) 3,1 respectively c) 1, 3 respectively d) 1, 2 respectively

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

a) EA, high, internal, external b) EA, low, internal, external

c) EA, high, external, internal d) EA, low, external, internal

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

21. AT89C2051 has RAM of:


a) 128 bytes
b) 256 bytes
c) 64 bytes
d) 512 bytes

22. 8051 series has how many 16 bit registers?


a) 2
b) 3
c) 1
d) 0

23. When 8051 wakes up then 0x00 is loaded to which register?


a) DPTR
b) SP
c) PC
d) PSW

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

33. Harvard architecture allows:


a) separate program and data memory
b) pipe-ling
c) complex architecture
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?

a. Internal on-chip RAM


b. External off-chip RAM
c. Both a & b
d. None of the above

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

c. Ports cannot be further used as high impedance input


d. All of the above

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:

STAT: MOV A, #01H


JNZ STAT
a)True b)False

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:

A) copy R1 to the accumulator

B) copy the accumulator to R1

C) copy the contents of memory whose address is in R1 to the accumulator

D) copy the accumulator to the contents of memory whose address is in R1

5When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory

6. DAA command adds 6 to the nibble if:


a) CY and AC are necessarily 1
b) either CY or AC is 1
c) no relation with CY or AC
d) CY is 1

7. If SUBB A,R4 is executed, then actually what operation is being applied?


a) R4+A

Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application

b) R4-A
c) A-R4
d) R4+A

8. A valid division instruction always makes:


a) CY=0,AC=1
b) CY=1,AC=1
c) CY=0,AC=0
d) no relation with AC and CY

9. n 8 bit signed number operations, OV flag is set to 1 if:


a) a carry is generated from D7 bit
b) a carry is generated from D3 bit
c) a carry is generated from D7 or D3 bit
d) a carry is generated from D7 or D6 bit

10In unsigned number addition, status of which bit is important?


a) OV
b) CY
c) AC
d) PSW

11. Which instructions have no affect on the flags of PSW.


a) ANL
b) ORL
c) XRL
d) All of the mentioned

12. ANL instruction is used


a) to AND the contents of the two registers
b) to mask the status of the bits
c) all of the mentioned
d) none of the mentioned

13. CJNE instruction makes


a) the pointer to jump if the values of the destination and the source address are equal
b) sets CY=1, if the contents of destination register is greater then that of the source
register
c) sets CY=0, if the contents of destination register is smaller then that of the source
register
d) none of the mentioned

Prof.Rasika B.Pund,Asst.Prof.SIEM,Nashik
Fundamentals Of Microcontroller and Its Application

14. XRL, ORL, ANL commands have


a) accumulator as the destination address and any register, memory or any immediate
data as the source address
b) accumulator as the destination address and any immediate data as the source
address
c) any register as the destination address and accumulator, memory or any immediate
data as the source address
d) any register as the destination address and any immediate data as the source
address

15. DJNZ R0,label is how many bit instruction?


a) 2
b) 3
c) 1
d) Cant be determined

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

18. LCALL instruction takes


a) 2 bytes
b) 4 bytes
c) 3 bytes
d) 1 byte

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

c) 0.75 micro seconds


d) 1 micro seconds

21. What is the meaning of the instruction MOV A,05H ?


a) data 05H is stored in the accumulator
b) fifth bit of accumulator is set to one
c) address 05H is stored in the accumulator
d) none of the mentioned

22. Does the two instructions mean the same?

i BACK: DEC R0

JZ BACK

ii. BACK: DJNZ RO, 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

24. What kind of instructions usually affect the program counter?


a. Call & Jump
b. Call & Return
c. Push & Pop
d. Return & Jump

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

You might also like