MPMC Course File
MPMC Course File
MPMC Course File
and
microcontrollers
A. Narmada
AssOC. Professor
COURSEFILE
Department of
ELECTRONICS AND COMMUNICATION ENGINEERING
VIGNAN INSTITUTE OF TECHNOLOGY AND SCIENCE
VIGNAN HILLS, DESHMUKHI VILLAGE, POCHAMPALLY (MANDAL)
NALGONDA (DISTRICT) - 508284
Sponsored by
Lavu Educational Society
(Approved by AICTE and Affiliated to JNT University, Hyderabad)
COURSE
OBJECTIVE
Microprocessors and Microcontrollers Course Objective
COURSE OBJECTIVE
Course Objective:
Further the students will be able to program in both assembly and C languages and understand the
impact of computer hardware on software programming. The student will be taught the course in a
realistic, real-world-oriented fashion so that the students have a basic understanding of various
constraints in embedded systems. It teaches the students how is to use the microcontrollers as a means
to integrate the curriculum so that our students gain a comprehensive view of various topics they have
learned in their previous years. The new course blends the lectures and the labs together, and
emphasizes hands-on, active learning with labs and projects.
This approach allows all engineering students the opportunity to learn to use the microprocessor as a
tool for solving engineering monitoring and control problems. The approach consists of shifting the
focus of the course from the microprocessor itself to learning the design methodology by which the
microprocessor could be used as a tool to solve practical engineering problems.
This course is intended as a first level course for microprocessor and microcontroller based system
design. Designer of microprocessor system must have a thorough understanding of hardware, software
and system integration. In view of this, various aspects of hardware design, such as interfacing of
memory and different types of I/O devices, will be covered in details. As it is customary to write
software in machine or assembly language for embedded system applications, laboratory assignments
will be on assembly language programming of 8086 and 8051. The students will also learn to use
development aids, such as a assembler and simulator to perform software development, hardware
development and hardware-software integration. Finally, each batch of students will implement a
complete microcontroller-based system as part of the lab assignment.
Microprocessors and Microcontrollers Course Objective
Syllabus
Microprocessors and Microcontrollers Course Objective
SYLLABUS
MICROPROCESSORS AND MICROCONTROLLERS
Objective :
The objective of the Microprocessor and Microcontrollers is to do the students familiarize the
architecture of 8086 processor, assembling language programming and interfacing with various
modules. The student can also understand of 8051 Microcontroller concepts, architecture, programming
and application of Microcontrollers. Student able to do any type of industrial and real time applications
by knowing the concepts of Microprocessor and Microcontrollers.
Memory interfacing to 8086, Interrupt structure of 8086, Vector Interrupt table, Interrupt service
routine. Introduction to DOS and BIOS interrupts, Interfacing Interrupt controller 8259, DMA
controller 8257 to 8086
UNIT-V COMMUNICATION INTERFACE
Serial Communication Standards, serial data transfer schemes, 8251 architecture and interfacing
Interfacing RS-232, IEEE-488, 20mA Current Loop, Prototyping and Trouble shooting
TEXT BOOKS:
Microprocessors and Microcontrollers Course Objective
REFERENCE BOOKS:
WEBSITES
1. http:// doc.union.edu/
2. http://intel.com
3. http://buildinggadgets.com/
JOURNALS
1. IEEE Transaction on Electronic Devices (ISSN: 0018-9383)
2. Journal of Active and Passive Electronic Devices (ISSN: 1555-0281)
3. International Journal of Micro and Nano Electronics, (ISSN: 0975-4768)
4. Journal of Electronic Testing (ISSN: 0923-8174)
STUDENT'S
SEMINAR
TOPICS
Microprocessors and microcontrollers Seminar Topics
No of
S.No NAME OF THE TOPIC Method of Teaching Text books referred
Periods
Introduction to 8085
1. 1 ---
Microprocessor
Black board Chalk and D. V Hall, 2nd edition 2006--
2. 8086 architecture 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
3. Register organization 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
4. Memory Segmentation 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
5. Programming Model 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
6. Memory Addresseing 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
7. Physical memory Organization 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
8. Signal descriptions of 8086 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
9. Minimum Mode 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
10. Maximum Mode 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
11. Timing Diagrams 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
12. 8086 Interrupts 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
13. Instruction set 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
14. Assembly language programming 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
15. Assembly language programming 1
LCD Projector -
Black board Chalk and D. V Hall, 2nd edition 2006--
16. Assembly language programming 1
LCD Projector -
Black board Chalk and Advanced Microprocessors
Assembly language
17. 1 LCD Projector and peripherals A K Ray
programming
and K M burchandi
Black board Chalk and Advanced Microprocessors
18. Addressing Modes 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
19. Instruction set 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
20. Assembler directives, Macros 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
21. Simple programs 1
LCD Projector and peripherals A K Ray
Microprocessors and Microcontrollers Objective Type Questions
and K M burchandi
Black board Chalk and Advanced Microprocessors
22. Sorting 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
23. Evaluating arithmetic expressions 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
24. String manipulations 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
25. 8255 PPI introduction 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
26. Modes of operation 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
27. And interfacing to 8086 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
28. Keyboard Interfacing 1 LCD Projector and peripherals A K Ray
and K M burchandi
Advanced Microprocessors
Black board, Chalk and
29. Display Interfacing 1 and peripherals A K Ray
LCD Projector
and K M burchandi
Advanced Microprocessors
Black board, Chalk and
30. Stepper motor Interfacing 1 and peripherals A K Ray
LCD Projector
and K M burchandi
Advanced Microprocessors
Black board, Chalk and
31. DAC and ADC Interfacing 1 and peripherals A K Ray
LCD Projector
and K M burchandi
Advanced Microprocessors
Black board, Chalk and
32. Memory Interfacing to 8086 1 and peripherals A K Ray
LCD Projector
and K M burchandi
Advanced Microprocessors
Black board, Chalk and
33. Interrupt structure of 8086 1 and peripherals A K Ray
LCD Projector
and K M burchandi
Black board Chalk and Advanced Microprocessors
34. Interrupt Vector Table 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
35. DOS and BIOS Interrupts 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
36. 8259 Interfacing 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
37. 8257 DMAC Interfacing 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and D. V Hall, 2nd edition 2006--
38. Serial Communication standards 1
LCD Projector -
and K M burchandi
Black board Chalk and Advanced Microprocessors
62. Timers, USART 1 LCD Projector and peripherals A K Ray
and K M burchandi
Black board Chalk and Advanced Microprocessors
63. Interrupt structure 1 LCD Projector and peripherals A K Ray
and K M burchandi
LEARNING
OBJECTIVES
LEARNING OBJECTIVES
OBJECTIVE
TYPE
QUESTIONS
4. The fag which indicates whether the number of 1s are odd or even in the lower 8 bits is
[ ]
( a) C Y ( b ) Z (c)P ( d ) S F
6. f EA is used to represent Effective address then what addressing mode does EA = [2000]
Represent [ ]
( a) Register Direct ( b ) Register indirect (c) Indirect Addressing ( d) immediate
addressing
19 The flag which indicates whether the number of 1s are odd or even in the lowver 8 bits is
[ ]
( a) P ( b ) C Y (c)SF (d)Z
20 The segment size of 8086 is [ ]
(a) 23 KB (b) 56 kB (c) 64KB (d) 60KB
1 d 2 b 3 d 4 c 5 c 6 a 7 d 8 d 9 d 10 b 11 d 12 a 13 d 14 d 15 b 16 b 17 a 18 c 19 a 20 c
4. When a CMP instruction executes and the source and destination operands are
not equal what will be condition of Z and carry flag when source is greater than
destination [ ]
6. Given the program shown below, What is the expression evaluated by this program?
[ ]
MOV AL ,[P]
MOV BL, [Q]
ADD AL, BL
MUL AL
ADD AL, R
MOV CL, S
DIV CL
(a) (P+Q2+R)/ s (b) ((P+Q)2+R/S (c) (P+(Q+R)2)/S (d ) ((P+Q)2+R)/S
15. On the following program what is the final value of the S register. [ ]
MOV AX, 1000
MOV ES, AX
MOV DS, 3000
MOV S, 0
MOV D, O CLD
MOV CX, FF
AG: MOV SW LOOP AG
(a) 01FE (b) 01FF (c) 01FFF (d) 00FF
8. AN 8086 instruction is of which of these forms [ ]
(a)Opcode, Source, Destination ( b ) Op code,Destination,Source
(c)Source, destination, Opcode (d) Destination, source, opcode
10. Is the directive which indicates a reference point in memory and is usually used by JUMP
Instructions [ ]
( a) START ( b ) LABEL ( c ) ORG ( d ) LENGTH
31. Which registers will contain the product of a 16 bit multiplication instruction [ ]
( a) BX , DX ( b ) CH , CL ( c ) AH , AL ( d )AX,DX
11.In the following program what is the final value of the S register? [ ]
MOV AX, 1000
MOV ES, AX
MOV DS, 3000
Vignan Institute of Technology & Science III B.Tech 2nd Semester
Page 20
Microprocessors and Microcontrollers Objective Type Questions
MOV S ,0
MOV D ,0
CLD MOV CX, FF
AG:MOV SW LOOP AG
( a) 0 ( b ) 01FFF ( c ) 00F F ( d ) 01F E
12. In the following program what is the value of CX after the loop is executed [ ]
MOV AX,2
MOV DX,0FFFh
MOV CX,10
AGA N:DEC DX
LOOP AGA N
( a) 0 F F ( b ) 1 ( c) 0 ( d ) 0 F E F
13 Given the program shown below, What is the expression evaluated by this program?
[ ]
MOV AL, [P]
MOV BL, [Q]
ADD AL, BL
MUL AL
DIV CL
(a)(P+(Q+R)2)/S (b)((P+Q)2+R)/S (c ) ( P+Q 2 +R)Is (d)((P+Q)2+R/S
14 . EA is used to represent Effective address then what addressing mode does EA=R
Represent [ ]
( a) Register Direct (b) indirect Addressing
(c)Register indirect (d)immediate addressing
17. Which of the following instructions are used for searching a byte in
a string of bytes? [ ]
(a)CMPSB (b) MOVSB (c)SCASW (d)SCASB
18. Which of these instructions uses BX register to point to at a byte and AL register to
took up at a byte is
[ ]
( a) XOR ( b ) XC H G ( c ) L OO P ( d ) X LAT
20. When a CMP instruction executes and the source and destination operands are
not equal what will be condition of Z and carry flag when source is less than
destination [ ]
(a) Z=1, CY= 0 (b )Z=0, CY=1 (c) Z=0,CY=0 (d) Z=1,CY=1
1 c 2 a 3 a 4 c 5 b 6 d 7 d 8 b 9 c 10 b 11 b 12 c 13 c 14 a 15 c 16 d 17 d 18 d 19 b 20 d
2. If the 8255 is selected for addresses 0F800H to 0F806H, which one of the following is the
address of PORT C [ ]
(a) 0F806H ( b ) 0F802H ( c ) 0F804H ( d ) 0F800H
3. If 8 seven segment led multiplexed displays including the decimal point are connected. How
many wires are needed to connect the segments (not including power supply wires)?
( a) 15 ( b ) 16 ( c ) 56 ( d ) 64 [ ]
4. The diode kept across the coil of a step per motor is for ? [ ]
( a) Shorting the Back EMF ( b ) To stop the step per motor
( c ) Stopping flow of current ( d ) Allowing flow of current
5. In the A/D converter ADC0808 which of these signals tri states the digital output of ADC
( a) EOC ( b ) ALE ( c ) SOC ( d ) OE [ ]
7. If the control word 09BH is given to the control register of the 8255 PPI then which of these
options are the condition of the ports [
]
( a) BIT SET RESET ( b ) ALL PORT‘s INPUT
( c ) ALL PORT‘s OUTPUT ( d ) PORT‘s A&B INPUT,PORT C OUTPUT
10. Two 8255‘s IC1&IC2 are connected to 8086 16 bit bus and D0 to D7 are connected to IC1 and
D8 to D15 are connected to IC2. The base address signals A0&A1 go to IC1&IC2‘s A0&A1 pins
respectively. If a decoded signal with a range of 0FFE0H to 0FFE3H then What is the address of
IC1PORT B register [ ]
( a) 0FFE2H
( b ) 0FFE0H
( c ) 0FFE3H
( d ) 0FFE1H
12. If 8 seven segment led multiplexed displays including the decimal point are all lighted up and
each of these is biased to carry 5mA. What is the total current drawn from the power supply when
all the segments are ON? [ ]
( a) 280 mA ( b ) 80 mA ( c ) 40 mA ( d ) 300 mA
14. An A/D converter which has a maximum output digital value of 1023 need show many wires for
connecting its digital output to a peripheral chip [ ]
( a) 10 ( b ) 13 ( c ) 8 ( d ) 12
17. At power on or after reset the ports are in which of these conditions [ ]
( a) PORT A=INPUT,PORT B=INPUT, PORT C=INPUT
( b ) PORT A=INPUT,PORT B=INPUT, PORT C=OUT PUT
( c ) PORT A=INPUT, PORT B=OUTPUT, PORT C=OUTPUT
( d ) PORT A=OUTPUT, PORT B=INPUT, PORT C=OUTPUT
19. An 8 bit A/D converter with a reference voltage of 5 Volts will be able to read a lowest non zero
voltage of [
]
( a) 20 Mv ( b ) 19.5 mV ( c ) 21 mV ( d ) 19 mV
Answers
1 c 2 c 3 b 4 a 5 d 6 a 7 b 8 d 9 b 10 d 11 a 12 c 13 d 14 a 15 c 16 b 17 a 18 b 19 b 20 a
1. Which of these is used for indicating that data is being written or read from the data bus?
[ ]
(a) DT/R (b) ALE (c) HOLD (d) MN/MX
[ ]
(a) 74LS245/8286 ( b ) 8284A ( c ) 74LS138 ( d ) 74LS373
5. One of these is not the segment offset form of the absolute address 00417 [ ]
(a) 0040:0017 (b)0000:041 7 (c)0041:0007 (d ) 0417:0000
8. Which combination of the flags indicate that the destination is greater than the source
[ ]
( a) CY = 1, Z = 1 ( b ) CY = 0, Z = 1 ( c ) CY=0,Z=0 ( d ) CY = 1, Z =O
11. The 8086 takes over the bus when it receives one of these signals [ ]
Vignan Institute of Technology & Science III B.Tech 2nd Semester
Page 24
Microprocessors and Microcontrollers Objective Type Questions
( a) GT 1,GT 0 ( b ) RQ 0 ( c) RQ 0 , RQ 1( d ) GT O
13. In a 8086 system which uses one bank of 16 KX8 memory connected respectively to D0
D7 The following address lines would be connected to them [ ]
( a) A 1 to A 14 ( b ) A 1 to A 15 ( c ) A0 to A13 ( d ) A 0 to A 14
14. Which of these signals indicates that an interrupt Request is being acknowledge
[ ]
(a) INTRA (b)HLDA (c)MOV (d)DEN
15. The register whose contents are copied during auto initialization is holds the 16 bit address
being used for DMA is [ ]
(a)Command Register (b)Current word count register
( c ) Base Word Count registers (d)Current Address Register
19. Which of these is used for identifying when the address is output? [ ]
( a) H OLD ( b )ALE ( c ) MNM X ( d ) D T/ R
20. Which of these signals combination indicates a Lower 8 bit data transfer? [ ]
(a)A0=0&BHE=0 (b)A0=1&BHE=0 (c ) A0=0 & BHE= (d)A0=1&BHE=1
Answers
1 a 2 d 3 c 4 b 5 c 6 d 8 c 9 c 10 b 11 a 12 a 13 a 14 a 15 c 16 a 17 d 18 a 19 b 20 a
2. The L2 and L1 bits in the Mode word are used for setting which of these parameters?[ ]
( a) NUMBER OF STOP BITS ( b ) CHARACTER LENGTH
3. In the Synchronous mode the 8251 which signal indicates that the specified Synchronous
character is received ? [ ]
( a) Tx C ( b ) SYNDET/BD ( c ) CLK ( d ) C/D
4. If the CPU has not read a character from the 8251 before the arrival of the next character. Which
of the following errors is supposed to have occurred? [ ]
( a) Even Parity error ( b ) Framing Error ( c ) Over Run Error ( d ) Odd Parity Error
6. Which one of these serial data transmission standards is single ended and does not use low
impedance drivers? [ ]
( a) RS449 ( b ) RS232C ( c ) RS423A ( d ) RS422A
8. In the Synchronous mode the 8251 which signal indicates that the specified Synchronous
character is [ ]
( a) CLK ( b ) C/D ( c ) TxC ( d ) SYNDET/BD
10. When the MODEM is ready to Transmit Data it Asserts which one of these signals is asserted?
[ ]
( a) DSR ( b ) CD ( c ) RTS ( d ) CTS
11. Serial data is received by the DTE from the DCE through which one of these signals?
[ ]
( a) RTS ( b ) CD ( c ) CTS ( d ) RxD
12. If B1=0 and B0=0 in the mode register of the 8251.The USART is working in which of these
modes? [ ]
( a) Synchronous mode ( b ) Asynchronous mode with BRF=16
( c ) Asynchronous mode with BRF=64 ( d ) Asynchronous mode with BRF=1
13. The serial data transmission standards which uses differential Rx & Tx signals is which one of the
following? [ ]
( a) RS232C ( b ) RS449 ( c ) RS423A ( d ) RS422A
14. The data signals used by USB are of which type of the following? [ ]
( a) Uni-Phase ( b ) Quad Phase ( c ) Bi-Phase ( d ) Tri-phase
( a) IE1 ( b ) TF ( c ) TR ( d ) IT1
Answers
1 a 2 b 3 b 4 c 5 b 6 b 7 d 8 d 9 d 10 a 11 d 12 b 13 a 14 c 15 a 16 c 17 a18 c 19 a 20 b
2. General purpose registers R0 to R7 can be referred as sets of four banks (0to3) and also by
memory location. If a register R3 in Bank2 is referred, what is its internal ram location address?
( a) 14H ( b ) 10H ( c ) 12H ( d ) 13H [ ]
3. Timer0 is functional as an 8 bit counter while timer 1 is stopped in which of the following modes?
[ ]
( a) Mode2 ( b ) Mode1 ( c ) Mode3 ( d ) Mode0
4. Which of the following is the correct order of priority in decreasing order from left to right?
[ ]
( a) EX0,EX1,ET0,ET1,ES, ( b ) ES,EX1,ET0,E01,ET1
( c ) ET0,EX0,ET1,EX1,ES ( d ) EX0,ET0,EX1,ET1,ES
6. The 8051 micro controller does not have one of the following as its built in peripheral?
[ ]
( a) Timers ( b ) Counters ( c ) UART ( d ) DMA controller
8. One of these registers is loaded with the upper byte of the terminal count? [ ]
( a) THx ( b ) TMOD ( c ) TLx ( d ) TCON
9. The bit which disables reception of serial data is which one of the following? [ ]
( a) RB8 ( b ) TB8 ( c ) RI ( d ) REN
10. The instruction which activates the PSEN signal is which one of the following? [ ]
( a) MOVC ( b ) MOV @ ( c ) MOV ( d ) MOV X
15. The instruction used to access internal RAM is which one of the following? [ ]
( a) MOV @ ( b ) MOV ( c ) MOV X ( d ) MOVC
16. The 8051 micro controller built in timer is of how many bits? [ ]
( a) 16 (b)8 ( c ) 32 ( d ) 24
18. One of these registers is loaded with the upper byte of the terminal count? [ ]
( a) TLx ( b ) TCON ( c ) THx ( d ) TMOD
19. Which of the following is the correct order of priority in decreasing order from left to right?
[ ]
( a) ET0,EX0,ET1,EX1,ES ( b ) EX0,EX1,ET0,ET1,ES,
( c ) EX0,ET0,EX1,ET1,ES ( d ) ES,EX1,ET0,E01,ET1
20. Which of these signals is used for enabling the external ROM? [ ]
( a) ALE ( b ) RESET ( c ) EA ( d ) PSEN
Answers
1 c 2 d 3 c 4 d 5 c 6 d 7 a 8 a 9 d10 a 11 b 12 a 13 a 14 c 15 b 16 a 17 a 18 c 19 d 20 d
1. ____. [ ]
2. Serial port vector address is of _______. And causes an interrupt when ________. [ ]
4. In modes 2 and 3, if _____ bit of SCON bit is set will causes enable multiprocessor
communication and is of ____ bit address. [ ]
a) SM1, 9EH b) TB8 , 9CH c) SM2 , 9DH d) SM0, 9FH
5. Interfacing LCD with 89C51 _____ data lines are used along with the _____ signals. [ ]
a) 6, RS, RW b) 5, RW, EN c) 8, RS, EN, RW d) 9, RS, EN, RW
7. In microcontroller and LCD interface which line will instruct the LCD that microcontroller is
sending data? [ ]
a) DB0 b) RW c) EN d) RS
8. Which bit of TMOD will exactly configure timer / counter as a timer or counter. [ ]
i) TMOD.6 of C/T for timer 1 ii) TMOD.6 of C/T for timer 0
iii) TMOD.2 of C/T for timer 0 iv) TMOD.2 of C/T for timer 1
a) i, ii b) ii, iv c) i, iii d) iii, iv
10. The upper 8 bits of address bus are generated on which of these ports? [ ]
11. The 8051 microcontroller wakes up at memory address ____ when it is powered up[ ]
12. When the 8051 is powered up the SP register contains the value___ [ ]
(a) ORG 2000H (b) MOV A,#12 (c) ORG 2090 H (d) ORG 5000H
2. Explain the functions of different registers in 8086. Also discuss the flag register contents.
4. (a) Draw the internal architecture of 8085? Explain about each block in it.
(b) Explain the function of OPCODE prefetch FIFO Buffer in 8086?
5. (a) What are the contents of the data bus and the status of A0 and BHE when the following
instructions are executed in 8086?
i. CPU writes a byte 11 H at memory location 1000H : 0002 H.
ii. CPU writes a word 2211 H at memory location 1000H : 0003 H.
(b) Write the functions of the following pins of 8086.
i. MN/ MX ii. DEN iii. ALE iv. Ready.
Unit-III I/ O interface
1. Write the necessary instruction sequence to initialize 8255 with address 0200H to 0203H for the
following combinations:
(a) Port-A as input port in mode-1 and Port-B as input port in mode-1 with interrupt driven I/O.
(b) Port-A in mode-2 and Port-B as input port in mode-1 with interrupt driven I/O.
(c) Port-A as output port in mode-0 and Port-C upper half as input port in mode-0, and Port-B as
output port in mode-1 with interrupt driven I/O.
(d) Port-A as output port in mode-1 with active interrupt, Port-B as output port in mode-0 and Port-
C lower half as input port in mode-0.
2. (a) Interface the stepper motor with 8255 and write an ALP to rotate the stepper motor
continuously in clockwise direction.
(b) Write an assembly language program to rotate a 200 teeth, 4 phase stepper
motor as specified below: Ten rotations clockwise and eight rotations anti-
clockwise.
3. (a) Draw the interfacing scheme of 8255 and 8086 in memory mapped I/O mode.
(b) An 8255 is used with port-A input in mode-1, Port-B as output in mode-1 and
with Port-C used for handshaking for Port-A and Port-B. Assume the address of Port-A is 80H.
i. Determine the control word and write the instruction sequence to program the 8255 for this mode
of operation.
ii. Draw the scheme of connections required.
UNIT IV: Interfacing with advanced devices
1.What is an interrupt? Explain, how the 8086 processor recognizes the interrupt? Draw the timing
diagram, assuming that INTR is active. Explain interrupt acknowledge cycle with its associated
timing diagram.
2. (a) With a neat sketch explain 8257 DMA controller and its operation?
(b) With the help of basic cell explain SRAM and DRAM?
3. (a) What is the interrupt vector table? Draw and explain the interrupt vector table for 8086.
(b) Describe the response of 8086 to the interrupt coming on INTR pin.
4. (a) List out the advantages of using 8259?
(b) Describe the conditions that cause the 8086 to perform each of the following types of interrupts:
Type-0, Type-1, Type-2 and Type-4.
5. Explain and Draw a block diagram to interface two 16K X 8 SRAM (62128) to the 16-bit
data bus of 8086 based system. Design the address decoder for the address range from 00000H -
07FFFFH for both the SRAMs.
6. (a) Discuss the sequence of operations performed in the interrupt acknowledge cycle.
(b) What is the difference between RET and IRET? Discuss the result, if RET instruction is placed at
the end of the interrupt service routine.
(c) What is the vector address of type-50H interrupt?
Unit V:Communication Interface
1. (a) Draw and explain the null modem interfacing.
(b) What is Memory mapped I/O? Draw the interfacing of 8251 with 8086 in memory mapped I/O
mode.
2. (a) What is a Status word of 8251A? Explain how 8086 processor will read the status word from
8251.
(b) Write the sequence of instructions required to initialize 8251 at address A0H and A1H for the
configuration given below:
i. Character length - 8 bits. ii. No parity iii. Stop bits - 1 ½ iv. Baud rate - 16X
v. DTR and RTS asserted vi. Error flag reset.
3. (a) Explain the line driver and the line receiver circuits of serial communication.
(b) What do you mean by I/O mapped I/O? Draw the interfacing of 8251 with
8086 in I/O mapped I/O mode.
4. Design the hardware interface circuit for interfacing 8251 with 8086. Set the 8251 in asynchronous
mode as a transmitter and receiver with even parity enabled, 2 stop bits, 8-bit character length,
frequency 160 KHz and baud rate 10K:
(a) Write an ALP to transmit 100 bytes of data string starting at location 2000:5000H.
(b) Write an ALP to receive 100 bytes of data string and store it at 3000:4000H.
UNIT VI: Introduction to Microcontrollers
1. (a) How does 8051 differentiate between the external and internal program memory?
(b) Explain the alternate functions of Port-0, Port-2 and Port-3.
2. (a) Discuss the advantages of microcontroller based system over microprocessor based systems.
(b) Describe the following registers of 8051:
i. A ii. B iii. SP iv. DPTR
3. (a) Explain various operation modes of Timer-1 and Timer-0.
(b) Describe the Timer control (TCON) and Timer mode control (TMOD) registers.
4. Give the complete block schematic of an 8051 based system having following specifications:
(a) 64 KB program memory (b) 64 KB data memory
(c) Make use of 16 K x 8-bit memory chips and 74LS138 decoders.
(d) Indicate clearly the address selected for the memory chips.
UNIT- VII: 8051 Real Time control
1. An array of random integers is placed from internal data memory location 31H onwards. The number
of terms of (N) of array is available in the memory location 30H. Develop a program to place the
entire array in reverse order in the same memory area
2. Write a program to convert an array of hexadecimal digits to their BCD equivalent. Assume all
entries of input array are less than 64H
3. In a 8051 based system INT1 is connected with a hardware circuit which generates a two level signal
a s an interrupt. The signal is active (remains low) for 10 micro seconds. The INT1 is to be used to
read port 2 and to store it in data memory location from 30H onwards. Whenever this port input
becomes 00H, INT1 should be disabled. Develop the initialization routine and also the ISR
4. Write a test program that will “loop test” the serial port. The output of the serial port (TXD) is
connected to the input (RXD), and the test program is run. Success is indicated by port 1 pin 1 going
high.
ASSIGNMENT
QUESTIONS
ASSIGNMENT QUESTIONS
UNIT I: 8086 Architecture
5. Explain RS – 232
6. Ex[lain IEEE-488