SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen
Microprocessor and its Applications (EC331)
1. What is Microprocessor ? What are the basic units of a microprocessor ?
It is a program controlled semiconductor device (IC}, which fetches,
decode and executes instructions.
The basic units or blocks of a microprocessor are ALU, an array of
registers and control unit .
2. What is multiplexing and what is its advantage? How the address and data lines
are demultiplexed in 8085?
Multiplexing is transferring different information at different well defined
times through same lines. A group of such lines is called multiplexed bus. The
advantage of multiplexing is that fewer pins are required for microprocessors to
communicate with outside world.
The low order address and data lines of 8085 are demultiplexed using an
external 8-bit D-Latch (74LS373) and the ALE signal of 8085, as shown in fig.

Ao – A7

8085
ADo – AD7

74LS373
LATCH

ALE

EN

D0 - D7

Fig : Demultiplexing of address and data lines in 8085 processor
At the beginning of every machine cycle, ALE is asserted high and then low.
Also the low byte of address is given out through ADo -AD7 lines. Since the
ALE is connected to Enable of Latch, when ALE is asserted high and then low
the addresses are latched into the output lines of the latch. Now the lines ADo AD7 are free for data transfer.
3. Explain the function of IO/M, READY , HOLD and HLDA in 8085.
The IO/M is used to differentiate memory access and I/O access. For IN
and OUT instruction it is high. For memory reference instructions it is low.
READY is an input signal to the processor, used by the memory or I/O
devices to get extra time for data transfer or to introduce wait states in the bus
cycles.
HOLD and HLDA signals are used for the Direct Memory Access
(DMA) type of data transfer. The DMA controller place a high on HOLD pin in
order to take control of the system bus. The HOLD request is acknowledged by the
8085 by driving all its tristated pins to high impedance state and asserting HLDA
signal high.
4. What is a flag? List the flags of 8085.
Flag is a flip flop used to store the information about the status of the
processor and the status of the instruction executed most recently.
There are five flags in 8085. They are sign flag, zero flag, Auxiliary carry
flag, parity flag and carry flag.

5. Define mnemonics.

The short-hand form of describing the instructions are called mnemonics.
The mnemonics are given by the manufacturers of microprocessors and
programmable devices.

6. What is processor cycle (Machine cycle) ,Instruction cycle, fetch and execute
cycle?
The processor cycle or machine cycle is the basic operation performed by
the processor. To execute an instruction, the processor will run one or more
machine cycles in a particular order.
I
The sequence of operations that a processor has to carry out while
executing the instruction is called Instruction cycle. Each instruction cycle of a
processor in tum consists of a number of machine cycles.
In general, the instruction cycle of an instruction can be divided into fetch
and execute cycles. The fetch cycle is executed to fetch the opcode from
memory. The execute cycle is executed to decode the instruction and to perform
the work instructed by the instruction.
7. List the various machine cycles of 8085
The various machine cycles of8085 are
(i) Opcode fetch cycle
(ii) Memory read cycle
(iii) Memory write cycle
(iv) 1/0 read cycle
(v) 1/0 write cycle
(vi) Interrupt acknowledge cycle
(vii) Bus idle cycle.

8. What is the need for timing diagram?
The timing diagram provides information regarding the status of various
signals, when a machine cycle is executed. The knowledge of timing diagram is
essential for system designer to select matched peripheral devices like memories,
latches, ports, etc., to form a microprocessor system.

9. What is T -state?
The T-state is the time period of the internal clock signal of the processor.
The time taken by the processor to execute the machine cycle is expressed in Tstate.

10. Define opcode and operand.
Opcode (Operation code) is the part of an instruction / directive that
identifies a specific operation.
Operand is a part of an instruction / directive that represents a value on
which the instruction acts.
11. What is addressing? What are the various addressing modes available in 8085?
The method of specifying the data to be operated by the instruction is
called addressing.
The 8085 has the following five different types of addressing.
1. Immediate addressing
2.
3.
4.
5.

Direct addressing
Register addressing
Register indirect addressing
Implied addressing

12. Compare the memory mapped 1/0 and standard 1/0 mapped 1/0.
Memory Mapped 1/0
1. 16-bit address is alloted to
an I/O device
2. The devices are accessed by
I/O read or I/O write cycle.
3. All instructions related to
memory can be used for
data transfer.
4 . A large number of I/O ports
can be interfaced.

Standard 1/0 mapped 1/0
1. 8 -bit address is alloted to an I/O
device.
2. The devices are accessed by
memory read or memory write
cycle.
3. Only IN and OUT instructions
can be used for data transfer.
4. Only 256 ports can be interfaced.

13 .What is meant by memory mapping? What is memory access time ?
The memory mapping is the process of interfacing memories to
microprocessor and allocating addresses to each memory locations. The
memory access time is the time taken by the processor to read or write a
memory location. During read operation it is the time between a valid address
on the bus and end of read control signal. During write operation it is the
time between a valid address on the bus and the end of write control signal.

14. What is an Interrupt ? Haw the interrupt are classified ?

Interrupt is a signal send by an external device to the processor so as to
request the processor to perform a particular task or work.
They are three methods of classifying interrupts
Method I :The interrupts are classified into Hardware and
Software interrupts
Method II:The interrupts are classified into vectored and NonVectored interrupt
15. What is Vectored and Non- Vectored interrupt?
When an interrupt is accepted, if the processor control branches
to a specific address defined by the manufacturer then the interrupt is called
vectored interrupt.
In Non-vectored interrupt there is no specific address for storing
the interrupt service routine. Hence the interrupted device should give the
address of the interrupt service routine.

16. List the Software and Hardware interrupts of 8085 ?
Software interrupts :
RST 0, RSTl, RST 2,
RST 3, RST 4, RST 5,
RST 6 and RST 7.
Hardware interrupts:
TRAP, RST 7.5, RST 6.5,
RST 5.5 and INTR.
17. What is Polling ? What are the different types of Polling?
Polling is a scheme or an algorithm to identify the devices interrupting the
processor. Polling is employed when multiple devices interrupt the processor
through one interrupt pin of the processor.
The polling can be classified into software and hardware polling. In
software polling the entire polling process is govern by a prograrn.1n hardware
polling, the hardware takes care of checking the status of interrupting devices and
allowing one by one to the processor.
18. Write 8085 assembly language instructions to store the contents of the flag
register in memory location 2000H.
PUSH PSW
POP B
MOV A,C
STA 2000H.
HLT
19. Draw the flow chart of a counter.

Initialize
Display
Update

No

Is this
Final
Count
Yes

20. Write an 8085 program to generate a time delay of 0.4sec given crystal frequency
5MHZ.
Operating frequency = 5/2 = 2.5MHZ.
Time for one T-state = 1/ 2.5MHZ = 0.4sec.
Number of T-states required = Required Time/Time for 1T-state
= 0.4sec/ 0.4sec
= 1 x 106
Delay program:
LXI B,COUNT
Loop : DCX B
MOV A,C
ORA B
JNZ Loop
6
1 x 10 = 10 + (count – 1) x24 +21
count = 4166610
= A2C2H.

21. What is mean by microcontroller?

A device which contains the microprocessor with integrated
peripherals like memory,serial ports,parallel ports,timer/counter,interrupt
controller,data acquisition interfaces like ADC,DAC is called microcontroller.
22. Explain DJNZ instructions of intel 8051 microcontroller?
a. DJNZ Rn, rel
Decrement the content of the register Rn and jump if not zero.
b. DJNZ direct , rel
Decrement the content of direct 8-bit address and jump if not zero.

23. Explain the contents of the accumulator after the execution ot the following
program segments:
MOV A,#3CH
MOV R4,#66H
ANL A,R4

A

3C

R4

66

A

24

24. State the function of RS1 and RS0 bits in the flag register of intel 8051
microcontroller?
RS1 , RS0 – Register bank select bits
RS1
0
0
1
1

RS0
0
1
0
1

Bank Selection
Bank 0
Bank 1
Bank 2
Bank 3

25. Write a program using 8051 assembly language to change the date 55H
stored in the lower byte of the data pointer register to AAH using rotate
instruction.
MOV DPL,#55H
MOV A, DPL
RL A
Label :SJMP label

