Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

A E CL

p
Electronics and Comm Engg Deptt, NIT Hamirpur, HP
ECD - 311 Microprocessor Theory & Applications
Attempt all the questions. Give importance to specifics and details.
Assume missing data
Time Limit: 180mins Max Marks: 60
1. Draw the timing diagram for SHLD present at the location FEDCH. [10]

2. Setup DMA to transfer 1000bytes data from a ROM with starting address 2000H to
a RAM with starting address 3000H. Draw the complete interface diagram with the
CPU, memories and DMA chips. Also briefly explain each register involved in
completing the process.. (10]

3. Setup 8251 for synchronous data transfer and let the CPU transmit 100 bytes
from 1000H based on. status check mode and receive 3 bytes and save them at 2000H
onwards. Draw the complete interface diagram with CPU, 8251 and the peripherals
using memory mapped I/O. [10]

4. Write detailed notes on stepper motor and ADC interface with the CPU. Write
necessary code to demonstrate their working. [10]

5. Explain the following code below step by step explaining each line, loops and
the values of each register. Also write the purpose of the program in 2 lines.
[10]

DATA SEGMENT MOV AL, 99H


PASS DB `INKYPINKY' OUT DX, AL
STR_LENGTH DB 8 LEA SI, PASS
INPUT_WORD LEA DI, INPUT_WORD
DATA ENDS MOV CX, STR_LENGTH
CLD
CODE SEGMENT REPE CMPSB
ASSUME CS:CODE, JNE DO_SOMETHING
DS:DATA, JMP DO_NOTHING
ES:DATA DO_SOMETHING: MOV AL, 01
MOV DX,OFFFAH
MOV AX, DATA OUT DX, AL
MOV DS, AX HLT
MOV_ ES, AX DONOTHING: NOP
MOV DX, OFFFEH CODE ENDS

6. Assume an 8085 clock of 1MHz. Write a program to asynchronously transfer "HAVE


A GOOD DAY" at a baud rate of 2400. Also count the number of times a push button
switch is pressed and another fire sensor to turn on the fire alarm using
suitable interrupts. Draw one complete interface diagram with one decoder. [10]

You might also like