SlideShare a Scribd company logo
UNIT-2
I/O INTERFACING
8255-Programmable Peripheral Interface
Implement the parallel data transfer between processor and slow peripheral
devices
ADC,DAC,KEYBOARD,7-SEGMENT DISPLAY,LCD…
8255-Three ports: Port-A, Port-B, Port-C
8255- Three Modes: Mode 0, mode 1, mode 2
Mode 0- Simple I/O port
Mode 1- Handshake I/O port
Mode 2- Bidirectional I/O port
Port A: programmed  any one of the three modes
Port B: programmed  Work Either mode 0 or mode 1
Port C: Pins (8 Pins)  different assignments  depends on mode of Port
A and B.
If Port- A and B  programmed in Mode 0
Port C will be
1. 8 bit parallel port in mode 0 for i/p or o/p
2. Two 4-bit parallel port in mode 0 for i/p or o/p
3. Individual pins  can set or reset for various control applications
If Port- A  programmed in Mode 1 /mode 2 and Port B
programmed in Mode 1
Port C will be
Some pins  used Handshake Signals
Remaining pins  i/pp and o/p
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
I/O MODES OF 8255
MODE-1 MODE-2 MODE-3
All the three ports 
Programmed either I/P or
O/P
Only ports A and B
Programmed either I/P or
O/P
Only ports A 
Programmed either I/P or
O/P
O/Ps  Latched O/Ps  Latched -
I/Ps Not Latched I/Ps  Latched -
Do not have handshake or
interrupt capability
Having handshake or
interrupt capability
Having handshake or
interrupt capability
Port C pins  used as
handshake signals
5 Pins of Port C pins 
used as handshake signals
Handshake signals  exchanged between processor
and peripherals
Ports in mode-0  used to
interface DIP switches,
Hexa keyboard, LEDS ,7
segment to the processor.
Interrupt driven data
transfer scheme is possible
Data transfer between 2
computers or floppy disk
Programming (or Initializing) 8255
8255 –Two Control Words
1. I/O mode set Control word (MSW) specify the I/O functions
2. Bit set/reset (BSR) Control word.  Set/ reset the individual pins of
port C
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
Serial Data Communication
1.Fastest way to transmitting data  Parallel Data Transfer
2. Long Distance  Parallel data transfer  Too many Wires
3. Parallel serial conversion needed
Three terms:
1. Simplex  Transmit data can only on direction.
2. Half dulpex either direction between two system.
3. Full duplex send and receive data at same time.
Serial data can sent 1. Synchronously 2. asynchronously
Synchronous transmission:
Constant rate
Start and end block are identified with specific bytes or bit patterns.
2. Asynchronous Transmission
Data transmit one by one
Each data can identifiy its start and 1 or 2 bits which identify its send.
Baud rate =1/ the time for a bit sent.
INTEL 8251A(USART)
INTEL 8251A Universal Synchronous asynchronous receiver
transmitter
INTEL 8250 UART Universal asynchronous receiver
transmitter
Blocks:
1. Read/Write control logic, 2.Transmitter, 3. Receiver, 4.Modem
control
Read/write Control Logic:
Three register:1.contol reg, 2.status reg, 3. bata buffer
IO INTERFACING in unit 2  8086 Microprocessor
CS: It is chip select.
low signal  processor has selected 8251 in order to communicate with
the peripheral devices.
C/D’: As the system has control, status and data register.
high signal  control or status register is addressed.
low signal data register is addressed.
RD’ and WR’: Both read and write are active low signal pins.
CLK and RESET:
CLK stands for clock and it produces the internal timing for the device.
high signal at the RESET pin puts the 8251 in the idle mode.
Transmit Buffer
This unit is used to change the parallel data received from the CPU into
serial data by inserting the necessary framing information.
Once the data is transformed into serial form, then in order to transmit it to the
external devices, it is provided to the TxD pin of the 8251.
Buffer register: Basically the data provided by the processor is stored in the
buffer register. As we know that initially, the CPU provides parallel data to
8251. So, the processor loads the parallel data to the buffer register. Further, this
data is fed to the output register.
Output register: The parallel data from the buffer register is fed to the empty
output register. This register changes the 8-bit parallel data into a stream of
serial bits. Then further the serial data is provided at the TxD pin so as to have
its transfer to the peripheral device.
If buffer register empty TxRDYhigh
If output register empty TxEXPTYhigh
TxC: It stands for transmitter clock and is an active low pin. It controls the rate of
character transmission by the USART.
Receive Buffer
This unit takes the serial data from the external devices, changes the serial data into
the parallel form so that it can be accepted by the processor.
It consists of 2 registers: 1. receiver input register 2. buffer register.
RxD  Normally high….
When RxD line goes Low Control logic Assumes—>Start Bit….
Wait for Half bit time….and Samples Again….
If still low  then the receive accept the character and load it into buffer register.
CPU reads the Parallel data from the buffer register.
Then RxRDY signal high…this signal used as interuppt or status to indicate the
readiness of receiver.
RxC’  is used to control the rate of received bits.
During  asynchronous mode  SYNDET/BRKDET
Will indicate the intentional break in the transmission
If RxD  low more than 2 character times then asserted as high  to indicate the
break in the transmission.
During  synchronous mode  SYNDET/BRKDET
Will indicate the reception of the synchronous character.
if high in SYNDET.
MODE WORD
Command Word
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
8279
KEYBOARD /DISPLAY
CONTROLLER
It relieves the processor from the time consuming task like keyboard
scanning and display refreshing.
Features
1. It provides a scanned interface to a 64-contact key matrix, with two more
keys CONTROL and SHIFT.
2. It provides three input modes for keyboard interface;
Scanned Keyboard Mode
Scanned Sensor Matrix Mode
Strobed Input Mode
3. It has built-in hardware to provide key debounce.
4. It allows key depressions in 2 key lockout or N-key rollover mode
5. Features of Intel 8279 provides 8 byte FIFO RAM to store keycodes. This
allows to store 8 key board inputs when CPU is busy in performing his own
computation.
6. It provides multiplexed display interface with blanking and inhibit
options.
7. It provides 16 byte display RAM to store display codes for 16 digits,
allowing to interface 16 digits.
8. In auto increment mode, address of display RAM and FIFO RAM is
incremented automatically which eliminates extra command after each
read/write operation to access successive locations of display RAM and
FIFO
9. Features of Intel 8279 provides two output modes for display
interface.
Left Entry (typewriter type)
Right Entry (calculator type)
10. Simultaneous keyboard and display operation facility allows to
interleave keyboard and display software
Interrupt mode, the processor is requested service only if any
key is pressed, otherwise the CPU will continue with its main task.
In the Polled mode, the CPU periodically reads an internal flag of
8279 to check whether any key is pressed or not with key
pressure.
•Scanned Keyboard Mode In this mode, the
− key matrix can be
interfaced using either encoded or decoded scans. In the encoded scan,
an 8×8 keyboard or in the decoded scan, a 4×8 keyboard can be
interfaced. The code of key pressed with SHIFT and CONTROL status is
stored into the FIFO RAM.
•Scanned Sensor Matrix In this mode, a
− sensor array can be
interfaced with the processor using either encoder or decoder scans. In
the encoder scan, 8×8 sensor matrix or with decoder scan 4×8 sensor
matrix can be interfaced.
•Strobed Input In this mode, when the control line is set to 0, the
−
data on the return lines is stored in the FIFO byte by byte.
IO INTERFACING in unit 2  8086 Microprocessor
Keycode entry in FIFO for scan keyboard mode
8259
PROGRAMMABLE
INTERRUPT
CONTROLLER (PIC)
Features of 8259 PIC microprocessor –
Intel 8259 is designed for Intel 8085 and Intel 8086 microprocessor.
It can be programmed either in level triggered or in edge triggered
interrupt level.
We can masked individual bits of interrupt request register.
We can increase interrupt handling capability upto 64 interrupt level
by cascading further 8259 PIC.
Clock cycle is not required.
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
IO INTERFACING in unit 2  8086 Microprocessor
DMA CONTROLLER-8257
Data Transfer between Memory to I/O device or I/O device to Memory
through only Microprocessor.
• Data transferred from memory to I/O devices
1. Processor sends address and control signals to read the data from
memory
2. The processor send address and control signals to I/O devices to write
data to I/O devices.
• Similarly I/O devices to memory.
In above method data transferred between memory and I/O devices
Can’t directly. Even they are connected in common bus.
Can’t select simultaneously select two devices.
So that we go for DMA.
I/O device can access directly with memory.
It will transfer a large amount of data.
Some DMA controller will perform memory to memory transfer.
• DMA controller has one channel which serves for one devices.
• Actual DMA controller have  more than one channel.it will service
independently
• Each channel address register , control register and count register.
• DMA controller  work with slave or master mode.
• In slave mode
1. Microprocessor  Loads the address reg. with starting address of the
memory
2.Loads the count register with no. of bytes to be transferred and loads
the control register with control information
Performing DMA operation Processor has to initialize or program the I/O
device and DMA controller.
Consider bulk of data transfer from floppy to memory.
1. Processor initializes both  DMA controller and Floppy controller.
2. DMA controller informed about address, type of DMA, No. of bytes to
be transferred
3. Floppy controller is informed to go for a DMA.
4. When I/O devices needs a DMA transfer it sends a DMA request signal
to the DMA controller.
5. When DMA controller receives a DMA request, it sends a HOLD request
to the processor.
6. At the end of current instruction execution  the processer relives all
bus activity , data and control pins to high impedance state.
7. Then the processor send an ACK (HLDA) signal to DMA controller.
8. When controller receives the ACK signal its takes control of the
system bus and begins to work as master.
9. DMA controller  DMA ack signal to I/O devices .the DACK signal will
inform the devices to get ready for DMA transfer.
READ operation
1. DMA controller  output the memory address on address bus.
2. Asserts MEMR’ & IOW’
3. DMA reading Memory Location
4. The memory output the data bus & this data will be written into I/O
port.
Write operation
1.DMA controller output the memory address on the address bus.
2. Asserts MEMW’ & IOR’ signals.
3. DMA write refer to writing data to memory
4. I/O devices output the data on the data bus and this data will be
written into memory.
When the data transfer is complete the DMA controller un-asserts its
HOLD request signal to the processor and the processor take control of
the system bus.
IO INTERFACING in unit 2  8086 Microprocessor
DMA  Developed 8085/8086/8088
High speed data transfer between memory and I/O device.
4 –channels
So 4 I/O devices
It can not connected in cascade like 8237
Each channel  Address reg. & count reg.  Store the memory
address and Count Value for no. of byte to be read/write by DMA
respectively
Also mode Set Reg. and Status Reg.
40 pin IC
Each Channel  independently programmable to transfer upto 64Kb.
Pin Details
1. CLK 5 MHz
2. CS’  Select the 8257 Programming mode.
3. Reset high  All internal Register to be Cleared.
4. Ready  Low 8257 enter wait State
5. HRQ Hold request output Signal(8257 to Processor HOLD pin)
6. HLDA HOLD ack Signal. Processor Acceptance ACK
7. DREQ3 to DREQ0DMA request input (4 Channel i/Ps)
8. DACK3 to DACK0 DMA ACK O/P signals.
9. D0-D7 Data bus line(used to Data transfer)
10.IoR’ Bidirectional I/O read Control Signal.
11.IoW’ Bidirectional I/O write Control Signal.
12.TC  Terminal Count
13.MARK Modulo -128 Mark
14.A3 to A0 4 bidirectional address line
15.A7 to A4  Unidirectional Address line
16.AEN Address enable output signal.
17.ADSTB Address strobe output signal.
18.MEMR’ Memory Read Control
19.MEMW’ memory write control signal.
Ad

