0% found this document useful (0 votes)
26 views5 pages

Que

The document is a question bank for the EE246 Microprocessor & Microcontroller course at Charotar University of Science and Technology. It includes a comprehensive list of questions covering topics such as microprocessor architecture, assembly programming, interfacing, and communication protocols. The document serves as a study guide for students preparing for internal examinations and practical applications in microcontroller programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views5 pages

Que

The document is a question bank for the EE246 Microprocessor & Microcontroller course at Charotar University of Science and Technology. It includes a comprehensive list of questions covering topics such as microprocessor architecture, assembly programming, interfacing, and communication protocols. The document serves as a study guide for students preparing for internal examinations and practical applications in microcontroller programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Charotar University of Science and Technology [CHARUSAT]

Faculty of Technology and Engineering


Department of Electrical Engineering
Subject: EE246 Microprocessor & Microcontroller
Question Bank
Here number represent in square bracket are referred to reference document number attached here. [2] is not
included here.

[2] “the 8051 microcontroller and embedded systems” by mazidi ,pearson education, second edition
1. Prepare both internal question papers
2. Draw and explain block diagram of 8085 microprocessor. 7
3. Draw pin diagram of 8085 and explain pin function of each pin. 7
4. Draw timing diagram for instruction MVI B,29H written on memory address 5025H 5
5. Prepare memory and Draw memory interfacing diagram to interface following memory with 6
8085 using 74LS138(3 to 8 decoder)
a. 2KB RAM
b. 2KB additional space for future expantion
c. 2KB ROM
Starting address must be 0000H
6. Explain bus structure of 8085. 4
7. Discuss pin function of ALE and explain demultiplexing of address bus from data bus. 3
8. Write an assembly level program to generate time delay of 250micro second consider 2Mhz 3
frequency of crystal.
9. Calculate time required to execute program given below. 3
MVI B,25H
loop:MOV A, B
DCR B
JNZ loop
10. Programing questioned attached in lab manual. 2 to 5
11. Explain following assembly instruction with example (read all instruction from laboratory 2 for each
question)
12. Write & explain various special keywords for programming in keil micro-vision. (sfr, sbit and 6
interrupt)
Pg No-31 [1], Read from Class note, Pg No-154 to 157 [2]
13. State various data types with their range and scope for storage of variable. 1 for each
Pg No-31 [1]
14. Explain all C Programming loops with required flowchart and snap of code. 2 for each
https://www.programiz.com/c-programming#tutorial
15. Discuss use of single and multi-dimensional array with required snap of code. 2 for each
https://www.programiz.com/c-programming#tutorial
16. Explain reason, why Embedded C codes are always having infinite loop? Explain any four 2
method of constructing such loop.
-refer class note
17. Explain various C operators (Arithmetic, Logical, Bitwise etc.) 0.5 for
https://www.programiz.com/c-programming/c-operators each
operator
18. Explain difference between soft delay and timer based hardware delay. 4
-refer attached document [7]+ refer class note

EE246 Microprocessor and Microcontrollers Page 1 of 5


