Ipt
Ipt
Interrupt is an event or signal that request to attention of CPU. This halt allows
peripheral devices to access the microprocessor.
Whenever an interrupt occurs the processor completes the execution of the current
instruction and starts the execution of an Interrupt Service Routine (ISR) or Interrupt
Handler.
7 What are Byte and String Manipulation? REMEMBER CO1 PI
BT-L1 1.3.1
String is a series of data byte or word available in memory at consecutive locations.
It is either referred as byte string or word string.
Their memory is always allocated in a sequential order. Instructions used to manipulate
strings are called string manipulation instructions.
8 Define stack pointer. REMEMBER CO1 PI
BT-L1 1.3.1
A stack pointer is a specialized buffer which stores data from the top to down. As new
requests come in, they "push down" the older ones.
The most recently entered request always resides at the top of the stack, and the
program always takes requests from the top.
9 List the various addressing modes of 8086. REMEMBER CO1 PI
BT-L1 2.2.4
The various addressing modes of 8086 are:
Register Addressing mode :
Immediate Addressing mode:
Register Indirect Addressing mode:
Direct Addressing mode:
Indexed Addressing mode:
Base Relative Addressing mode:
Base Indexed addressing mode:
MP & MC 3. 10 KCE / ECE / QB / III Yr / MP & MC
Subject Code/Name: EC 8691 /MICROPROCESSORS & MICROCONTROLLERS
10 Define Macros. REMEMBER CO1 PI
BT-L1 1.3.1
Macros are small routines that are used to replace strings in the program. They can
have parameters passed to them, which enhances the functionality of the micro itself.
A Macro is a group of instructions with a name. When a macro is invoked, the
associated set of instructions is inserted in place in to the source, replacing the macro
name. Macros provide several powerful mechanisms useful for the development of
generic programs.
11 The offset address of a data is (341B)H and the data REMEMBER CO1 PI
segment register value is (123A)H. What is the BT-L1 2.1.3
physical address of the data?
Dada segment Address is (123A)H
Base address of data segment is (123A0)H
Physical address = Base address + Offset address
= (123A0) H+ (341B) H
= (157BB) H
12 List the segment registers of 8086. REMEMBER CO1 PI
BT-L1 1.4.1
The segment registers of 8086 are:
Code Segment register
Data Segment register
Stack Segment register
Extra Segment register
13 Write about the different types of interrupts REMEMBER CO1 PI
supported in 8086? BT-L1 1.4.1
The following are the different types of interrupts supported in 8086:
(i) Hardware Interrupt
Maskable Interrupts
Non-Maskable Interrupts
(ii) Software Interrupts
256 Types of Software Interrupts
14 Identify the addressing modes in the following REMEMBER CO1 PI
instruction. BT-L1 2.1.2
AND AL, BL - Register Addressing mode
SUB AL, 24H - Immediate Addressing mode
MOV AL, (BP) - Register Indirect Addressing mode
MOV CX, 1245H. - Direct Addressing mode
15 What is a tristate bus? REMEMBER CO1 PI
BT-L1 1.2.1
A three-state bus is a computer bus connected to multiple tri-state output devices, only
one of which can be enabled at any point to avoid bus contention. This scheme allows
for the same bus to be shared among multiple devices.
16 What is an assembler? REMEMBER CO1 PI
BT-L1 1.3.1
An assembler is a program that takes basic computer instructions and converts them
into a pattern of bits that the computer's processor can use to perform its basic
operations.
Assemblers need to:
PART B
PART - C
1. i)Write an 8086 ALP to find the sum of AU-AM APPLY CO1 PI
numbers in an array of 10 elements. 2021 BT-L3
MP & MC 3. 14 KCE / ECE / QB / III Yr / MP & MC
Subject Code/Name: EC 8691 /MICROPROCESSORS & MICROCONTROLLERS
(08) (8) 2.1.3
ii)Write an 8086 ALP to find the largest
number and smallest number in an array.
(07)
2. (i) Discuss the data movement and program control REMEMBER CO1 PI
instructions of 8086. (10) BT-L1 2.1.3
(ii)Write an 8086 ALP to find the sum of numbers in the APPLY
array of 10 elements. (05) BT-L3
3 Write the 8086 assembly language program to arrange APPLY CO1 PI
the set of numbers in ascending order and explain. BT-L3 2.1.3
(15)
4 (i) Explain the data transfer, arithmetic and branch REMEMBER CO1 PI
instructions with examples. (08) BT-L1 2.1.3
(ii) Write an 8086 ALP to find the sum of numbers in an APPLY
array of 10 elements. (07) BT-L3
5. (i)Write an 8086 ALP to separate odd and even APPLY CO1 PI
numbers in a given array. (07) BT-L3 2.1.3
(ii)Explain the data transfer group and logical group of REMEMBER
8086 instruction with necessary examples. (08) BT-L1
14 Define bus. Why bus request and cycle stealing are UNDERSTAND CO1 PI
required? BT-L2 1.3.1
Bus is a group of wires to transfer data from source to destination.
In the cycle stealing mode, the DMA controller obtains access to the system bus
using BR (Bus Request) and BG (Bus Grant) signals, which are the two signals
controlling the interface between the CPU and the DMA controller.
15 State the different data transfer schemes. REMEMBER CO1 PI
BT-L1 1.3.1
There are two types of data transfer scheme:
Synchronous
It is the data method which is used when the IO and Microprocessor match in Speed.
To transfer a data to or from the device, the user program issues a suitable
instruction addressing the device. The data transfer is completed at the end of the
execution of the instruction.
Asynchronous
this, overlapping instruction fetch with instruction execution increases the processing
speed.
25 Explain the BHE and LOCK signals of 8086. REMEMBER CO1 PI
BT-L1 1.3.1
BHE (Bus High Enable): Low on this pin during first part of the machine cycle indicates that
at least one byte of the current transfer is to be made on higher byte AD15-AD8.
LOCK: This signal indicates that an instruction with a LOCK prefix is being executed and the
bus is not to be used by the other processor.
PART B
1 Draw the pin diagram of 8086 processor and AU-AM UNDERSTAND CO1 PI
explain all the signals. (13) 2021 BT-L2 1.3.1
2 i)Explain in detail about closely coupled AU-AM UNDERSTAND CO1 PI
configurations. (06) 2021 BT-L2 1.3.1
ii)Discuss on loosely coupled configurations in
detail. (07)
3 Draw the diagrams showing address AU-ND UNDERSTAND CO2 PI
demultiplexing for 8086. Explain the use of IC in 2019 BT-L2 1.3.1
the system and the relevant pins and signals.
(13)
4 Draw the timing diagram for the ‘Memory Read’ AU-ND UNDERSTAND CO1 PI
machine cycle of 8086. Explain the function of 2019 BT-L2 1.3.1
PART – C
1 What are the signals available for serial AU-AM REMEMBER CO3 PI
communication 2021 BT-L1 1.3.1
Transmitter signals:
TxD-Transmit Data
TxRDY- Transmitter Ready
TxE- Transmitter Empty
TxC- Transmitter Clock
Receiver Signals:
RxD-Receiver Signals
RxRDY- Receiver Ready
RxC-Receiver Clock
SYNDET (Syn Detect)/BRKDET (Break Detect)
2 Define conversion time. AU-AM REMEMBER CO3 PI
2021 BT-L1 1.3.1
Conversion time of an ADC is the time required by the ADC to perform a complete
conversion process.
3 What is the function of the following signals AU-ND UNDERSTAND CO3 PI
in an ADC (while interfacing a 2019 BT-L2 1.3.1
microprocessor)? i) EOC ii) SOC
EOC-End of Conversion
MP & MC 3. 21 KCE / ECE / QB / III Yr / MP & MC
Subject Code/Name: EC 8691 /MICROPROCESSORS & MICROCONTROLLERS
After the conversion is over, the ADC sends end of conversion (EOC) signal to inform the
microprocessor that the conversion is over and the result is ready at the output buffer of
the ADC.
SOC – Start of Conversion
The start of conversion signal is a pulse of a specific duration. The process of analog to
digital conversion is a slow process, and the microprocessor has to wait for the digital data
till the conversion is over.
4 List the function of HOLD and HLDA in 8086. AU-ND REMEMBER CO3 PI
2019 BT-L1 1.3.1
A HIGH on HOLD pin indicates that another master is requesting to take over the
system bus.
On receiving HOLD signal processor outputs HLDA signal HIGH as an
acknowledgement.
After "HOLD" is detected as being Low, the processor will lower the HLDA, it will
again drive the local bus and control lines.
5 Give the various modes and applications of 8254 REMEMBER CO3 PI
timer? BT-L1 1.3.1
The various modes and applications of 8254 timer are,
Mode 0: Interrupt On Terminal Count
Mode 1: Hardware Retriggerable one shot
Mode 2: Rate Generator
Mode 3: Square Wave Generator
Mode 4: Software Triggered Strobe
Mode 5: Hardware Triggered Strobe
6 What is the handshake signals used in Mode-2 REMEMBER CO3 PI
configuration of 8255? BT-L1 1.3.1
In mode2 only port A can be used as a bidirectional port.
The handshaking signals are provided on five lines of port C (PC 3-PC7). Port B can be
used in mode0 or in mode1.
7 Draw the format of read back command register of UNDERSTAND CO3 PI
8254. BT-L2 1.4.1
D7 D6 D5 D4 D3 D2 D1 D0
1 1 COUNT STATUS CNT2 CNT1 CNT0 0
D7-D6 = 1 for read back command register
D5 Latch count
D4 Latch status
D3 select counter 2
D2 select counter 1
D1 select counter 0
8 How the DMA operation performed with 8086? UNDERSTAND CO3 PI
BT-L2 1.3.1
The direct memory access DMA interface of the 8086 minimum mode consist of the
HOLD and HLDA signals.
When an external device wants to take control of the system bus, it signals to the 8086
by switching HOLD to the logic 1 level.
9 What is the drawback of memory mapped I/O? REMEMBER CO3 PI
BT-L1 2.4.3
PART B
1 Draw the block diagram of 8279 and AU-AM REMEMBER CO3 PI
explain the function of each. (13) 2021 BT-L1 1.3.1
2 Explain the operation of DMA controller AU-AM REMEMBER CO3 PI
8237 with neat diagrams. (13) 2021 BT-L1 1.3.1
3 (i)Draw the block diagram of the PPI 8255 AU-ND REMEMBER CO3 PI
and explain the ports and modes of the chip. 2019 BT-L1 2.1.3
PART –C
1 Write a program to mask the 0th and 7th AU-AM APPLY CO4 PI
bit using 8051. 2021 BT-L3 2.1.2
ORG 00H
MOV A, #FFH ; A = FFH = 255D = 11111111B
ANL A, #7E H ; 126 D= 7E H= 01111110B
END
CY AC F0 RS1 RS0 OV - P
D7 D6 D5 D4 D3 D2 D1 D0
CY – Carry Flag; AC – Auxiliary Flag; F0 – Status Flag
OV – Overflow Flag; P – Parity F
RS1 - Register Bank Select Bit 1
RS2 – Register Bank Select Bit 2
5 What are the different ways of operand addressing in UNDERSTAND CO4 PI
8051? BT-L2 2.2.4
MOV A,#6AH
Here the data 6A is the operand, often known as source data. When this instruction is
executed, the data 6AH is moved to accumulator A. There are 5 different ways to execute
this instruction by using 5 addressing modes for 8051. They are (i) Immediate addressing
mode (ii)Direct addressing mode (iii) Register direct addressing mode (iv) Register indirect
addressing mode (v) Indexed addressing mode.
19. What is the special function registers used for port REMEMBER CO4 PI
operation in 8051? BT-L1 1.3.1
The following ports have been used as Bit addressable ports in 8051:
PORT P0: When there is no external memory present, this port acts as a general purpose
input/output port. In the presence of external memory, it functions as a multiplexed
address and data bus. It performs a dual role.
PORT P1: This port is used for various interfacing activities. This 8-bit port is a normal
I/O port i.e. it does not perform dual functions.
PORT P2: Similar to PORT P0, this port can be used as a general purpose port when
there is no external memory but when external memory is present it works in
14 (i) Draw the pin diagram of 8051 microcontroller and REMEMBER CO4 PI
explain the function of each pin. (08) BT-L1 1.4.1
(ii) Discuss briefly the various registers in 8051
microcontroller. (05)
15 (i)Explain the working of program control transfer REMEMBER CO4 PI
instructions of 8051 microcontroller. (07) BT-L1 2.1.3
(ii)Write an assembly language program to generate
square wave form using on-chip timer. (06)
16 List the features of 8051 microcontroller. (13) REMEMBER CO4 PI
MP & MC 3. 33 KCE / ECE / QB / III Yr / MP & MC
Subject Code/Name: EC 8691 /MICROPROCESSORS & MICROCONTROLLERS
BT-L1 2.2.4
17 Explain the architecture of 8051 microcontroller with a REMEMBER CO4 PI
neat diagram. (13) BT-L1 1.4.1
18 Describe the different mode of operation of REMEMBER CO4 PI
timers/counters in 8051 with its associated register. BT-L1 1.4.1
(13)
19 (i) Explain the different types of addressing modes in REMEMBER CO4 PI
8051. (07) BT-L1 2.1.2
(ii)Explain the arithmetic instructions of 8051. (06)
8. State how baud rate is calculated for serial data UNDERSTAND CO4 PI
When current starts flowing through the control coil, the electromagnet starts
energizing and thus intensifies the magnetic field. Thus the upper contact arm starts to
be attracted to the lower fixed arm and thus closes the contacts causing a short
circuit for the power to the load.
On the other hand, if the relay was already de-energized when the contacts were
closed, then the contact move oppositely and make an open circuit.
15 What is meant by I2C standard? REMEMBER CO4 PI
. BT-L1 1.4.1
In I C only two bi-directional lines Serial Data (SDA) & Serial Clock (SCL) are required to
2
carry information between the devices connected to the bus. Each I 2C device is recognized
by a unique 7-bit address.
The device that initiates the communication is called MASTER. The master controls the
clock signal. Whereas the device being addressed by the Master is called as SLAVE.
Generation of clock signals on the I2C-bus is always the responsibility of master devices;
each master generates its own clock signals when transferring data on the bus.
16 Write an ALP to receive input from port P1.5 and if it APPLY CO4 PI
. is high then an output 35H is sent to Port 0. BT-L3 2.2.1
L1: JNB P1.5, L1 ; Jump if no bit P1.5 is set
MOV A, #35H; Move 35H to Accumulator
MOV P0, A ; Move the Contents of Accumulator to Port P0
17 What are precautions required while interfacing REMEMBER CO4 PI
. microprocessor with motors? BT-L1 1.4.1
While interfacing microprocessor with motors, the following precautions are made:
Care should be taken to assure lifting in the direction intended in the design of the
lifting means.
Data lines for microprocessor should be connected to the data lines of the
Interfacing a device which is connected to the motor.
PART B