[go: up one dir, main page]

100% found this document useful (1 vote)
318 views5 pages

CSE 331 - Final - Assignment - v2

This document contains the final assignment questions for the "Microprocessor Interfacing & Embedded System" course offered by the Department of Electrical & Computer Engineering at North South University. It includes four sections with multiple choice and open-ended questions related to 8086, 8051, and analog-to-digital conversion concepts. Students are asked to provide explanations and code snippets to interface LED arrays, timers, interrupts, and ADCs in microcontroller applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
318 views5 pages

CSE 331 - Final - Assignment - v2

This document contains the final assignment questions for the "Microprocessor Interfacing & Embedded System" course offered by the Department of Electrical & Computer Engineering at North South University. It includes four sections with multiple choice and open-ended questions related to 8086, 8051, and analog-to-digital conversion concepts. Students are asked to provide explanations and code snippets to interface LED arrays, timers, interrupts, and ADCs in microcontroller applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Department of Electrical & Computer Engineering (ECE)

North South University


Course Code: 331, Section: 5,6 (Noon)
Course Title: Microprocessor Interfacing & Embedded System
Final Assignment, Summer 2019

Name:
Student ID and section:

Answer All

1. Answer all the questions given below. [10]

(a) Consider the following 8086 interfacing problem. [1+1+1+1+1]

The LED array connected to Port A will light up if the input string is a Palindrome

Ex. of Palindrome: Input String- "abba" ;Output: String is palindrome

Input String- "abbc" ;Output: String is not palindrome

(i) Construction of the logic circuit to access 8255A


(ii) Initialization of the control registers for the designated operation
(iii) Creation of the string variables
(iv) Comparison between the input string and reversed string

DMH Sec: 5, 6-Noon (Microprocessor)


1
(v) Lighting up the LED array

Hints: Use LEA, SI and DI to access and compare the input and reversed strings

(b) Write answer of T or F for each question given below [1+1+1+1+1]

(i) Move string instructions are used to copy an array from one location to another location
(ii) There are two 8 bit timers in 8051 microcontroller
(iii) Timers can only be used for creating delay loops but not for counting
(iv) The MOVSB instruction tells the assembler to be movedstring as words; the MOVSW
implies the string is to be moved as bytes.
(v) CMPSB compares two bytes in given addresses and sets the flag accordingly

2. Answer all the questions given below

(a) Explain how to access and configure individual bit as input for 8051 application.
[2.5+2.5]

(b) Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz.The
relay coil is to be energized at an interval of 10 ms.Use timerroutine to implement the
operation. [1+1+1+1+1]

i) Initialize TMOD for timer 0 , mode 1 operation


ii) Initialize TH0 and TL0 for 10 ms delay
iii) Construct the delay loop with appropriate timer flag setting
iv) Access and configure relevant pin as needed
v) Call back delay loop from the main function as needed

DMH Sec: 5, 6-Noon (Microprocessor)


2
DMH Sec: 5, 6-Noon (Microprocessor)
3
3. Answer all the questions given below
(a) Explain the difference between edge triggered and level triggered interrupt by sketch.
Where the starting address of the memory location of every interrupt is stored?
[2.5+2.5]

(b)Consider the following 8051 interfacing problem. Crystal frequency: 11.059MHz. The LED
D8 will light up with every key press as shown below. [1+1+1+1+1]

i) Initialize IE register for external interrupt at INT0


ii) Initialize TCON register for the appropriate type of interrupt
iii) Declare and define the interrupt service routine
iv) Access and configure relevant pin as needed
v) Call back action in the main function as needed

DMH Sec: 5, 6-Noon (Microprocessor)


4
4. Answer all the questions given below
(a) What are the two main steps for analog to digital conversion? Show that the
quantization error increases as the range of voltage levels to be sensed increases. Use 3
bit ADC as an example [2.5+2.5]

DMH Sec: 5, 6-Noon (Microprocessor)


5

You might also like