19. Write a C program to send the number 0 to 9, to Port P1 with small/large delay. 4
-try your self
20. Compare the (merits-demerits) C and Assembly language for programming the microcontroller. 4
-refer attached document [6]+ refer class note
21. List and Explain the differences between a microprocessor and a microcontroller. 4
-class note + pg no. 20 [2]
22. Explain the parameters to be considered for selections of microcontroller. Explain the parameters 4
on which speed of executing the code is dependent.
-pg no 22 [2]
23. Explain the term machine cycle. 2
-pg no 65 [2]
24. Draw and Explain block diagram of 8051 microcontroller. 8
-pg no 5 [4]
25. Draw and Explain the Pin diagram for 8051 microcontroller with clear description of function of 8
each pin.
-Section 8.1 Pg No. 184 [2]
26. Draw and Explain the Reset circuit diagram for 8051 microcontroller. 4
-Pg No. 185 [2]
27. Draw and Explain the RAM & ROM memory organization/ structure available in 8051 4
microcontroller.
-Pg No 19 to 22 [3], Pg No. 519 to 522 [2]
28. Draw and explain the hardware connections of P89C51RD2XX microcontroller kit, which has 10
following facilities, (4fig+6
1. On board facility to program itself via serial port, explaining)
2. Drivers to enhance port current output capacities.
3. On board +5 Volt and +9 Volt DC power supply.
4. One Seven segment LED display connected with one of the port.
5. A 9 Volt Relay to be driven through P1.2,
6. A switch connected at P1.3 as input.
-refer attached document [9]
29. Explain any two methods in C programming, to reset selected position of bit without affecting 4
the contain of other bits in register/variable. Similarly explain any two methods for setting the
selected bit position without affecting other.
-logical question discussed during classes (masking using or/and operator)
30. Explain the internal structural diagram of various ports. Compare the structure in brief. 6
-Refer PPT provided
31. Explain the difference between an Open drain port pin and pin working in push pull mode with 3
required logical diagram.
-Refer class note + topic: P0 structer on pg no. 502 [2]
32. Explain the internal diagram of Timer in various modes of operation (mode0,1,2,3) 8
-Pg no 30 to 32 [3]
33. Draw and explain timer structure for mode 0/1/2/3. 3
34. Explain the difference between timer module of 8051 microcontroller configured in timer mode 5
of operation and counter mode of operation. Explain one application for each.
-Pg no 30 to 32 [3], Read Class note
35. Explain the role of GATE bit in TMOD register with respect to operation of timer in 8051 2
microcontroller.
- Pg no 13 [4]
36. Write a program to toggle status of P1.0 at each one second delay using timer module. Mention 6
assumptions and show calculations.
EE246 Microprocessor and Microcontrollers Page 2 of 5
-refer attached document [9]
37. Explain the interfacing of single key and associated problem and solution with required 6
diagrams.
-key bouncing is the problem and key debouncing is solution.
Refer class note
38. Explain both software key debouncing (with flowchart) and Hardware key debouncing (with 6
circuit diagram).
-Refer class note
39. Explain the difference between the ‘pulling’ and an ‘interrupt’ based event recognition. Which 4
on and why beneficial?
-pg. no 272 [2]
40. Explain the difference between mask-able and non-mask-able interrupt and state natural priority 3
order of all mask-able interrupts in 8051 microcontroller.
-refer class note + section 11.5 topic: interrupt priority upon reset pg no. 288 [2]
41. Draw the following registers and describe function of each bit of it. 2 for each
TMOD, PCON, TCON, SCON, IE, IP, SBUF, P0,P1,P2,P3. TLx, THx, DPTR, PC, PSW
-various sfrs from data sheet [4] ,(some registers may not have bit structures)
42. Explain the difference between Edge triggered and level triggered external interrupts (for 8051 2
microcontroller)
-section 11.3 pg no. 279 to 283 [2]
43. Draw and explain the hardware connection to arrange generation of external interrupt on rising 2
edge. Also discuss about requires setting of concerned SFRs and bits.
-hint: use of “NOT” gate before INTx pin
44. Explain the concept of matrix key board working with required diagram. 5
-pg no. 311 to 312 + refer class note
45. Write and explain routine for key debouncing (snap of code only) in matrix keyboard. 4
-refer class note
46. Explain interfacing diagram of following external devices/chips with 8051 microcontroller. 3 for each
a. ADC0809. –refer class note
b. DAC0809 –refer class note
c. LCD (JHD162A: 16x2 LCD) –refer class note
d. Seven Segment Display (CC and CA both) -attached document [9]
e. MAX232 for serial communication( 8051 to computer’s RS232 port-DB( connection)
–refer class note
f. 8051 to 8051 serial communication
–serial null modem connection with both device as 8051 communicating serially
g. Key interfacing. -attached document [9]
h. LED interfacing when LED glows on sending ‘LOW’ level to port pin & ‘HIGH’ level
to port pin. -attached document [9]
i. Transistorized LED display driving. -attached document [9]
47. Explain the following terms with respect to ADC0809.
a. Resolution 1
b. One Half(1/2) bit error 2
c. Function of ALE, OE, START, EOC, CLOCK etc. 1 for each
-class not + ADC data sheet
48. How much is it suitable to connect ALE of 8051 microcontroller with ALE of ADC0809. Give 2
reasons and views about your thought.
Ans in brief: It is not at all suitable, because the ALE of 8051 is expected to be used for external
memory interfacing and hence, signal on this pin are suitable for this task only. Where as

EE246 Microprocessor and Microcontrollers Page 3 of 5


requirement of ALE signal for ALE pin of ADC0809 is different. It forces the content on ADD
A, ADD B, ADD C inside ADC chip.
49. The voltage applied on IN0 is 2 Volt and IN1 is 3 Volt. Find out conversion result if ADDA=1, 2
ADDB=0 & ADDC=0, Clock frequency is 1 MHz, Reference voltage applied is 4 Volt. Assume
that all necessary and sufficient condition for conversation is fulfilled.
-refer class note and laboratory
50. Write and Explain all commands necessary to configure LCD. 4
-refer class note and laboratory
51. Write steps for sending the command to LCD hence develop a function (snap of code only) 4
which can be called upon.
-refer class note and laboratory
52. Write steps for sending the data to LCD for printing on it’s screen and hence develop a function 4
(snap of code only) which can be called upon.
-refer class note and laboratory
53. Write a routine/program to send 0 to 9 on same first character position (Home cursor position) 8
one by one with delay of 1 sec. State the assumption and show calculations if any. (Use timer for
1 second delay)
(Hint: calculation for 1 second, clear screen each time before sending number to be printed on
screen)
54. Write a C program for 3X3 matrix key board assuming only one key press at a time. 8
a. If key 3 is pressed : start the timer0 in auto reload to generate 10 KHz square wave
waveform on P1.0
b. If key 4 is pressed stop the above mentioned timer.
c. For any other key press toggle status of P1.1.
-refer class note and do modification accordingly
55. Explain 2 differences between 8 bit and 4 bit mode of LCD (16 x2 JHD162A) interfacing and 2
working.
Ans in brief:
1. Port pin of 8051 required to be interfaced are less in case of 4-bit mode.
2. complexity of program is less in 8-bit mode.
56. State true of false. (only to point you that you need to apply critical thinking…) 1 for each
a. A storbe is a signal going high temporarily.
b. By default P0 Port outputs with respect to grond is always equal to Vcc applied.
c. In hardware controlled mode timer runs when 𝐼𝑁𝑇0 is high eventhough the TRx is reset.
d. For open drain mode port pin, there is no need to send ‘1’ to the bit of register
corresponding to pin to be used as input.
(topic: avoid damaging port pg. no. 500 [2])
e. The maximum Vcc for 8051 microcontroller mentioned in datasheet is 10 Volt DC.
f. Serial transmission begins only when in software we pull the TI bit high.
g. The RI resets when reception begins/ends.
57. Explain difference between following with respect to communication. 2 for each
a. Serial and parallel communication.
b. Simplex, Duplex and Half duplex serial communication.
c. Synchronous and Asynchronous serial communication.
-pg no 238 to 239 [2]
58. Explain the term ‘baudarte’ for serial communication. Why it is not defined for synchronous 2
serial communication.
-pg no. 240 [2] + pg no. 244 [2]
59. Explain RS232 serial communication protocol and Draw null modem connection for two devices 6
communicating via serial communication.
EE246 Microprocessor and Microcontrollers Page 4 of 5
-topic:Aysnchronous serial communication and data framing pg no 239 to 240 [2]
-figure: Fig 10.6 Null Modem connection pg no. 241[2]
60. Explain all modes of serial communications. 8
-pg no. 21 [4]
61. What do you mean by parity? How is it useful in communication? 3
(Hint: to find error in communication reception/ to maintain data integrity)
-topic:Aysnchronous serial communication and data framing pg no 239 to 240 [2]
62. Calculate number to be loaded in timer1 for baud-rate of 19,200 bits/sec for crystal frequency of 2
11.0592 MHz.
-similar to example 10.1 pg no. 244 to 245 [2] + topic: doubling baud rate pg no. 251 to 252 [2]
Hint: use of SMOD bit (part of PCON register)
63. Explain the way to produce PWM signal using two timers. 4
-class note + laboratory experiment of PWM
64. All Programs taught in class and Laboratory, and combinational program that can be
developed by clubbing individual programs.

Note:

1. Only theory questions are written above. For preparation of program you need to take reference of laboratory work and
program discussed in classroom.
2. Also advised to prepare for internal exam question paper.
3. Although the answers to above questions were discussed in class during theory hours but, it will be re-discussed if you need
as per your convenient time. For the same meet wither of us.

Subject Teacher,

Jignesh Patel

EE246 Microprocessor and Microcontrollers Page 5 of 5

You might also like