More Related Content

Similar to IO INTERFACING in unit 2 8086 Microprocessor (20)

8255.pdf
8255.pdf8255.pdf
8255.pdf
someshdash1
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
MCgchjjgccfgxhdhfjxjxjxkxjdsj dudududysudidicic3.pptx
MCgchjjgccfgxhdhfjxjxjxkxjdsj  dudududysudidicic3.pptxMCgchjjgccfgxhdhfjxjxjxkxjdsj  dudududysudidicic3.pptx
MCgchjjgccfgxhdhfjxjxjxkxjdsj dudududysudidicic3.pptx
nitheeshk887
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
deepakdmaat
 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
Deepak John
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
ShivangiSharma879191
 
LECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wantsLECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wants
BifaHirpo1
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
BASKARS53
 
unit 4 mc.pdf
unit 4 mc.pdfunit 4 mc.pdf
unit 4 mc.pdf
ssuserdd904d
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
deval patel
 
8279 programmable keyboard switches leds
8279 programmable keyboard switches leds8279 programmable keyboard switches leds
8279 programmable keyboard switches leds
msaraswathypillai02
 
8279 Programable keyboard switches and .
8279 Programable keyboard switches and .8279 Programable keyboard switches and .
8279 Programable keyboard switches and .
msaraswathypillai02
 