26. Give the alternate functions for the port pins of port3?

RD WR

T1

T0

INT1 INT0 TXD

RXD

RD – Read data control output.
WR – Write data control output.
T1 – Timer / Counter1 external input or test pin.
T0 – Timer / Counter0 external input or test pin.
INT1- Interrupt 1 input pin.
INT 0 – Interrupt 0 input pin.
TXD – Transmit data pin for serial port in UART mode.
RXD - Receive data pin for serial port in UART mode.

27. Specify the single instruction, which clears the most significant bit of B
register of 8051, without affecting the remaining bits.
Single instruction, which clears the most significant bit of B register of
8051, without affecting the remaining bits is CLR B.7.

28. Explain the function of the pins PSEN and EA of 8051.
PSEN :
PSEN stands for program store enable. In 8051 based system in
which an external ROM holds the program code, this pin is connected to the OE
pin of the ROM.
EA :
EA stands for external access. When the EA pin is connected to
Vcc, program fetched to addresses 0000H through 0FFFH are directed to the
internal ROM and program fetches to addresses 1000H through FFFFH are
directed to external ROM/EPROM. When the EA pin is grounded, all addresses
fetched by program are directed to the external ROM/EPROM.

29. Explain the 16-bit registers DPTR and SP of 8051.
DPTR:
DPTR stands for data pointer. DPTR consists of a high byte (DPH)
and a low byte (DPL). Its function is to hold a 16-bit address. It may be
manipulated as a 16-bit data register or as two independent 8-bit registers.
It serves as a base register in indirect jumps, lookup table instructions and
external data transfer.
SP:
SP stands for stack pointer. SP is a 8- bit wide register. It is
incremented before data is stored during PUSH and CALL instructions.
The stack array can reside anywhere in on-chip RAM. The stack pointer is
initialized to 07H after a reset. This causes the stack to begin at location
08H.
30. Name the special functions registers available in 8051.
a.
b.
c.
d.
e.
f.
g.
h.
i.
j.
k.

Accumulator
B Register
Program Status Word.
Stack Pointer.
Data Pointer.
Port 0
Port 1
Port 2
Port 3
Interrupt priority control register.
Interrupt enable control register.

31. Write down the different operating modes for serial communication of 8051.
Serial communication of 8051 operate under four modes. They are
mode 0 , mode 1, mode 2 and mode3 .SM0 and SM1 bits of SCON register
specifies the mode.
SM0 SM1 Mode
0
0
0
Baud rate fixed.
0
1
1 8-bit data, 1 stop bit, 1 start bit. Baud rate
variable.
1
0
2 8-bit data, 9th programmable bit,1 stop bit, 1
start bit, Baud rate fixed.
1
1
3 8-bit data, 9th programmable bit,1 stop bit, 1
start bit, Baud rate variable.

32. Explain the register IE format of 8051.

EA

-

ET2

EA- Enable all control bit.

ES

ET1

EX1

ET0

EX0
ET2- Timer 2 interrupt enable bit.
ES – Enable serial port control bit.
ET1 – Enable Timer1 control bit.
EX1- Enable external interrupt1 control bit.
ET0 – Enable Timer0 control bit.
EX0- Enable external interrupt0 control bit.

33. Compare Microprocessor and Microcontroller.

Sl.
No
1

2
3
4
5

Microprocessor

Microcontroller

Microprocessor contains
ALU,general purpose
registers,stack pointer, program
counter, clock timing circuit and
interrupt circuit.
It has many instructions to move
data between memory and CPU.
It has one or two bit handling
instructions.
Access times for memory and I/O
devices are more.
Microprocessor based system
requires more hardware.

Microcontroller contains the circuitry of
microprocessor and in addition it has
built- in ROM, RAM, I/O devices, timers
and counters.
It has one or two instructions to move
data between memory and CPU.
It has many bit handling instructions.
Less access times for built-in memory
and I/O devices.
Microcontroller based system requires
less hardware reducing PCB size and
increasing the reliability.

34. Name the five interrupt sources of 8051?.
The interrupts are:






External interrupt 0
: IE0
Timer interrupt 0
: TF0
External interrupt 1
: IE1
Timer Interrupt 1
: TF1
Serial Interrupt
Receive interrupt : RI
Transmit interrupt: TI

:
:
:
:
:
:

Vector address
0003H
000BH
0013H
001BH
0023H
0023H

35. Write a program to load accumulator A, DPH and DPL with 30H.
MOV A,#30
MOV DPH,A
MOV DPL,A

36. Write a program to subtract the contents of R1 of Bank0 from the contents of
R0 of Bank2.
MOV PSW,#10
MOV A,R0
MOV PSW,#00
SUBB A,R1
37. How the RS -232C serial bus is interfaced to 1TL logic device ?
The RS-232C signal voltage levels are not compatible with TTL logic
levels. Hence for interfacing TTL devices to RS-232C serial bus, level
converters are used. The popularly used level converters are MC 1488 & MC
1489 or MAX 232.
38. List some of the features of 8096 microcontroller.
a. The 8096 is a 16-bit microcontroller.
b. The 8096 is designed to use in applications which require high speed
calculations and fast I/O operations.
c. The high speed I/O section of an 8096 includes a 16 bit timer, a 16 bit
counter, a 4 input programmable edge detector, 4 software timers and
a 6-output programmable event generator.
d. It has 100 instructions, which can operate on bit,byte,word ,double
words.
e. The bit operations are possible and these can be performed on any bit
in the register file or in the special function register.

39. What is HS0 of 8096?
HS0:
The High Speed Output unit (HS0) is used to trigger events
at specific times with minimal CUP overhead. These events
include : starting an A to D conversion, resetting Timer2, setting 4
software flags, and switching up to 6 output lines.
40. List the features of 8051 microcontroller?
The features are
*single_supply +5 volt operation using HMOS technology.
*4096 bytes program memory on chip(not on 8031)
*128 data memory on chip.
*Four register banks.
*Two multiple mode,16-bit timer/counter.
*Extensive boolean processing capabilities.
*64 KB external RAM size
*32 bidirectional individually addressible I/O lines.
*8 bit CPU optimized for control applications.

41. What are the modes in which 8086 can operate?
The 8086 can operate in two modes and they are minimum ( or
uniprocessor) mode and maximum ( or multiprocessor) mode.
42. What are the interrupts of 8086?
The interrupts of 8085 are INTR and NMI. The INTR is general maskable
interruput and NMI is non-maskable interrupt.
.
43. How clock signal is generated in 8086? What is the maximum internal clock
frequency of 8086?
The 8086 does not have on-chip clock generation circuit. Hence the clock
generator chip, 8284 is connected to the CLK pin of8086. The clock signal
supplied by 8284 is divided by three for internal use. The maximum internal clock
frequency of8086 is 5MHz.
44. What is pipelined architecture?
In pipelined architecture the processor will have number of functional
units and the execution time of functional units are overlapped. Each functional
unit works independently most of the time.
45. What are the functional units available in 8086 architecture?
The bus interface unit and execution unit are the two functional units
available in 8086 architecture.
46. List the segment registers of 8086.
The segment registers of 8086 are Code segment, Data segment, Stack
segment and Extra segment registers.
47. What is the difference between segment register and general purpose register?
The segment registers are used to store 16 bit segment base address of the
four memory segments. The general purpose registers are used as the source or
destination register during data transfer and computation, as pointers to memory
and as counters.
48. What is queue? How queue is implemented in 8086?
A data structure which can be accessed on the basis of fIrst in fIrst out is
called queue. The 8086 has six numbers of 8-bit FIFO registers, which is used for
instruction queue.
49. Write the special functions carried by the general purpose registers of 8086.
The special functions carried by the registers of 8086 are the following.
Register Speical function
AX 16-bit Accumulator
AL 8-bit Accumulator
BX Base Register
CX Count Register
DX .Data Register
50. Write the flags of 8086.
The 8086 has nine flags and they are
1. Carry Flag (CF)
6. Overflow Flag (OF)
2. Parity Flag (PF)
7. Trace Flag (TF)
3. Auxiliary carry Flag (AF) 8. Interrupt Flag (IF)
4. Zero Flag (ZF)
9. Direction Flag (DF)
5. Sign Flag (SF)
51. What are control bits?
The flags TF, IF and DF of8086 are used to control the processor
operation and so they are called control bits.
52. Describe the difference between the instructions MOV AX,2437H and
MOV AX,[2437H].
Difference between the instructions MOV AX,2437H and MOV
AX,[2437H] are former instruction takes 2437 as 16-bit data and latter instruction
takes 2437 as 16-bit address.
53. State the function of Direction flag in 8086.
Direction flag is used with string instructions. If DF= 0, the string is
processed from its beginning with the first element having the lowest address.
Otherwise, the string is processed from the high address towards the low address.
54. In 8086 processor the code segment contains 4000H and instruction pointer
contains 9F20H. Find the memory location addressed by the processor.
Segment address
Shifted to left by
four bits
Offset address

