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

Questions

The document contains details about an exam for a Microprocessor, Microcontroller and Interfacing Techniques course, including the date, duration, course code, outcomes, and questions. It provides a 10 question multiple choice section worth 5 marks total and 4 long answer questions worth 10 marks each, with topics including converting HEX to BCD using 8051, addressing modes of 8051, architecture of 8051 microcontroller, and interfacing a stepper motor with 8051. Students must answer 2 of the long answer questions, one from each of two sections.

Uploaded by

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

Questions

The document contains details about an exam for a Microprocessor, Microcontroller and Interfacing Techniques course, including the date, duration, course code, outcomes, and questions. It provides a 10 question multiple choice section worth 5 marks total and 4 long answer questions worth 10 marks each, with topics including converting HEX to BCD using 8051, addressing modes of 8051, architecture of 8051 microcontroller, and interfacing a stepper motor with 8051. Students must answer 2 of the long answer questions, one from each of two sections.

Uploaded by

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

Mode of Exam

SRM Institute of Science and Technology


OFFLINE
College of Engineering and Technology
DEPARTMENT OF ECE SET B
SRM Nagar, Kattankulathur – 603203, Chengalpattu District, Tamilnadu
Academic Year: 2022-2023 (ODD)
Test: CLAT- 3 Date: 16/11/2022 Duration: 1 hour 40 Minutes
Course Code & Title: 18ECC203J - Microprocessor, Microcontroller and Interfacing Techniques
Year & Sem: III / V Max. Marks: 50
Course Articulation Matrix:
18ECC203J - Microprocessor, Microcontroller and Interfacing
Program Outcomes (POs)
Techniques
Graduate Attributes PSO
Cos Course Outcomes (COs) 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3
Apply a basic concept of digital fundamentals to Microprocessor based
CO-1 : - 2 - - - - - - - - - - - - -
personal computer system
Demonstrate programming proficiency using the various addressing
CO-2 : - 3 - - 2 - - - - - - 2 - - -
modes of the 8086 microprocessor
Develop interfacing techniques using various peripheral chips with
CO-3 : - 2 3 - 3 - - - - - - - - - 1
microprocessor
Evaluate programming proficiency using the various addressing modes of
CO-4 : - 3 - - 2 - - - - - - 2 - - -
the 8051 microcontroller
Construct a system to interface various peripheral chips with
CO-5 : - 2 3 - 3 - - - - - - - - - 3
microcontroller
Implement the practical knowledge through laboratory experiments using
CO-6 : - - 3 - 3 - - - - - - 2 1 - 2
microprocessor and microcontroller

Part – A (5x1 = 5 Marks)


Answer all the questions
Q. No Question Marks BL CO PO
1. Which of the following commands are used for addressing the off- 1 1 4 2
chip data and associated codes respectively by data pointer?
a) MOVC & MOVY b) MOVZ & MOVA
c) MOVY & MOVB d) MOVX & MOVC
2. After executing the following code, what is the status of CY, AC and 1 2 4 2
P flag
MOV A, #9CH
ADD A, #64H
a) 1,1,0 b)1,1,1 c)1,0,1 d)0,0,1
3. The logical instruction that affects the carry flag during its execution 1 3 4 2
is
a) XRL A b) ANL A c) ORL A d) RLC A
4. On power up, the 8051 uses which RAM locations for register R0- 1 1 4 2
R7
a)00-2F b)00-07 c)00-7F d) 00-0F
5. Why microcontrollers are not called general purpose computers? 1 2 4 2
a) because they have built in RAM and ROM
b) because they design to perform dedicated task
c) because they are cheap
d) because they consume low power
6. If the EA (active low) signal is grounded, then the execution 1 1 5 3
a) directly start from main memory
b) directly start from 16 bit address in main memory
c) directly start from 16 bit address in program memory
d) directly start from RAM
7. 8 input DAC has ________ 1 1 5 3
a) 8 discrete voltage levels b) 64 discrete voltage levels
c) 124 discrete voltage levels d) 256 discrete voltage levels
8. If we need to operate a key of a keyboard in an interrupt mode, then 1 1 5 3
it will generate what kind of interrupt?
a) ES b) EX0/EX1 c) T0/T1 d) RESET
9. Which pin of the LCD is used for adjusting its contrast? 1 1 5 3
a) pin no 1 b) pin no 2 c) pin no 3 d) pin no 4
10. What is the function of the SCON register? 1 2 5 3
a) to control SBUF and SMOD registers
b) to program the start bit, stop bit, and data bits of framing
c) to control SMOD registers
d) To control PCON registers
Part – B (4 x 10 = 40 Marks)
Instructions: Answer ANY 2 Questions from each Section
SECTION B1
Instructions: Answer ANY 2 Questions
11. a) Write an ALP program to convert HEX to BCD using 8051? 5 3 4 5
MOV DPTR,#4600
MOVX A,@DPTR
MOV B,#64
DIV AB
INC DPTR
MOVX @DPTR,A
MOV A,B
MOV B,#0A
DIV AB
SWAP A
ADD A,B
INC DPTR
MOVX @DPTR,A
Here : SJMP HERE