Assembler4
Assembler4Assembler4
Assembler4
Omar Sanchez
 
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERINGUnit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Chandra Kumar S
 
8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
LingalaSowjanya
 
Unit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be notedUnit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
Игорь Медведев
 
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPUPA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
piyushsborse7
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
MCgchjjgccfgxhdhfjxjxjxkxjdsj dudududysudidicic3.pptx
MCgchjjgccfgxhdhfjxjxjxkxjdsj  dudududysudidicic3.pptxMCgchjjgccfgxhdhfjxjxjxkxjdsj  dudududysudidicic3.pptx
MCgchjjgccfgxhdhfjxjxjxkxjdsj dudududysudidicic3.pptx
nitheeshk887
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
Prof Ansari
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
deepakdmaat
 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
Deepak John
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
ShivangiSharma879191
 
LECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wantsLECTURE_7 Interface.pptx of what you wants
LECTURE_7 Interface.pptx of what you wants
BifaHirpo1
 
8279 programmable keyboard switches leds
8279 programmable keyboard switches leds8279 programmable keyboard switches leds
8279 programmable keyboard switches leds
msaraswathypillai02
 
8279 Programable keyboard switches and .
8279 Programable keyboard switches and .8279 Programable keyboard switches and .
8279 Programable keyboard switches and .
msaraswathypillai02
 
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERINGUnit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pdf- MECHATRONICS-ENGGINERING
Chandra Kumar S
 