4000

0100

0000 0000 0000

0100 0000

0000

0000 0000

1001

1111

0010 0000

1001

1111

0010 0000

+

0100
Physical address

49F20H

55. Mention the three operating modes of Intel 80386 processor.
i. Real Mode.
ii. Protected Mode.
iii. Virtual 8086 Mode.
56. What happens in 8086 processor, when
a. overflow of sum occurs during addition of signed numbers.
b. overflow of quotient occurs during division operation.
a. When overflow of sum occurs during addition of signed numbers, overflow
flag is set to one (OVF =1).
b. When overflow of quotient occurs during division operation, type 0 (divide by
zero ) interrupt is generated.

57. Discuss the functions of the following prefixes:
LOCK, ESCAPE
LOCK :
In a multiprocessor system each microprocessor has its own local buses
and memory. The individual microprocessors are connected together by a system
bus so that each can access system resources such as disk drives or memory. Each
microprocessor only takes control of the system bus when it needs to access some
system resources. The LOCK prefix allows a microprocessor to make sure that
another processor does not take control of the system bus while it is in the middle
of a critical instruction which uses the system bus.
ESCAPE:
This instruction is used to pass instructions to a coprocessor such as the
8087 math coprocessor which shares the address and data bus with an 8086.

58 . Show how the virtual to physical address translation takes place in 80286.

Selector

PL

Offset

Index
Segment
descriptor

+

24-bit
physical
address

59.What are the flag manipulation instructions of 8086.

i)
ii)
iii)
iv)

LAHF : Load AH from low byte of flag register.
SAHF : Store AH to low byte of flag register
PUSHF : Push content of flag to the stack.
POPF : Pop content of stack and load it in the flag
register.

60.Give the contents of the flag register after execution of following addition.
0110 0101

1101 0001
+

0010 0011

0101 1001

1000

0010 1010

1001

SF = 1, ZF = 0, PF = 1, CF = 0, AF = 0, OF=1.
61. What is the need for interrupt controller?
The interrupt controller is employed to expand the interrupt inputs. It can
handle the interrupt request from various devices and allow one by one to the
processor.

62. List some of the features of INTEL 8259 (Programmable Interrupt Controller )
i)

It manage eight interrupt request.

ii)

The interrupt vector addresses are programmable.

iii)

The priorities of interrupts are programmable.

iv)

The interrupt can be masked or unmasked individually.

63. Write the various functional blocks of INTEL 8259 ?
The various functional blocks of 8259 are
Control logic, Read/ Write logic, Data bus buffer, IRR, ISR, IMR, Priority
resolver and cascade buffer
IRR - Interrupt Request Register
ISR - In-Service Register
IMR Interrupt Mask Register,
64. What is Master and Slave 8259 ?
When 8259's are connected in cascade, one 8259 will be directly
interrupting 8085 and it is called master 8259, To each interrupt request input of
master 8259, one slave 8259 can be connected, The 8259 's interrupting the
master 8259 are called slave 8259.
65. How 8259 is programmed?
The 8259 is programmed by sending
i) Initialization Command Words (ICWs) and
ii)Operational Command Words (OCWs).
66. What is a programmable peripheral device ?
If the functions performed by a peripheral device can be altered or
changed by a program instruction then the peripheral device is called
programmable device. Usually the programmable devices will have control
registers. The device can be programmed by sending control word in the
prescribed format to the control register.
67. What is handshake port ? Explain the working of a handshake input port and output
port.
In handshake port, signals are exchanged between I/O device and port or
port and processor for checking or informing various condition of the device.
In handshake input operation, the input device will check whether the port
is empty or not. If the port is empty then it will load data to port. When the port
receives the data, it will inform the processor for read operation. Once the data
have been read by the processor, the port will signal the input device that it is
empty. Now the input device can load another data to port and the above process
is repeated.
In handshake output operation, the processor will load a data to port.
When the port receives the data, it will inform the output device to collect the
data. Once the output device accepts the data, the port will inform the
processor that it is empty. Now the processor can load another data to port and
the above process is repeated.

68. What are the internal devices of 8255 ?
The internal devices of 8255 are port-A, port-B and port-C. The ports
can be programmed for either input or output function in different operating
modes.
69.

What are the operating modes of port -A 8255?
The port-A of 8255 can be programmed to work in anyone of the
following operating modes as input or output port.
Mode-0 : Simple 1/0 port.
Mode-l: Handshake 1/0 port
Mode-2 : Bidirectional 1/0 port

70. What are the functions performed by port-C of8255?
1. The port-C pins are used for handshake signals.
2. Port-C can be used as an 8-bit parallel 1/0 port in mode-0.
3. It can be used as two numbers of 4-bit parallel port in mode-0.
4. The individual pins of port-C can be set or reset for various control
applications.

71. What are the different scan modes of of8279?
The different scan modes of8279 are decoded scan and encoded scan. In
decoded scan mode, the output of scan lines will be similar to a 2-to-4 decoder. In
encoded scan mode, the output of scan lines will be binary count, and so an
external decoder should be used to convert the binary count to decoded output.
!
72. What is baud rate ?
The baud rate is the.rate at which the serial data are transmitted. Baud
rate is defined as l/(The time for a bit cell). In some systems one bit cell has one
data bit, then the baud rate and bits/sec are same.

73 . What is USART ? What are the functions performed by INTEL 8251A?
The device which can be programmed to perform Synchronous or
Asynchronous serial communication is called USART (Universal Synchronous
Asynchronous Receiver Transmitter). The INTEL 8251A is an example of
USART.
The INTEL 825lA is used for converting parallel data to serial or vice
versa. The data transmission or reception can be either asynchronously or
synchronously. The 8251A can be used to interface MODEM and establish serial
communication through MODEM over telephone lines.
74 . What are the control words of 8251A and what are its functions ?
The control words of 8251A are Mode word and Command word. The
mode word informs 8251 about the baud rate, character length, parity and stop
bits. The command word can be send to enable the data transmission and
reception.
75. What is debouncing ?
When a key is, pressed it bounces for a short time. If a key code is
generated immediately after sensing a key actuation, then the processor will
generate the same keycode a number of times.(A key typically bounces for 10 to
20 msec). Hence the processor has to wait for the key bounces to settle before
reading the keycode. This process is called keyboard debouncing.
76. What is the difference in programming the 8279 for encoded scan and decoded
scan?
If the 8279 is programmed for decoded scan then the output of scan lines
will be decoded output and if it is programmed for, encoded scan then the output
of scan lines will be binary count. In encoded mode, an external decoder should
be used to decode the scan lines.
77. What are the different types of ADC?
The different types of ADC are successive approximation ADC, counter
type ADC flash type ADC, integrator converters and voltage-to-frequency
converters.
78. What is DMA Controller?
Direct Memory Access is an I/O technique used for high speed data
transfer. In DMA, the MPU releases the control of the buses to a device called a
DMA controller. The controller manages data transfer between memory and a
peripheral under its control, thus bypassing the MPU.
79. Explain the function of the signal ADSTB in DMA controller?
The 8257 has eight address lines, but requires 16 address lines to address a
memory location. The additional eight lines are generated by using the signal
ADSTB to strobe a high-order memory address into the 8212 from the data bus.
80.

