Microprocessors & Microcontrollers
Microprocessors & Microcontrollers
QUESTION
S. No
Solve the control port address of 8255 if the base address is FFF0H.
62.
63. Explain the function of handshaking signals.
64. Distinguish between static and dynamic RAM with examples.
65.
Explain the purpose of and A0 pins on the 8086 microprocessor.
Estimate the content of register A after the execution of the following code.
CLR A
2 ORA A, #99H CPL A
7
2 Show the contents of AC, CY flags if we add 25H and 70H in 8051.
8
UNIT-VII 8051 REALTIME CONTROL
1 Explain the format of TMOD & TCON in 8051.
2 Describe the Timer counter logic diagram in 8051.
3 Define serial communication in 8051.
4 List the advantages of serial data transfer in 8051.
5 List the SFRs needed for serial communication in 8051.
6 Explain the use of PCON register in 8051.
7 Describe how serial port is used for data transfer in 8051.
8 List functions of SCON register of 8051.
9 Discuss the different serial data transmission modes in 8051.
1 List the interrupts of 8051.
0
Explain what should be loaded in TCON register to start Timer0 & Timer1 in 8051.
1
1
1 Explain how many interrupts are there in 8051. And name them.
2
1 Identify the highest priority interrupt of 8051.
3
1 Explain which port in 8051 microcontroller is bit addressable.
4
1 Describe the SCON register in 8051.
5
1 Model the format of IE register in 8051.
6
Explain under what conditions are the TI and RI bits raised in 8051.
1
7
1 Estimate baud rate in mode-1 operation in 8051.
8
Blooms Course
S.No QUESTIONS
Taxonomy Level Outcome
UNIT-I
8086 ARCHITECTURE
Solve the effective address & physical address of the following
instructions.
(a) IMUL AX, [BP + BX – 8D] (b) SBB AL, ES:[ SI + 5D] (c) PUSH AX
1 (d) AND AH, [SI + 42D] (e) CMPSB (f) CMPB DX, [SI] 1
Assume CS = 5000H, DS = 8000H, SS = A000H, ES = B000H, SI = Apply
2000H, DI = 6000H, BP = 1002H, SP = 0002H, AX = 0000H, BX =
5200H, CX = 2000H.
Examine the physical address is represented by Analyze
2 1
i) 4370:561EH ii) 7A32:0028H
Blooms Course
S.No QUESTIONS
Taxonomy Level Outcome
Evaluate the physical address of the top of the stack? If the stack
3 segment register contains 3000h and the stack pointer register Evaluation 1
contains 8434H.
Inspect the memory address of the next instruction executed by
the microprocessor, when operated in the real mode, for the
4 following CS:IP combinations: Analyze 1
a) CS = 1000H and IP = 2000H
b) CS= 2000h and IP=10000h
UNIT-II
INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMING
Develop a program to read ASCII code after a strobe signal is sent Create
1 5
from a Keyboard.
Develop a program to add a profit factor to each element in a Create
2 5
cost array and puts the result in a prices array.
Develop an ALP for add a 5-byte number in one array to a 5 byte Apply
in another array. Put the sum in another array. Put the state of
3 the carry flag in byte 6 of the array that contains the sum. The 5
first value in each array is the least significant byte of that
number.
Develop a delay loop which produces a delay of 500µsec on an Apply
4 5
8086 with 5-MHz clock.
Develop an assembly language program to find factorial of a Create
5 5
given number.
6 Develop an assembly language program to find sum of squares. Apply 5
Develop an assembly language program to find number of Apply
7 5
positive & negative numbers from a given array.
8 Develop an assembly language program to convert ASCII to BCD. Apply 5
9 Develop an ALP to find cube of an 8-bit hexadecimal number. Create 5
10 Develop an ALP to display ‘IARE MPMC LAB’ on the screen. Apply 5
Develop an ALP to convert a given sixteen bit binary number to its Create
11 5
gray equivalent.
UNIT-III
I/O INTERFACE
Model a Control Words When the Port Of Intel 8255A defined as Apply
1 follows: Port A as an O/P port, mode of the port a is mode-0, port 3
B as an O/P port, mode of the Port B is mode-0.
Construct an Interfacing DAC AD7523 with an 8086 CPU running Create
2 at 8MHZ and write an assembly language program to generate a 3&5
saw tooth waveform of period 1ms with Vmax 5V.
Develop an ALP for stepper motor interfacing by using loop Create
3 5
instructions.
UNIT-IV
INTERFACING WITH ADVANCED DEVICES
Construct an interface two chips of 32k × 8 PROM & four chips of Create
32k × 8 RAM with 8086, according to the following map.
1 ROM 1 & 2 F0000H-FFFFFH, RAM 1 & 2 D0000H-DFFFFH RAM 3 & 4
4 E0000H-EFFFFH. Show the implementation of this memory
system.
Blooms Course
S.No QUESTIONS
Taxonomy Level Outcome
Develop a Program for 8086 to service a real time clock in Create
interrupt. 8259 is connected to 8086 and free running clock of
1Hz is given as interrupt request to IR2. 8259 to be programmed
for following specifications:
2 4&5
a) IR2 is edge triggered interrupt
b) non-specific EOI, fully nested mode
c) Interrupt type 60H for IR0
d) Mask all other interrupt requests.
Plan how 8257’s are cascaded to provide more number of DRQ’s
3 4
and explain the operation. Application
4 Demonstrate about interrupt priority schemes used in 8259. Understand 4
Develop an instruction sequence that will cause the priority of an Create
8259, whose even address is 0800H, to be IR5,IR6, IR7, IR0, IR1,
5 IR2, IR3, IR4. Solve this problem when the current interrupt 4
priority is IR1 and for the second time assuming the current
priority to be IR7.
UNIT-V
COMMUNICATION INTERFACE
Illustrate the status register of 8251 for the given statement.
Read status register and wait for DSR and TxRDY to become Analyze
1 6
active. One active, get character from PC keyboard using INT B8H
(keyboard routine).
2 Develop an ALP for to transfer the data serially by using 8086. Create 6
Identify the errors in receiving the data from asynchronous mode Understand
3
of operation using 8251.
Imagine the sequence of instructions required to initialize 8251 at Create
address A0H and A1H for the configuration below.
i) Character length – 8 bits
ii) No parity
4 6
iii) Stop bits – 2
iv) Baud rate – 16 X
v) Error flag is reset
vi) DTR and RTS asserted
Develop an 8086 instruction sequence for receiving 50 characters Create
5 5&6
using 8251 and store them in memory at location 2080H.
UNIT-VI
INTRODUCTION TO MICROCONTROLLER
Develop 8051 program to convert packed BCD number available Create
1 in accumulator, into two ASCII numbers and save them in internal 5
RAM locations 48H and 49H.
Develop 8051 program to move a block of data from external Create
2 5
program memory to external data memory.
Choose PUSH instruction to put the number 82H in RAM locations Apply
3 5
34H to 37H. Also write same program without PUSH instruction.
Develop and elaborate a program in 8051 to count number of Create
4 zero bits available in a byte available in external RAM at 1000h. 5
Store zero bit count in internal RAM location 60H.
Develop 8051 program to OR the contents of port 1 and port 2, Create
5 5
put the result in external RAM location 0102h.
Blooms Course
S.No QUESTIONS
Taxonomy Level Outcome
UNIT-VII
8051 REALTIME CONTROL
Indicate when the TF0 flag is raised for the following program.
MOV TMOD, #01H
MOV TL0, #12H
1 7
MOV TH0, #1CH
Understand
SETB TR0
Assume XTAL = 11.0592MHz.
Examine the TH1, TL1 value to generate a time delay of 5ms.
2 Timer 1 is programmable in mode 1 using 8051. Assume that Analyze 7
XTAL = 16MHz.
Develop a Program for Timer 1 to generate a square wave of 1 Create
3 5
kHz in 8051. Assume that XTAL = 11.0592MHz.
Develop a Program for Program Timer-0 go generate a square Create
4 5
wave of 3 kHz in 8051. Assume that XTAL = 11.0592MHz.
Indicate which mode and which timers are selected for each of Understand
the following.
5 7
a) MOV TMOD, #01H b) MOV TMOD, #20H c) MOV
TMOD, #12H
Explain which bits in which registers must be set to 1 to have Understand
6 7
timer 0 count input pulses on pin T0 in timer mode 0.
UNIT-VIII
AVR Microcontroller
Elaborate various sources of interrupts in AT90S2313 Create
1 8
microcontroller.
Describe the various flags of status registers of AT90S2313 Understand
2 8
microcontroller.