8251 communication interface
8251 communication interface8251 communication interface
8251 communication interface
LingalaSowjanya
 
Unit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be notedUnit-3 IO Interfacing-1.pptximportant questions to be noted
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
 
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPUPA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
piyushsborse7
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
Neelam Kapoor
 

More from tamil arasan (20)

UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptxUNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
tamil arasan
 
Serial communication in 8051 microcontroller .pptx
Serial communication in 8051 microcontroller .pptxSerial communication in 8051 microcontroller .pptx
Serial communication in 8051 microcontroller .pptx
tamil arasan
 
89C51 PROGRAMMING in Unit-4 of Microprocessor
89C51 PROGRAMMING in Unit-4 of Microprocessor89C51 PROGRAMMING in Unit-4 of Microprocessor
89C51 PROGRAMMING in Unit-4 of Microprocessor
tamil arasan
 
8051 Architecture in unit 3 for MPMC .pptx
8051 Architecture in unit 3 for MPMC .pptx8051 Architecture in unit 3 for MPMC .pptx
8051 Architecture in unit 3 for MPMC .pptx
tamil arasan
 
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptxMOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
tamil arasan
 
Design of Arithmetic Building Block Unit-5 VLSI.pptx
Design of Arithmetic Building Block Unit-5 VLSI.pptxDesign of Arithmetic Building Block Unit-5 VLSI.pptx
Design of Arithmetic Building Block Unit-5 VLSI.pptx
tamil arasan
 
Dynamic CMOS DESIGN in VLSI Design-unit-3
Dynamic CMOS DESIGN in VLSI Design-unit-3Dynamic CMOS DESIGN in VLSI Design-unit-3
Dynamic CMOS DESIGN in VLSI Design-unit-3
tamil arasan
 
Sequential Logic Circuit Design Unit-4 VLSI.pptx
Sequential Logic Circuit Design Unit-4 VLSI.pptxSequential Logic Circuit Design Unit-4 VLSI.pptx
Sequential Logic Circuit Design Unit-4 VLSI.pptx
tamil arasan
 