Explain the function of inservice register, masking register and interrupt request
register of 8259?
Inservice Register:
ISR stores all the levels that are currently being serviced.
Masking Register:
IMR stores the masking bits of the interrupt lines to be
masked.
Interrupt Request Register:
IRR stores the interrupt request , when interrupt request
lines goes high.
81. What is a Simulator?
Simulator is a debugging tool used for microcomputer based system. The
simulator program shows all internal registers, entire memory and peripheral on
the monitor. The simulator is supported with single step and breakpoint facilities
which help user to debug their programs.
82. Why it is necessary to include diode across the inductive loads while controlling
them through the port lines.
Since inductor opposes changes in current. When the transistor is switched
off, the current in the inductor does not reach to zero immediately, it flows for a
while. However, this current cannot flow through transistor because it is off.
Instead, this current develops a voltage across inductor with reverse polarities,
i.e.-ve at the top and +ve at the bottom of the given circuit. This reverse voltage is
large enough to break down the transistor. The free wheeling diode provides the
path for induced current and clamps the reverse voltage across inductor at 0.7 V.

83. Draw a circuit to interface a stepper motor winding to a microprocessor port bit
using power MOSFET.
+V

motor winding
Freewheeling
diode

MOSFET
From port
pin
84. Why Gray code is used in shaft angle encoder.
Usually gray code is used rather than a normal binary code because
i)
Gray code reduces the size of the largest possible error in reading the
shaft position to the value of the least significant bit.
ii)
Gray code disk has the advantage that each position is represented by a
specific code which can be directly read through the input port by the
microcomputer.

85. What is Optical motor shaft encoders? What are the basic types of motor shaft
encoders?
Optical motor shaft encoders are used
i)
to get the information about the position, direction of rotation,
and speed of rotation of various motor shafts.
ii)
They provide the above information in digital form which can
easily be used by microcomputers to control the speed, direction
of rotation and position of the motor shaft.
Two basic types of motor shaft encoders are:
i)
Absolute Encoders.
ii)
Incremental Encoders.

86. Draw the circuit using darlington pair transistor to interface a 12 volt
electromagnetic relay to the microprocessor?
+12V

Relay coil
Freewheeling
diode

R
Q1

From
Port
pin

Q2

87. What are the various elements of process control system?
Elements of process control systems are:
i)
Signal Converter.
ii)
Actuator.
iii)
Final control element.
iv)
Process.

88. Define transducer and sensor?
Non electrical quantity such as light, pressure, temperature etc is converted
into a proportional electrical signal by a device called transducer.
Electrical transducer consists of two parts which are closely related to each
other. These two parts are sensing or detecting element and transduction element.
The sensing or detecting element is commonly known as sensor.
89. Explain LVDT?
LVDT stands for linear variable differential transformer. LVDT belongs to
the type of transducer which is used to measure force, pressure or position. It
consists of single primary winding P1 and two secondary windings S1 and S2.
90. Explain microprocessor based scale? What are the basic elements of
microprocessor based scale?
Microprocessor based scale is used to read the physical parameter and
Display it on the digital display.
Basic elements of microprocessor based scale are:
i)
Load cell.
ii)
Signal conditioner and amplifier.
iii)
A/D Converter
iv)
Keyboard.
v)
Display.
vi)
Microprocessor.
91. Draw the circuit for driving seven segment LED display.
BCD
inputs
A
B
C
D

R

92. Name some of the prototype microcomputer based instrument.
Prototype microcomputer based instruments are:
i)
Logic Analyzer.
ii)
In-circuit Emulator.
iii)
Simulator.
93. What is robot? List some of the advantages of robotics?
An important tool for a increasing productivity through electronic control
of a automation system is a robot.
Advantages:
i)
Due to computerized and accurate control, it gives high and
uniform production quality.
ii)
It can work without any break resulting increased productivity.
iii)
It can work in unpleasant or hazardous environment.
iv)

Most of the robots are easily trained and retrained to perform
tasks. This saves training of human being which usually cost
more.

94. Explain embedded controllers?
Many automatic control systems such as washing machine, micro-wave
oven, programmable sewing machine, remote control stereo system etc. are builtup with separately designed microprocessors. These specially designed
microprocessors are called embedded controllers.

95. Define digital signal processing? What are the basic elements of DSP?
Digital signal processing is used to describe any system which accepts
Samples of a signal with an A/D converter, processes the samples with a
Microcomputer, and sends the computed result to a D/A converter of some other
Device.
Basic elements of DSP are:
i)
A/D converter.
ii)
Digital signal processor.
iii)
D/A converter.
iv)
96. List some of the advantages of digital signal processing?
i)

ii)

iii)

iv)
v)

vi)

Digital signal processing systems are flexible. The system can be
reconfigured for some other operations by simply changing the
software program.
Accuracy of DSP systems is much higher than analog systems.
Because analog systems suffer from component tolerances, and
electrical noise.
The digital signals can be easily stored on the storage media. They are
also easily transportable compared to analog signals. Therefore, the
remote processing of digital signals is possible.
Mathematical operation can be accurately performed on digital signals
compared to analog signals.
The performance of digital processing is exactly repeatable. In analog
processing it may detoriate due to noise effects and aging of
components.
DSP systems are small in size, more reliable and less expensive
compared to analog processing systems.

97. List the features of DSP Processors?
i)
ii)

iii)
iv)
v)

They provide sizable amount of on-chip register, ROM and RAM so
data and instructions can be accessed very quickly.
They follow the Harvard architecture which provides separate buses
for data and instruction. These parallel buses allow instructions and
data to be fetched at the same time.
The internal architecture of these processor is optimized to perform
16X16 or 32X32 bit multiplication in one clock cycle.
They provide 32-bit barrel shifter which allows shifting of 32-bit data
in one clock cycle.
The instruction set of DSP processor is optimized for DSP
applications.

98. What is digital filter? What are the two basic algorithms used for digital
filtering?
The basic principle of a digital filter is to take continuous samples of the
input waveform, perform the frequency related operations such as low pass, high
pass, band pass and band reject , and output the processed results to the D/A
converter. The processing is done by microcomputer and specially designed
software.
Two basic algorithms used are:
i)
Finite impulse response (FIR).
ii)
Infinite impulse response(IIR).
99. Write the output equation for FIR and II?
FIR:
(Current sample X some coefficient) + (Previous sample X some
coefficient) + (sample before previous sample X some coefficient).
IIR:
(Current sample X calculated coefficient) + (Previous output value X
calculated coefficient) + (output value previous to previous output value
X calculated coefficient).
100. Why isolation circuitry is required to control the ac drives?
To control 220V or 440V ac devices it is not desirable to have a common
power circuit ground and control circuit ground. This is very important because if
the 220V ac line gets shorted to the Vcc line of a microcomputer, it usually bakes
most of the microcomputer ICs. To avoid this, the control circuit and power
circuit is electrically isolated by separating their individual ground lines.

Weitere ähnliche Inhalte

Was ist angesagt?

Addressing Modes
Addressing ModesAddressing Modes
Addressing ModesMayank Garg
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Srishti Kakade
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chipsSrikrishna Thota
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1techbed
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit DesignVinit Raut
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptsharan Kumar
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentationalaminmasum1
 

Was ist angesagt? (20)

Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
8251 USART
8251 USART8251 USART
8251 USART
 
Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768Watch-dog Timer in LPC1768
Watch-dog Timer in LPC1768
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
8085 interfacing with memory chips
8085 interfacing with memory chips8085 interfacing with memory chips
8085 interfacing with memory chips
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
8086 pin function
8086 pin function8086 pin function
8086 pin function
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 ppt
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Microprocessor Presentation
Microprocessor PresentationMicroprocessor Presentation
Microprocessor Presentation
 

Andere mochten auch

