Presentation is loading. Please wait.

Presentation is loading. Please wait.

Parallel I/O Interface Memory CPUI/OTransducer Actuator Output Device Input Device Parallel Interface Microprocessor / Microcontroller Direct memory access(DMA)

Similar presentations


Presentation on theme: "Parallel I/O Interface Memory CPUI/OTransducer Actuator Output Device Input Device Parallel Interface Microprocessor / Microcontroller Direct memory access(DMA)"— Presentation transcript:

1 Parallel I/O Interface Memory CPUI/OTransducer Actuator Output Device Input Device Parallel Interface Microprocessor / Microcontroller Direct memory access(DMA) Parallel I/O is suitable for high-speed applications.

2 General Structure of a parallel I/O Port Parallel I/O Port Bidirectional data bus Chip Select Read/Write Clock Select Address lines Tri-state I/O Lines Open-Collector I/O Lines Edge-Triggered Control Lines 1. Data I/O with tri-state output 2. Data I/O with open-collector output 3. Handshaking lines Standard Microprocessor Bus Interface

3 Bus Handshaking Protocols Synchronous (Clocked transfer, one clock period per transfer) Asynchronous (Unclocked, use handshake signals) Semisynchronous (Clocked transfer, ome or more clock periods per transfer)

4 Synchronous Buses The only control signal is a clock oscillator Bus master: bus transmitter, put address on the bus Bus slave: Bus receiver, respond to the master WriteReadWrite Clock Address Data Hold and Skew delay Setup, decode, and skew delay

5 Typical Slave Internal Structure Bus Master Address Decoder Buffer Bus Slave Clock Data Address

6 Timing Consideration Bus lines must be stable before clock rises and after clock falls. The following timing must be check for proper transaction 1) Delay of address decoding 2) Setup time and Hold time for logic 3) Skew delay

7 Setup Time and Hold Time Setup time is the minimum amount of time that a control signal has to be present on an input of memory device before the clock triggers a transfer into the device. Hold time is the minimum time that data has to be held stable on the inputs of a memory device after a clock change triggers a transfer into that device.

8 Signal Skew DD A0 A1 The master transmits the signals over the bus to slave. The slave no longer sees the signals arrive at the same instant of time. Sources of skew delay: 1) Differences in propagation delay 2) Varying logic gate delay 3) Rise time and Fall time 4) Gate threshold

9 Advantage and Disadvantages of Synchronous Protocol Advantage: Simplicity Disadvantages:Problem with slow devices Length of clock pulses  Time needed for slave to response So, slowest slave has to be considered. This reduces the bandwidth and decreases the potential system performance.

10 Asynchronous Buses Computer  A mix of devices with widely varying access times  Problem of synchronous protocol: The bus runs at the speed of the slowest device. Asynchronous buses allow: fast transactions for fast devices, slow transactions for slow devices.

11 Fully interlocked asynchronous bus Address Master Slave Data WriteRead Originating from bus master Originating from bus slave Asynchronous bus handshaking

12 Asynchronous Buses No timing relation to the system clock Handshake lines are required (Fully interlocked protocol) Matching the different speeds of external devices, fast transaction for fast device, slow transaction for slow device.

13 Semi-synchronous Buses For fast devices: synchronous buses Insert wait states using WAIT for slow devices. WAIT Read Write Data Address Clock

14 DMA and DMA Controller(DMAC) Microprocessor Memory DMA Controller I/O Port External Device External Device External Device


Download ppt "Parallel I/O Interface Memory CPUI/OTransducer Actuator Output Device Input Device Parallel Interface Microprocessor / Microcontroller Direct memory access(DMA)"

Similar presentations


Ads by Google