Unit 3- OPTICAL SOURCES AND DETECTORS
Unit 3- OPTICAL SOURCES AND DETECTORS Unit 3- OPTICAL SOURCES AND DETECTORS
Unit 3- OPTICAL SOURCES AND DETECTORS
tamil arasan
 
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER 	Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
tamil arasan
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
tamil arasan
 
DSP lab manual
DSP lab manualDSP lab manual
DSP lab manual
tamil arasan
 
Steps for design of butterworth and chebyshev filter
Steps for design of butterworth and chebyshev filterSteps for design of butterworth and chebyshev filter
Steps for design of butterworth and chebyshev filter
tamil arasan
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
tamil arasan
 
VLSI Design Sequential circuit design
VLSI Design Sequential circuit designVLSI Design Sequential circuit design
VLSI Design Sequential circuit design
tamil arasan
 
Unit i
Unit iUnit i
Unit i
tamil arasan
 
Unit 2
Unit  2Unit  2
Unit 2
tamil arasan
 
Unit 3
Unit 3Unit 3
Unit 3
tamil arasan
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)
tamil arasan
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effects
tamil arasan
 
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptxUNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
UNIT-I MICROPROCESSOR PROGRAMMING AND STACK.pptx
tamil arasan
 
Serial communication in 8051 microcontroller .pptx
Serial communication in 8051 microcontroller .pptxSerial communication in 8051 microcontroller .pptx
Serial communication in 8051 microcontroller .pptx
tamil arasan
 
89C51 PROGRAMMING in Unit-4 of Microprocessor
89C51 PROGRAMMING in Unit-4 of Microprocessor89C51 PROGRAMMING in Unit-4 of Microprocessor
89C51 PROGRAMMING in Unit-4 of Microprocessor
tamil arasan
 
8051 Architecture in unit 3 for MPMC .pptx
8051 Architecture in unit 3 for MPMC .pptx8051 Architecture in unit 3 for MPMC .pptx
8051 Architecture in unit 3 for MPMC .pptx
tamil arasan
 
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptxMOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
MOSFET Transistor Operation/ Characteristics Unit-2 VLSI.pptx
tamil arasan
 
Design of Arithmetic Building Block Unit-5 VLSI.pptx
Design of Arithmetic Building Block Unit-5 VLSI.pptxDesign of Arithmetic Building Block Unit-5 VLSI.pptx
Design of Arithmetic Building Block Unit-5 VLSI.pptx
tamil arasan
 
Dynamic CMOS DESIGN in VLSI Design-unit-3
Dynamic CMOS DESIGN in VLSI Design-unit-3Dynamic CMOS DESIGN in VLSI Design-unit-3
Dynamic CMOS DESIGN in VLSI Design-unit-3
tamil arasan
 
Sequential Logic Circuit Design Unit-4 VLSI.pptx
Sequential Logic Circuit Design Unit-4 VLSI.pptxSequential Logic Circuit Design Unit-4 VLSI.pptx
Sequential Logic Circuit Design Unit-4 VLSI.pptx
tamil arasan
 
Unit 3- OPTICAL SOURCES AND DETECTORS
Unit 3- OPTICAL SOURCES AND DETECTORS Unit 3- OPTICAL SOURCES AND DETECTORS
Unit 3- OPTICAL SOURCES AND DETECTORS
tamil arasan
 
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER 	Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
Unit II- TRANSMISSION CHARACTERISTIC OF OPTICAL FIBER
tamil arasan
 
Steps for design of butterworth and chebyshev filter
Steps for design of butterworth and chebyshev filterSteps for design of butterworth and chebyshev filter
Steps for design of butterworth and chebyshev filter
tamil arasan
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
tamil arasan
 
VLSI Design Sequential circuit design
VLSI Design Sequential circuit designVLSI Design Sequential circuit design
VLSI Design Sequential circuit design
tamil arasan
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)
tamil arasan
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effects
tamil arasan
 
Ad

Recently uploaded (20)

SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation RateModeling the Influence of Environmental Factors on Concrete Evaporation Rate
Modeling the Influence of Environmental Factors on Concrete Evaporation Rate
Journal of Soft Computing in Civil Engineering
 
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic AlgorithmDesign Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Design Optimization of Reinforced Concrete Waffle Slab Using Genetic Algorithm
Journal of Soft Computing in Civil Engineering
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
Physical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A ReviewPhysical and Physic-Chemical Based Optimization Methods: A Review
Physical and Physic-Chemical Based Optimization Methods: A Review
Journal of Soft Computing in Civil Engineering
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Using the Artificial Neural Network to Predict the Axial Strength and Strain ...
Journal of Soft Computing in Civil Engineering
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Design of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdfDesign of Variable Depth Single-Span Post.pdf
Design of Variable Depth Single-Span Post.pdf
Kamel Farid
 
Personal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.pptPersonal Protective Efsgfgsffquipment.ppt
Personal Protective Efsgfgsffquipment.ppt
ganjangbegu579
 
Construction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.pptConstruction-Chemicals-For-Waterproofing.ppt
Construction-Chemicals-For-Waterproofing.ppt
ssuser2ffcbc
 
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
01.คุณลักษณะเฉพาะของอุปกรณ์_pagenumber.pdf
PawachMetharattanara
 
2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt2.3 Genetically Modified Organisms (1).ppt
2.3 Genetically Modified Organisms (1).ppt
rakshaiya16
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Machine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATIONMachine Learning basics POWERPOINT PRESENETATION
Machine Learning basics POWERPOINT PRESENETATION
DarrinBright1
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdfML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
ML_Unit_VI_DEEP LEARNING_Introduction to ANN.pdf
rameshwarchintamani
 
Ad