Micro[processor
Micro[processorMicro[processor
Micro[processorcollege
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessorSyed Ahmed Zaki
 
Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersAbhijith Augustine
 

Andere mochten auch (6)

Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Micro[processor
Micro[processorMicro[processor
Micro[processor
 
8086
80868086
8086
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
 
Microprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answersMicroprocessors and microcontrollers short answer questions and answers
Microprocessors and microcontrollers short answer questions and answers
 

Ähnlich wie Microprocessor Applications (EC331

Ähnlich wie Microprocessor Applications (EC331 (20)

Important questions
Important questionsImportant questions
Important questions
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applications
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
Micro overview
Micro overviewMicro overview
Micro overview
 
8085
80858085
8085
 
8085 Microprocessor
8085 Microprocessor8085 Microprocessor
8085 Microprocessor
 
EE6502 Microprocessor and Microcontroller
EE6502   Microprocessor and MicrocontrollerEE6502   Microprocessor and Microcontroller
EE6502 Microprocessor and Microcontroller
 
8085 intro
8085 intro8085 intro
8085 intro
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
Xcs 234 microprocessors
Xcs 234 microprocessorsXcs 234 microprocessors
Xcs 234 microprocessors
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Viva
VivaViva
Viva
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
 
Microprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMicroprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answers
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
 

Mehr von ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.

Mehr von ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P. (20)

Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
 
Anupam kumar re2106 a55
Anupam kumar re2106 a55Anupam kumar re2106 a55
Anupam kumar re2106 a55
 
Electronika de fiesta 2014
Electronika de fiesta 2014Electronika de fiesta 2014
Electronika de fiesta 2014
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Electronics switching-eec-802
Electronics switching-eec-802Electronics switching-eec-802
Electronics switching-eec-802
 
Some advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessorsSome advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessors
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
4 5 marks importnt question dcn
4 5 marks importnt question dcn4 5 marks importnt question dcn
4 5 marks importnt question dcn
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Cyptography ece 702
Cyptography ece 702Cyptography ece 702
Cyptography ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1
 
Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Dcn previous que4 with solutions
Dcn previous que4 with solutionsDcn previous que4 with solutions
Dcn previous que4 with solutions
 
Dcn previous que3 with solutions
Dcn previous que3 with solutionsDcn previous que3 with solutions
Dcn previous que3 with solutions
 
Dcn previous que2 with solutions
Dcn previous que2 with solutionsDcn previous que2 with solutions
Dcn previous que2 with solutions
 
Dcn previous que1 with solutions
Dcn previous que1 with solutionsDcn previous que1 with solutions
Dcn previous que1 with solutions
 

Kürzlich hochgeladen

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 

Kürzlich hochgeladen (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 

Microprocessor Applications (EC331

  • 1. Microprocessor and its Applications (EC331) 1. What is Microprocessor ? What are the basic units of a microprocessor ? It is a program controlled semiconductor device (IC}, which fetches, decode and executes instructions. The basic units or blocks of a microprocessor are ALU, an array of registers and control unit . 2. What is multiplexing and what is its advantage? How the address and data lines are demultiplexed in 8085? Multiplexing is transferring different information at different well defined times through same lines. A group of such lines is called multiplexed bus. The advantage of multiplexing is that fewer pins are required for microprocessors to communicate with outside world. The low order address and data lines of 8085 are demultiplexed using an external 8-bit D-Latch (74LS373) and the ALE signal of 8085, as shown in fig. Ao – A7 8085 ADo – AD7 74LS373 LATCH ALE EN D0 - D7 Fig : Demultiplexing of address and data lines in 8085 processor At the beginning of every machine cycle, ALE is asserted high and then low. Also the low byte of address is given out through ADo -AD7 lines. Since the ALE is connected to Enable of Latch, when ALE is asserted high and then low the addresses are latched into the output lines of the latch. Now the lines ADo AD7 are free for data transfer.
  • 2. 3. Explain the function of IO/M, READY , HOLD and HLDA in 8085. The IO/M is used to differentiate memory access and I/O access. For IN and OUT instruction it is high. For memory reference instructions it is low. READY is an input signal to the processor, used by the memory or I/O devices to get extra time for data transfer or to introduce wait states in the bus cycles. HOLD and HLDA signals are used for the Direct Memory Access (DMA) type of data transfer. The DMA controller place a high on HOLD pin in order to take control of the system bus. The HOLD request is acknowledged by the 8085 by driving all its tristated pins to high impedance state and asserting HLDA signal high. 4. What is a flag? List the flags of 8085. Flag is a flip flop used to store the information about the status of the processor and the status of the instruction executed most recently. There are five flags in 8085. They are sign flag, zero flag, Auxiliary carry flag, parity flag and carry flag. 5. Define mnemonics. The short-hand form of describing the instructions are called mnemonics. The mnemonics are given by the manufacturers of microprocessors and programmable devices. 6. What is processor cycle (Machine cycle) ,Instruction cycle, fetch and execute cycle? The processor cycle or machine cycle is the basic operation performed by the processor. To execute an instruction, the processor will run one or more machine cycles in a particular order. I The sequence of operations that a processor has to carry out while executing the instruction is called Instruction cycle. Each instruction cycle of a processor in tum consists of a number of machine cycles.
  • 3. In general, the instruction cycle of an instruction can be divided into fetch and execute cycles. The fetch cycle is executed to fetch the opcode from memory. The execute cycle is executed to decode the instruction and to perform the work instructed by the instruction. 7. List the various machine cycles of 8085 The various machine cycles of8085 are (i) Opcode fetch cycle (ii) Memory read cycle (iii) Memory write cycle (iv) 1/0 read cycle (v) 1/0 write cycle (vi) Interrupt acknowledge cycle (vii) Bus idle cycle. 8. What is the need for timing diagram? The timing diagram provides information regarding the status of various signals, when a machine cycle is executed. The knowledge of timing diagram is essential for system designer to select matched peripheral devices like memories, latches, ports, etc., to form a microprocessor system. 9. What is T -state? The T-state is the time period of the internal clock signal of the processor. The time taken by the processor to execute the machine cycle is expressed in Tstate. 10. Define opcode and operand. Opcode (Operation code) is the part of an instruction / directive that identifies a specific operation. Operand is a part of an instruction / directive that represents a value on which the instruction acts. 11. What is addressing? What are the various addressing modes available in 8085? The method of specifying the data to be operated by the instruction is called addressing. The 8085 has the following five different types of addressing. 1. Immediate addressing
  • 4. 2. 3. 4. 5. Direct addressing Register addressing Register indirect addressing Implied addressing 12. Compare the memory mapped 1/0 and standard 1/0 mapped 1/0. Memory Mapped 1/0 1. 16-bit address is alloted to an I/O device 2. The devices are accessed by I/O read or I/O write cycle. 3. All instructions related to memory can be used for data transfer. 4 . A large number of I/O ports can be interfaced. Standard 1/0 mapped 1/0 1. 8 -bit address is alloted to an I/O device. 2. The devices are accessed by memory read or memory write cycle. 3. Only IN and OUT instructions can be used for data transfer. 4. Only 256 ports can be interfaced. 13 .What is meant by memory mapping? What is memory access time ? The memory mapping is the process of interfacing memories to microprocessor and allocating addresses to each memory locations. The memory access time is the time taken by the processor to read or write a memory location. During read operation it is the time between a valid address on the bus and end of read control signal. During write operation it is the time between a valid address on the bus and the end of write control signal. 14. What is an Interrupt ? Haw the interrupt are classified ? Interrupt is a signal send by an external device to the processor so as to request the processor to perform a particular task or work. They are three methods of classifying interrupts Method I :The interrupts are classified into Hardware and Software interrupts Method II:The interrupts are classified into vectored and NonVectored interrupt
  • 5. 15. What is Vectored and Non- Vectored interrupt? When an interrupt is accepted, if the processor control branches to a specific address defined by the manufacturer then the interrupt is called vectored interrupt. In Non-vectored interrupt there is no specific address for storing the interrupt service routine. Hence the interrupted device should give the address of the interrupt service routine. 16. List the Software and Hardware interrupts of 8085 ? Software interrupts : RST 0, RSTl, RST 2, RST 3, RST 4, RST 5, RST 6 and RST 7. Hardware interrupts: TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR. 17. What is Polling ? What are the different types of Polling? Polling is a scheme or an algorithm to identify the devices interrupting the processor. Polling is employed when multiple devices interrupt the processor through one interrupt pin of the processor. The polling can be classified into software and hardware polling. In software polling the entire polling process is govern by a prograrn.1n hardware polling, the hardware takes care of checking the status of interrupting devices and allowing one by one to the processor. 18. Write 8085 assembly language instructions to store the contents of the flag register in memory location 2000H. PUSH PSW POP B MOV A,C STA 2000H. HLT
  • 6. 19. Draw the flow chart of a counter. Initialize Display Update No Is this Final Count Yes 20. Write an 8085 program to generate a time delay of 0.4sec given crystal frequency 5MHZ. Operating frequency = 5/2 = 2.5MHZ. Time for one T-state = 1/ 2.5MHZ = 0.4sec. Number of T-states required = Required Time/Time for 1T-state = 0.4sec/ 0.4sec = 1 x 106 Delay program: LXI B,COUNT Loop : DCX B MOV A,C ORA B JNZ Loop 6 1 x 10 = 10 + (count – 1) x24 +21 count = 4166610 = A2C2H. 21. What is mean by microcontroller? A device which contains the microprocessor with integrated peripherals like memory,serial ports,parallel ports,timer/counter,interrupt controller,data acquisition interfaces like ADC,DAC is called microcontroller.
  • 7. 22. Explain DJNZ instructions of intel 8051 microcontroller? a. DJNZ Rn, rel Decrement the content of the register Rn and jump if not zero. b. DJNZ direct , rel Decrement the content of direct 8-bit address and jump if not zero. 23. Explain the contents of the accumulator after the execution ot the following program segments: MOV A,#3CH MOV R4,#66H ANL A,R4 A 3C R4 66 A 24 24. State the function of RS1 and RS0 bits in the flag register of intel 8051 microcontroller? RS1 , RS0 – Register bank select bits RS1 0 0 1 1 RS0 0 1 0 1 Bank Selection Bank 0 Bank 1 Bank 2 Bank 3 25. Write a program using 8051 assembly language to change the date 55H stored in the lower byte of the data pointer register to AAH using rotate instruction. MOV DPL,#55H MOV A, DPL RL A
  • 8. Label :SJMP label 26. Give the alternate functions for the port pins of port3? RD WR T1 T0 INT1 INT0 TXD RXD RD – Read data control output. WR – Write data control output. T1 – Timer / Counter1 external input or test pin. T0 – Timer / Counter0 external input or test pin. INT1- Interrupt 1 input pin. INT 0 – Interrupt 0 input pin. TXD – Transmit data pin for serial port in UART mode. RXD - Receive data pin for serial port in UART mode. 27. Specify the single instruction, which clears the most significant bit of B register of 8051, without affecting the remaining bits. Single instruction, which clears the most significant bit of B register of 8051, without affecting the remaining bits is CLR B.7. 28. Explain the function of the pins PSEN and EA of 8051. PSEN : PSEN stands for program store enable. In 8051 based system in which an external ROM holds the program code, this pin is connected to the OE pin of the ROM. EA : EA stands for external access. When the EA pin is connected to Vcc, program fetched to addresses 0000H through 0FFFH are directed to the internal ROM and program fetches to addresses 1000H through FFFFH are directed to external ROM/EPROM. When the EA pin is grounded, all addresses fetched by program are directed to the external ROM/EPROM. 29. Explain the 16-bit registers DPTR and SP of 8051. DPTR: DPTR stands for data pointer. DPTR consists of a high byte (DPH) and a low byte (DPL). Its function is to hold a 16-bit address. It may be manipulated as a 16-bit data register or as two independent 8-bit registers.
  • 9. It serves as a base register in indirect jumps, lookup table instructions and external data transfer. SP: SP stands for stack pointer. SP is a 8- bit wide register. It is incremented before data is stored during PUSH and CALL instructions. The stack array can reside anywhere in on-chip RAM. The stack pointer is initialized to 07H after a reset. This causes the stack to begin at location 08H. 30. Name the special functions registers available in 8051. a. b. c. d. e. f. g. h. i. j. k. Accumulator B Register Program Status Word. Stack Pointer. Data Pointer. Port 0 Port 1 Port 2 Port 3 Interrupt priority control register. Interrupt enable control register. 31. Write down the different operating modes for serial communication of 8051. Serial communication of 8051 operate under four modes. They are mode 0 , mode 1, mode 2 and mode3 .SM0 and SM1 bits of SCON register specifies the mode. SM0 SM1 Mode 0 0 0 Baud rate fixed. 0 1 1 8-bit data, 1 stop bit, 1 start bit. Baud rate variable. 1 0 2 8-bit data, 9th programmable bit,1 stop bit, 1 start bit, Baud rate fixed. 1 1 3 8-bit data, 9th programmable bit,1 stop bit, 1 start bit, Baud rate variable. 32. Explain the register IE format of 8051. EA - ET2 EA- Enable all control bit. ES ET1 EX1 ET0 EX0
  • 10. ET2- Timer 2 interrupt enable bit. ES – Enable serial port control bit. ET1 – Enable Timer1 control bit. EX1- Enable external interrupt1 control bit. ET0 – Enable Timer0 control bit. EX0- Enable external interrupt0 control bit. 33. Compare Microprocessor and Microcontroller. Sl. No 1 2 3 4 5 Microprocessor Microcontroller Microprocessor contains ALU,general purpose registers,stack pointer, program counter, clock timing circuit and interrupt circuit. It has many instructions to move data between memory and CPU. It has one or two bit handling instructions. Access times for memory and I/O devices are more. Microprocessor based system requires more hardware. Microcontroller contains the circuitry of microprocessor and in addition it has built- in ROM, RAM, I/O devices, timers and counters. It has one or two instructions to move data between memory and CPU. It has many bit handling instructions. Less access times for built-in memory and I/O devices. Microcontroller based system requires less hardware reducing PCB size and increasing the reliability. 34. Name the five interrupt sources of 8051?. The interrupts are:      External interrupt 0 : IE0 Timer interrupt 0 : TF0 External interrupt 1 : IE1 Timer Interrupt 1 : TF1 Serial Interrupt Receive interrupt : RI Transmit interrupt: TI : : : : : : Vector address 0003H 000BH 0013H 001BH 0023H 0023H 35. Write a program to load accumulator A, DPH and DPL with 30H. MOV A,#30 MOV DPH,A
  • 11. MOV DPL,A 36. Write a program to subtract the contents of R1 of Bank0 from the contents of R0 of Bank2. MOV PSW,#10 MOV A,R0 MOV PSW,#00 SUBB A,R1 37. How the RS -232C serial bus is interfaced to 1TL logic device ? The RS-232C signal voltage levels are not compatible with TTL logic levels. Hence for interfacing TTL devices to RS-232C serial bus, level converters are used. The popularly used level converters are MC 1488 & MC 1489 or MAX 232. 38. List some of the features of 8096 microcontroller. a. The 8096 is a 16-bit microcontroller. b. The 8096 is designed to use in applications which require high speed calculations and fast I/O operations. c. The high speed I/O section of an 8096 includes a 16 bit timer, a 16 bit counter, a 4 input programmable edge detector, 4 software timers and a 6-output programmable event generator. d. It has 100 instructions, which can operate on bit,byte,word ,double words. e. The bit operations are possible and these can be performed on any bit in the register file or in the special function register. 39. What is HS0 of 8096? HS0: The High Speed Output unit (HS0) is used to trigger events at specific times with minimal CUP overhead. These events include : starting an A to D conversion, resetting Timer2, setting 4 software flags, and switching up to 6 output lines. 40. List the features of 8051 microcontroller? The features are *single_supply +5 volt operation using HMOS technology. *4096 bytes program memory on chip(not on 8031) *128 data memory on chip.
  • 12. *Four register banks. *Two multiple mode,16-bit timer/counter. *Extensive boolean processing capabilities. *64 KB external RAM size *32 bidirectional individually addressible I/O lines. *8 bit CPU optimized for control applications. 41. What are the modes in which 8086 can operate? The 8086 can operate in two modes and they are minimum ( or uniprocessor) mode and maximum ( or multiprocessor) mode. 42. What are the interrupts of 8086? The interrupts of 8085 are INTR and NMI. The INTR is general maskable interruput and NMI is non-maskable interrupt. . 43. How clock signal is generated in 8086? What is the maximum internal clock frequency of 8086? The 8086 does not have on-chip clock generation circuit. Hence the clock generator chip, 8284 is connected to the CLK pin of8086. The clock signal supplied by 8284 is divided by three for internal use. The maximum internal clock frequency of8086 is 5MHz. 44. What is pipelined architecture? In pipelined architecture the processor will have number of functional units and the execution time of functional units are overlapped. Each functional unit works independently most of the time. 45. What are the functional units available in 8086 architecture? The bus interface unit and execution unit are the two functional units available in 8086 architecture. 46. List the segment registers of 8086. The segment registers of 8086 are Code segment, Data segment, Stack segment and Extra segment registers. 47. What is the difference between segment register and general purpose register? The segment registers are used to store 16 bit segment base address of the four memory segments. The general purpose registers are used as the source or destination register during data transfer and computation, as pointers to memory and as counters.
  • 13. 48. What is queue? How queue is implemented in 8086? A data structure which can be accessed on the basis of fIrst in fIrst out is called queue. The 8086 has six numbers of 8-bit FIFO registers, which is used for instruction queue. 49. Write the special functions carried by the general purpose registers of 8086. The special functions carried by the registers of 8086 are the following. Register Speical function AX 16-bit Accumulator AL 8-bit Accumulator BX Base Register CX Count Register DX .Data Register 50. Write the flags of 8086. The 8086 has nine flags and they are 1. Carry Flag (CF) 6. Overflow Flag (OF) 2. Parity Flag (PF) 7. Trace Flag (TF) 3. Auxiliary carry Flag (AF) 8. Interrupt Flag (IF) 4. Zero Flag (ZF) 9. Direction Flag (DF) 5. Sign Flag (SF) 51. What are control bits? The flags TF, IF and DF of8086 are used to control the processor operation and so they are called control bits. 52. Describe the difference between the instructions MOV AX,2437H and MOV AX,[2437H]. Difference between the instructions MOV AX,2437H and MOV AX,[2437H] are former instruction takes 2437 as 16-bit data and latter instruction takes 2437 as 16-bit address. 53. State the function of Direction flag in 8086. Direction flag is used with string instructions. If DF= 0, the string is processed from its beginning with the first element having the lowest address. Otherwise, the string is processed from the high address towards the low address.
  • 14. 54. In 8086 processor the code segment contains 4000H and instruction pointer contains 9F20H. Find the memory location addressed by the processor. Segment address Shifted to left by four bits Offset address 4000 0100 0000 0000 0000 0100 0000 0000 0000 0000 1001 1111 0010 0000 1001 1111 0010 0000 + 0100 Physical address 49F20H 55. Mention the three operating modes of Intel 80386 processor. i. Real Mode. ii. Protected Mode. iii. Virtual 8086 Mode. 56. What happens in 8086 processor, when a. overflow of sum occurs during addition of signed numbers. b. overflow of quotient occurs during division operation. a. When overflow of sum occurs during addition of signed numbers, overflow flag is set to one (OVF =1). b. When overflow of quotient occurs during division operation, type 0 (divide by zero ) interrupt is generated. 57. Discuss the functions of the following prefixes: LOCK, ESCAPE LOCK : In a multiprocessor system each microprocessor has its own local buses and memory. The individual microprocessors are connected together by a system bus so that each can access system resources such as disk drives or memory. Each microprocessor only takes control of the system bus when it needs to access some system resources. The LOCK prefix allows a microprocessor to make sure that another processor does not take control of the system bus while it is in the middle of a critical instruction which uses the system bus.
  • 15. ESCAPE: This instruction is used to pass instructions to a coprocessor such as the 8087 math coprocessor which shares the address and data bus with an 8086. 58 . Show how the virtual to physical address translation takes place in 80286. Selector PL Offset Index Segment descriptor + 24-bit physical address 59.What are the flag manipulation instructions of 8086. i) ii) iii) iv) LAHF : Load AH from low byte of flag register. SAHF : Store AH to low byte of flag register PUSHF : Push content of flag to the stack. POPF : Pop content of stack and load it in the flag register. 60.Give the contents of the flag register after execution of following addition. 0110 0101 1101 0001 + 0010 0011 0101 1001 1000 0010 1010 1001 SF = 1, ZF = 0, PF = 1, CF = 0, AF = 0, OF=1.
  • 16. 61. What is the need for interrupt controller? The interrupt controller is employed to expand the interrupt inputs. It can handle the interrupt request from various devices and allow one by one to the processor. 62. List some of the features of INTEL 8259 (Programmable Interrupt Controller ) i) It manage eight interrupt request. ii) The interrupt vector addresses are programmable. iii) The priorities of interrupts are programmable. iv) The interrupt can be masked or unmasked individually. 63. Write the various functional blocks of INTEL 8259 ? The various functional blocks of 8259 are Control logic, Read/ Write logic, Data bus buffer, IRR, ISR, IMR, Priority resolver and cascade buffer IRR - Interrupt Request Register ISR - In-Service Register IMR Interrupt Mask Register, 64. What is Master and Slave 8259 ? When 8259's are connected in cascade, one 8259 will be directly interrupting 8085 and it is called master 8259, To each interrupt request input of master 8259, one slave 8259 can be connected, The 8259 's interrupting the master 8259 are called slave 8259. 65. How 8259 is programmed? The 8259 is programmed by sending i) Initialization Command Words (ICWs) and ii)Operational Command Words (OCWs).
  • 17. 66. What is a programmable peripheral device ? If the functions performed by a peripheral device can be altered or changed by a program instruction then the peripheral device is called programmable device. Usually the programmable devices will have control registers. The device can be programmed by sending control word in the prescribed format to the control register. 67. What is handshake port ? Explain the working of a handshake input port and output port. In handshake port, signals are exchanged between I/O device and port or port and processor for checking or informing various condition of the device. In handshake input operation, the input device will check whether the port is empty or not. If the port is empty then it will load data to port. When the port receives the data, it will inform the processor for read operation. Once the data have been read by the processor, the port will signal the input device that it is empty. Now the input device can load another data to port and the above process is repeated. In handshake output operation, the processor will load a data to port. When the port receives the data, it will inform the output device to collect the data. Once the output device accepts the data, the port will inform the processor that it is empty. Now the processor can load another data to port and the above process is repeated. 68. What are the internal devices of 8255 ? The internal devices of 8255 are port-A, port-B and port-C. The ports can be programmed for either input or output function in different operating modes. 69. What are the operating modes of port -A 8255? The port-A of 8255 can be programmed to work in anyone of the following operating modes as input or output port. Mode-0 : Simple 1/0 port. Mode-l: Handshake 1/0 port Mode-2 : Bidirectional 1/0 port 70. What are the functions performed by port-C of8255?
  • 18. 1. The port-C pins are used for handshake signals. 2. Port-C can be used as an 8-bit parallel 1/0 port in mode-0. 3. It can be used as two numbers of 4-bit parallel port in mode-0. 4. The individual pins of port-C can be set or reset for various control applications. 71. What are the different scan modes of of8279? The different scan modes of8279 are decoded scan and encoded scan. In decoded scan mode, the output of scan lines will be similar to a 2-to-4 decoder. In encoded scan mode, the output of scan lines will be binary count, and so an external decoder should be used to convert the binary count to decoded output. ! 72. What is baud rate ? The baud rate is the.rate at which the serial data are transmitted. Baud rate is defined as l/(The time for a bit cell). In some systems one bit cell has one data bit, then the baud rate and bits/sec are same. 73 . What is USART ? What are the functions performed by INTEL 8251A? The device which can be programmed to perform Synchronous or Asynchronous serial communication is called USART (Universal Synchronous Asynchronous Receiver Transmitter). The INTEL 8251A is an example of USART. The INTEL 825lA is used for converting parallel data to serial or vice versa. The data transmission or reception can be either asynchronously or synchronously. The 8251A can be used to interface MODEM and establish serial communication through MODEM over telephone lines. 74 . What are the control words of 8251A and what are its functions ? The control words of 8251A are Mode word and Command word. The mode word informs 8251 about the baud rate, character length, parity and stop bits. The command word can be send to enable the data transmission and reception. 75. What is debouncing ? When a key is, pressed it bounces for a short time. If a key code is generated immediately after sensing a key actuation, then the processor will
  • 19. generate the same keycode a number of times.(A key typically bounces for 10 to 20 msec). Hence the processor has to wait for the key bounces to settle before reading the keycode. This process is called keyboard debouncing. 76. What is the difference in programming the 8279 for encoded scan and decoded scan? If the 8279 is programmed for decoded scan then the output of scan lines will be decoded output and if it is programmed for, encoded scan then the output of scan lines will be binary count. In encoded mode, an external decoder should be used to decode the scan lines. 77. What are the different types of ADC? The different types of ADC are successive approximation ADC, counter type ADC flash type ADC, integrator converters and voltage-to-frequency converters. 78. What is DMA Controller? Direct Memory Access is an I/O technique used for high speed data transfer. In DMA, the MPU releases the control of the buses to a device called a DMA controller. The controller manages data transfer between memory and a peripheral under its control, thus bypassing the MPU. 79. Explain the function of the signal ADSTB in DMA controller? The 8257 has eight address lines, but requires 16 address lines to address a memory location. The additional eight lines are generated by using the signal ADSTB to strobe a high-order memory address into the 8212 from the data bus. 80. Explain the function of inservice register, masking register and interrupt request register of 8259? Inservice Register: ISR stores all the levels that are currently being serviced. Masking Register: IMR stores the masking bits of the interrupt lines to be masked. Interrupt Request Register: IRR stores the interrupt request , when interrupt request lines goes high. 81. What is a Simulator? Simulator is a debugging tool used for microcomputer based system. The simulator program shows all internal registers, entire memory and peripheral on the monitor. The simulator is supported with single step and breakpoint facilities
  • 20. which help user to debug their programs. 82. Why it is necessary to include diode across the inductive loads while controlling them through the port lines. Since inductor opposes changes in current. When the transistor is switched off, the current in the inductor does not reach to zero immediately, it flows for a while. However, this current cannot flow through transistor because it is off. Instead, this current develops a voltage across inductor with reverse polarities, i.e.-ve at the top and +ve at the bottom of the given circuit. This reverse voltage is large enough to break down the transistor. The free wheeling diode provides the path for induced current and clamps the reverse voltage across inductor at 0.7 V. 83. Draw a circuit to interface a stepper motor winding to a microprocessor port bit using power MOSFET. +V motor winding Freewheeling diode MOSFET From port pin 84. Why Gray code is used in shaft angle encoder. Usually gray code is used rather than a normal binary code because i) Gray code reduces the size of the largest possible error in reading the shaft position to the value of the least significant bit. ii) Gray code disk has the advantage that each position is represented by a specific code which can be directly read through the input port by the microcomputer. 85. What is Optical motor shaft encoders? What are the basic types of motor shaft encoders? Optical motor shaft encoders are used i) to get the information about the position, direction of rotation, and speed of rotation of various motor shafts. ii) They provide the above information in digital form which can
  • 21. easily be used by microcomputers to control the speed, direction of rotation and position of the motor shaft. Two basic types of motor shaft encoders are: i) Absolute Encoders. ii) Incremental Encoders. 86. Draw the circuit using darlington pair transistor to interface a 12 volt electromagnetic relay to the microprocessor? +12V Relay coil Freewheeling diode R Q1 From Port pin Q2 87. What are the various elements of process control system? Elements of process control systems are: i) Signal Converter. ii) Actuator. iii) Final control element. iv) Process. 88. Define transducer and sensor? Non electrical quantity such as light, pressure, temperature etc is converted into a proportional electrical signal by a device called transducer. Electrical transducer consists of two parts which are closely related to each other. These two parts are sensing or detecting element and transduction element. The sensing or detecting element is commonly known as sensor.
  • 22. 89. Explain LVDT? LVDT stands for linear variable differential transformer. LVDT belongs to the type of transducer which is used to measure force, pressure or position. It consists of single primary winding P1 and two secondary windings S1 and S2. 90. Explain microprocessor based scale? What are the basic elements of microprocessor based scale? Microprocessor based scale is used to read the physical parameter and Display it on the digital display. Basic elements of microprocessor based scale are: i) Load cell. ii) Signal conditioner and amplifier. iii) A/D Converter iv) Keyboard. v) Display. vi) Microprocessor. 91. Draw the circuit for driving seven segment LED display. BCD inputs A B C D R 92. Name some of the prototype microcomputer based instrument. Prototype microcomputer based instruments are: i) Logic Analyzer. ii) In-circuit Emulator. iii) Simulator. 93. What is robot? List some of the advantages of robotics? An important tool for a increasing productivity through electronic control of a automation system is a robot. Advantages: i) Due to computerized and accurate control, it gives high and uniform production quality. ii) It can work without any break resulting increased productivity. iii) It can work in unpleasant or hazardous environment.
  • 23. iv) Most of the robots are easily trained and retrained to perform tasks. This saves training of human being which usually cost more. 94. Explain embedded controllers? Many automatic control systems such as washing machine, micro-wave oven, programmable sewing machine, remote control stereo system etc. are builtup with separately designed microprocessors. These specially designed microprocessors are called embedded controllers. 95. Define digital signal processing? What are the basic elements of DSP? Digital signal processing is used to describe any system which accepts Samples of a signal with an A/D converter, processes the samples with a Microcomputer, and sends the computed result to a D/A converter of some other Device. Basic elements of DSP are: i) A/D converter. ii) Digital signal processor. iii) D/A converter. iv) 96. List some of the advantages of digital signal processing? i) ii) iii) iv) v) vi) Digital signal processing systems are flexible. The system can be reconfigured for some other operations by simply changing the software program. Accuracy of DSP systems is much higher than analog systems. Because analog systems suffer from component tolerances, and electrical noise. The digital signals can be easily stored on the storage media. They are also easily transportable compared to analog signals. Therefore, the remote processing of digital signals is possible. Mathematical operation can be accurately performed on digital signals compared to analog signals. The performance of digital processing is exactly repeatable. In analog processing it may detoriate due to noise effects and aging of components. DSP systems are small in size, more reliable and less expensive compared to analog processing systems. 97. List the features of DSP Processors?
  • 24. i) ii) iii) iv) v) They provide sizable amount of on-chip register, ROM and RAM so data and instructions can be accessed very quickly. They follow the Harvard architecture which provides separate buses for data and instruction. These parallel buses allow instructions and data to be fetched at the same time. The internal architecture of these processor is optimized to perform 16X16 or 32X32 bit multiplication in one clock cycle. They provide 32-bit barrel shifter which allows shifting of 32-bit data in one clock cycle. The instruction set of DSP processor is optimized for DSP applications. 98. What is digital filter? What are the two basic algorithms used for digital filtering? The basic principle of a digital filter is to take continuous samples of the input waveform, perform the frequency related operations such as low pass, high pass, band pass and band reject , and output the processed results to the D/A converter. The processing is done by microcomputer and specially designed software. Two basic algorithms used are: i) Finite impulse response (FIR). ii) Infinite impulse response(IIR). 99. Write the output equation for FIR and II? FIR: (Current sample X some coefficient) + (Previous sample X some coefficient) + (sample before previous sample X some coefficient). IIR: (Current sample X calculated coefficient) + (Previous output value X calculated coefficient) + (output value previous to previous output value X calculated coefficient). 100. Why isolation circuitry is required to control the ac drives? To control 220V or 440V ac devices it is not desirable to have a common power circuit ground and control circuit ground. This is very important because if the 220V ac line gets shorted to the Vcc line of a microcomputer, it usually bakes most of the microcomputer ICs. To avoid this, the control circuit and power circuit is electrically isolated by separating their individual ground lines.