11.b) Explain the addressing modes of 8051 with relevant examples? 5 2 4 2


There are eight addressing modes available in the 8051:
Immediate
Register
Direct
Indirect
Indexed
Relative
Absolute
Long
Any 4 addressing modes with examples can be given 5 marks
12. With neat diagram explain the architecture of 8051 10 1 4 2
Microcontroller.

Block diagram (5 Marks)


Functional Description Block (5 Marks)
Accumulator
- SFR
- It can be accessed through its SFR adder 0E0H.

B Register
- Use as temporary register .
- store upper bit Result of MUL & DIV.
- access through SFR adder 0F0H.
Stack Pointer
- Define anywhere on chip 128 byte RAM.
- It is Initialised to 07H address (after rest) .
Data Pointer
- - 16 bit register
- -Access external memory up to 64KB.
Program Status Word
- Reflect status ALU performing operation.
Port 0 to 3
- Each latch and corresponding drivers of port 0 to 3 is
allotted to the corresponding on chip I/O port.
Serial Data Buffer
- Two Independent Register : TX Buffer (8bit) & RX Buffer(8bit).
Program Counter
- 16 bit wide
- - Point to address of next instruction to be executed

13. Describe in detail about the Data transfer and arithmetic instruction 10 4 4 2
sets in 8051 microcontrollers with suitable examples.
Data transfer and arithmetic instrustion any 5 instruction with
example can be given (5+ 5 marks)
SECTION B2
Instructions: Answer ANY 2 Questions
14. Write a 8051 program for interfacing stepper motor with 8051and 10 3 5 3
explain its principle of operation.
Working principle (5 Marks)

Stepper motor is a device used to obtain an accurate position


control of rotating shafts. A stepper motor employs rotation of
its shaft in terms of steps, rather than continuous rotation as in
case of AC or DC motor. To rotate the shaft of the stepper
motor, a sequence of pulses is needed to be applied to the
windings of the stepper motor, in proper sequence. The
numbers of pulses required for complete rotation of the shaft
of the stepper motor are equal to the number of internal teeth
on its rotor. The stator teeth and the rotor teeth lock with each
other to fix a position of the shaft. With a pulse applied to the
winding input, the rotor rotates by one teeth position or an
angle x. The angle x may be calculated as.

x = 3600 / no. of rotor teeth

After the rotation of the shaft through angle x, the rotor locks
itself with the next tooth in the sequence on the internal
surface of the stator. The typical schematic of a typical
stepper motor with four windings is as shown below.

The stepper motors have been designed to work with digital


circuits. Binary level pulses of 0-5V are required at its
winding inputs to obtain the rotation of the shafts. The
sequence of the pulses can be decided, depending upon the
required motion of the shaft. By suitable sequence of the
pulses the motor can be used in three modes of operation.
• One phase ON (medium torque)
• Two phase ON (high torque)
• Half stepping (low torque)
Program (5 marks)
L4 MOV DPTR,#4500
MOV R0,#04
L3 MOVX A,@DPTR
PUSH DPH
PUSH DPL
MOV DPTR,#FFC0
MOVX @DPTR,A
MOV R4,#70
L2 MOV R5,#70
L1 DJNZ R5,L1
DJNZ R4, L2
POP DPL
POP DPH
INC DPTR
DJNZ R0,L3
SJMP L4
15. Write a program to generate a square wave with an ON time of 3ms 10 3 5 5
and an OFF time of 10ms on all pins of port 0. Assume an XTAL of
22MHz, Timer 0 in Mode 1.

Program – 6 marks
ON and OFF time delay calculation – 4 marks
16. a) List the interrupt vector table and explain how 8051 services an 6 2 5 3
interrupt request
Interrupt Source ROM Location Pin

Reset 0000H 9

INT0 0003H 12(P3.2)

Timer0 000BH

INT1 0013H 13(P3.3)

Timer1 001BH

Serial Port 0023H

• 8051 finishes the instruction it is currently executing, and


saves the contents of Program Counter on the stack
(address of next instruction)
• It jumps to the interrupt vector location corresponding to
the interrupt source
• Executes the interrupt service routine, until it encounters
RETI instruction
• Returns back to the place where it was interrupted, by
popping the contents of stack on PC, and starts execution
at that address
Interrupt vector table- 3 marks
Interrupt service sequence – 3 marks
16. b) Draw and explain the control word format of PCON register. 4 1 5 3

Control word format – 2 marks


Explanation – 2 marks

Course Outcome (CO) and Bloom’s level (BL) Coverage in Questions


CO Coverage (%)

BL Coverage (%)
60
50 40
40
30
30
20 20

10 10
0
0
CO1 CO2 CO3 CO4 CO5 CO6
BL-1 BL-2 BL-3 BL-4 BL-5

Approved by the Course Coordinator Signature of the Question paper setter

You might also like