IO INTERFACING in unit 2 8086 Microprocessor

  • 2. 8255-Programmable Peripheral Interface Implement the parallel data transfer between processor and slow peripheral devices ADC,DAC,KEYBOARD,7-SEGMENT DISPLAY,LCD… 8255-Three ports: Port-A, Port-B, Port-C 8255- Three Modes: Mode 0, mode 1, mode 2 Mode 0- Simple I/O port Mode 1- Handshake I/O port Mode 2- Bidirectional I/O port Port A: programmed  any one of the three modes Port B: programmed  Work Either mode 0 or mode 1 Port C: Pins (8 Pins)  different assignments  depends on mode of Port A and B.
  • 3. If Port- A and B  programmed in Mode 0 Port C will be 1. 8 bit parallel port in mode 0 for i/p or o/p 2. Two 4-bit parallel port in mode 0 for i/p or o/p 3. Individual pins  can set or reset for various control applications If Port- A  programmed in Mode 1 /mode 2 and Port B programmed in Mode 1 Port C will be Some pins  used Handshake Signals Remaining pins  i/pp and o/p
  • 6. I/O MODES OF 8255 MODE-1 MODE-2 MODE-3 All the three ports  Programmed either I/P or O/P Only ports A and B Programmed either I/P or O/P Only ports A  Programmed either I/P or O/P O/Ps  Latched O/Ps  Latched - I/Ps Not Latched I/Ps  Latched - Do not have handshake or interrupt capability Having handshake or interrupt capability Having handshake or interrupt capability Port C pins  used as handshake signals 5 Pins of Port C pins  used as handshake signals Handshake signals  exchanged between processor and peripherals Ports in mode-0  used to interface DIP switches, Hexa keyboard, LEDS ,7 segment to the processor. Interrupt driven data transfer scheme is possible Data transfer between 2 computers or floppy disk
  • 7. Programming (or Initializing) 8255 8255 –Two Control Words 1. I/O mode set Control word (MSW) specify the I/O functions 2. Bit set/reset (BSR) Control word.  Set/ reset the individual pins of port C
  • 13. Serial Data Communication 1.Fastest way to transmitting data  Parallel Data Transfer 2. Long Distance  Parallel data transfer  Too many Wires 3. Parallel serial conversion needed Three terms: 1. Simplex  Transmit data can only on direction. 2. Half dulpex either direction between two system. 3. Full duplex send and receive data at same time. Serial data can sent 1. Synchronously 2. asynchronously Synchronous transmission: Constant rate Start and end block are identified with specific bytes or bit patterns. 2. Asynchronous Transmission Data transmit one by one Each data can identifiy its start and 1 or 2 bits which identify its send. Baud rate =1/ the time for a bit sent.
  • 14. INTEL 8251A(USART) INTEL 8251A Universal Synchronous asynchronous receiver transmitter INTEL 8250 UART Universal asynchronous receiver transmitter Blocks: 1. Read/Write control logic, 2.Transmitter, 3. Receiver, 4.Modem control Read/write Control Logic: Three register:1.contol reg, 2.status reg, 3. bata buffer
  • 16. CS: It is chip select. low signal  processor has selected 8251 in order to communicate with the peripheral devices. C/D’: As the system has control, status and data register. high signal  control or status register is addressed. low signal data register is addressed. RD’ and WR’: Both read and write are active low signal pins. CLK and RESET: CLK stands for clock and it produces the internal timing for the device. high signal at the RESET pin puts the 8251 in the idle mode.
  • 17. Transmit Buffer This unit is used to change the parallel data received from the CPU into serial data by inserting the necessary framing information. Once the data is transformed into serial form, then in order to transmit it to the external devices, it is provided to the TxD pin of the 8251. Buffer register: Basically the data provided by the processor is stored in the buffer register. As we know that initially, the CPU provides parallel data to 8251. So, the processor loads the parallel data to the buffer register. Further, this data is fed to the output register. Output register: The parallel data from the buffer register is fed to the empty output register. This register changes the 8-bit parallel data into a stream of serial bits. Then further the serial data is provided at the TxD pin so as to have its transfer to the peripheral device.
  • 18. If buffer register empty TxRDYhigh If output register empty TxEXPTYhigh TxC: It stands for transmitter clock and is an active low pin. It controls the rate of character transmission by the USART. Receive Buffer This unit takes the serial data from the external devices, changes the serial data into the parallel form so that it can be accepted by the processor. It consists of 2 registers: 1. receiver input register 2. buffer register. RxD  Normally high…. When RxD line goes Low Control logic Assumes—>Start Bit…. Wait for Half bit time….and Samples Again…. If still low  then the receive accept the character and load it into buffer register. CPU reads the Parallel data from the buffer register. Then RxRDY signal high…this signal used as interuppt or status to indicate the readiness of receiver.
  • 19. RxC’  is used to control the rate of received bits. During  asynchronous mode  SYNDET/BRKDET Will indicate the intentional break in the transmission If RxD  low more than 2 character times then asserted as high  to indicate the break in the transmission. During  synchronous mode  SYNDET/BRKDET Will indicate the reception of the synchronous character. if high in SYNDET.
  • 31. It relieves the processor from the time consuming task like keyboard scanning and display refreshing. Features 1. It provides a scanned interface to a 64-contact key matrix, with two more keys CONTROL and SHIFT. 2. It provides three input modes for keyboard interface; Scanned Keyboard Mode Scanned Sensor Matrix Mode Strobed Input Mode 3. It has built-in hardware to provide key debounce. 4. It allows key depressions in 2 key lockout or N-key rollover mode 5. Features of Intel 8279 provides 8 byte FIFO RAM to store keycodes. This allows to store 8 key board inputs when CPU is busy in performing his own computation. 6. It provides multiplexed display interface with blanking and inhibit options. 7. It provides 16 byte display RAM to store display codes for 16 digits, allowing to interface 16 digits. 8. In auto increment mode, address of display RAM and FIFO RAM is incremented automatically which eliminates extra command after each read/write operation to access successive locations of display RAM and FIFO
  • 32. 9. Features of Intel 8279 provides two output modes for display interface. Left Entry (typewriter type) Right Entry (calculator type) 10. Simultaneous keyboard and display operation facility allows to interleave keyboard and display software Interrupt mode, the processor is requested service only if any key is pressed, otherwise the CPU will continue with its main task. In the Polled mode, the CPU periodically reads an internal flag of 8279 to check whether any key is pressed or not with key pressure. •Scanned Keyboard Mode In this mode, the − key matrix can be interfaced using either encoded or decoded scans. In the encoded scan, an 8×8 keyboard or in the decoded scan, a 4×8 keyboard can be interfaced. The code of key pressed with SHIFT and CONTROL status is stored into the FIFO RAM. •Scanned Sensor Matrix In this mode, a − sensor array can be interfaced with the processor using either encoder or decoder scans. In the encoder scan, 8×8 sensor matrix or with decoder scan 4×8 sensor matrix can be interfaced. •Strobed Input In this mode, when the control line is set to 0, the − data on the return lines is stored in the FIFO byte by byte.
  • 34. Keycode entry in FIFO for scan keyboard mode
  • 36. Features of 8259 PIC microprocessor – Intel 8259 is designed for Intel 8085 and Intel 8086 microprocessor. It can be programmed either in level triggered or in edge triggered interrupt level. We can masked individual bits of interrupt request register. We can increase interrupt handling capability upto 64 interrupt level by cascading further 8259 PIC. Clock cycle is not required.
  • 44. Data Transfer between Memory to I/O device or I/O device to Memory through only Microprocessor. • Data transferred from memory to I/O devices 1. Processor sends address and control signals to read the data from memory 2. The processor send address and control signals to I/O devices to write data to I/O devices. • Similarly I/O devices to memory. In above method data transferred between memory and I/O devices Can’t directly. Even they are connected in common bus. Can’t select simultaneously select two devices. So that we go for DMA. I/O device can access directly with memory. It will transfer a large amount of data. Some DMA controller will perform memory to memory transfer.
  • 45. • DMA controller has one channel which serves for one devices. • Actual DMA controller have  more than one channel.it will service independently • Each channel address register , control register and count register. • DMA controller  work with slave or master mode. • In slave mode 1. Microprocessor  Loads the address reg. with starting address of the memory 2.Loads the count register with no. of bytes to be transferred and loads the control register with control information Performing DMA operation Processor has to initialize or program the I/O device and DMA controller.
  • 46. Consider bulk of data transfer from floppy to memory. 1. Processor initializes both  DMA controller and Floppy controller. 2. DMA controller informed about address, type of DMA, No. of bytes to be transferred 3. Floppy controller is informed to go for a DMA. 4. When I/O devices needs a DMA transfer it sends a DMA request signal to the DMA controller. 5. When DMA controller receives a DMA request, it sends a HOLD request to the processor. 6. At the end of current instruction execution  the processer relives all bus activity , data and control pins to high impedance state. 7. Then the processor send an ACK (HLDA) signal to DMA controller. 8. When controller receives the ACK signal its takes control of the system bus and begins to work as master. 9. DMA controller  DMA ack signal to I/O devices .the DACK signal will inform the devices to get ready for DMA transfer.
  • 47. READ operation 1. DMA controller  output the memory address on address bus. 2. Asserts MEMR’ & IOW’ 3. DMA reading Memory Location 4. The memory output the data bus & this data will be written into I/O port. Write operation 1.DMA controller output the memory address on the address bus. 2. Asserts MEMW’ & IOR’ signals. 3. DMA write refer to writing data to memory 4. I/O devices output the data on the data bus and this data will be written into memory. When the data transfer is complete the DMA controller un-asserts its HOLD request signal to the processor and the processor take control of the system bus.
  • 49. DMA  Developed 8085/8086/8088 High speed data transfer between memory and I/O device. 4 –channels So 4 I/O devices It can not connected in cascade like 8237 Each channel  Address reg. & count reg.  Store the memory address and Count Value for no. of byte to be read/write by DMA respectively Also mode Set Reg. and Status Reg. 40 pin IC Each Channel  independently programmable to transfer upto 64Kb.
  • 50. Pin Details 1. CLK 5 MHz 2. CS’  Select the 8257 Programming mode. 3. Reset high  All internal Register to be Cleared. 4. Ready  Low 8257 enter wait State 5. HRQ Hold request output Signal(8257 to Processor HOLD pin) 6. HLDA HOLD ack Signal. Processor Acceptance ACK 7. DREQ3 to DREQ0DMA request input (4 Channel i/Ps) 8. DACK3 to DACK0 DMA ACK O/P signals. 9. D0-D7 Data bus line(used to Data transfer) 10.IoR’ Bidirectional I/O read Control Signal. 11.IoW’ Bidirectional I/O write Control Signal. 12.TC  Terminal Count 13.MARK Modulo -128 Mark 14.A3 to A0 4 bidirectional address line 15.A7 to A4  Unidirectional Address line 16.AEN Address enable output signal. 17.ADSTB Address strobe output signal. 18.MEMR’ Memory Read Control 19.MEMW’ memory write control signal.
  翻译: