Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 1 A simple bus bus structure ProcessorMemory rd'/wr enable addr[0-11]

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

I/O Organization popo.
Hoofdstuk 8 Interfaces en interface-ontwerp Prof. dr. ir. Dirk Stroobandt Academiejaar
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
I/O Unit.
Lecture 8 Lecture 8: CoreConnect and The PLB Bus ECE 412: Microcomputer Laboratory.
Chapter 6 Interfacing.
Interfacing. This Week In DIG II  Basic communications terminology  Communications protocols  Microprocessor interfacing: I/O addressing  Port and.
COMP3221: Microprocessors and Embedded Systems Lecture 15: Interrupts I Lecturer: Hui Wu Session 1, 2005.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
6-1 I/O Methods I/O – Transfer of data between memory of the system and the I/O device Most devices operate asynchronously from the CPU Most methods involve.
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: internal fault (e.g.. divide by.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 6 Interfacing ECE4330 Embedded System Design.
680XX Hardware Interface Outline Goal Reading
Interfacing. This Week In DIG II  Basic communications terminology  Communications protocols  Microprocessor interfacing: I/O addressing  Port and.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Interfacing. This Week In DIG II  Basic communications terminology  Communications protocols  Microprocessor interfacing: I/O addressing  Port and.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
2. Methods for I/O Operations
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Computer Architecture Lecture 08 Fasih ur Rehman.
1 LHO 12 Interfacing. 2 A simple bus bus structure ProcessorMemory rd'/wr enable addr[0-11] data[0-7] bus Wires: –Uni-directional or bi-directional –One.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 5 Memory.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
MICROPROCESSOR INPUT/OUTPUT
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
DMA Versus Polling or Interrupt Driven I/O
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
13-Nov-15 (1) CSC Computer Organization Lecture 7: Input/Output Organization.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 6 Interfacing.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
MACHINE CYCLE AND T-STATE
بسم الله الرحمن الرحيم MEMORY AND I/O.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
 The Programmable Interrupt Controller (PlC) functions as an overall manager in an Interrupt-Driven system. It accepts requests from the peripheral equipment,
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
DIRECT MEMORY ACCESS and Computer Buses
Chapter 5 Memory.
Chapter 6 Input/Output Organization
COURSE OUTCOMES OF Microprocessor and programming
Microprocessors & Embedded Systems
Chapter 6 Interfacing.
UNIT – Microcontroller.
CPU Sequencing 6/30/2018.
EE 107 Fall 2017 Lecture 7 Serial Buses – I2C Direct Memory Access
Presentation On 8259 Made by Md Shabbir Hasan.
Programmable Interrupt Controller 8259
X1 & X2 These are also called Crystal Input Pins.
8259 Programmable Interrupt Controller
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Chapter 6 Interfacing.
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Chapter 6 Interfacing.
Chapter 6 Interfacing.
COMP3221: Microprocessors and Embedded Systems
CPU Sequencing 7/20/2019.
Presentation transcript:

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 1 A simple bus bus structure ProcessorMemory rd'/wr enable addr[0-11] data[0-7] bus Wires: –Uni-directional or bi-directional –One line may represent multiple wires Bus –Set of wires with a single function Address bus, data bus –Or, entire collection of wires Address, data and control Associated protocol: rules for communication

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 2 Ports Conducting device on periphery Connects bus to processor or memory Often referred to as a pin –Actual pins on periphery of IC package that plug into socket on printed-circuit board –Sometimes metallic balls instead of pins –Today, metal “pads” connecting processors and memories within single IC Single wire or set of wires with single function –E.g., 12-wire address port bus ProcessorMemory rd'/wr enable addr[0-11] data[0-7] port

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 3 Timing Diagrams write protocol rd'/wr enable addr data t setup t write Most common method for describing a communication protocol Time proceeds to the right on x-axis Control signal: low or high –May be active low (e.g., go’, /go, or go_L) –Use terms assert (active) and deassert –Asserting go’ means go=0 Data signal: not valid or valid Protocol may have subprotocols –Called bus cycle, e.g., read and write –Each may be several clock cycles Read example –rd’/wr set low,address placed on addr for at least t setup time before enable asserted, enable triggers memory to place data on data wires by time t read read protocol rd'/wr enable addr data t setup t read

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 4 A strobe/handshake compromise Fast-response case req data wait Master asserts req to receive data 2. Servant puts data on bus within time t access 3. Master receives data and deasserts req 4. Servant ready for next request 2 Slow-response case MasterServant req wait data req data wait Master asserts req to receive data 2. Servant can't put data within t access, asserts wait ack 3. Servant puts data on bus and deasserts wait 4. Master receives data and deasserts req 2 t access 5. Servant ready for next request 5 (wait line is unused)

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 5 Microprocessor interfacing: interrupts Suppose a peripheral intermittently receives data, which must be serviced by the processor –The processor can poll the peripheral regularly to see if data has arrived – wasteful –The peripheral can interrupt the processor when it has data Requires an extra pin or pins: Int –If Int is 1, processor suspends current program, jumps to an Interrupt Service Routine, or ISR –Known as interrupt-driven I/O –Essentially, “polling” of the interrupt pin is built-into the hardware, so no extra time!

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 6 Microprocessor interfacing: interrupts What is the address (interrupt address vector) of the ISR? –Fixed interrupt Address built into microprocessor, cannot be changed Either ISR stored at address or a jump to actual ISR stored if not enough bytes available –Vectored interrupt Peripheral must provide the address Common when microprocessor has multiple peripherals connected by a system bus –Compromise: interrupt address table

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 7 Arbitration using a priority arbiter 1.1. Microprocessor is executing its program Peripheral1 needs servicing so asserts Ireq1. Peripheral2 also needs servicing so asserts Ireq Priority arbiter sees at least one Ireq input asserted, so asserts Int Microprocessor stops executing its program and stores its state Microprocessor asserts Inta Priority arbiter asserts Iack1 to acknowledge Peripheral Peripheral1 puts its interrupt address vector on the system bus 8.8. Microprocessor jumps to the address of ISR read from data bus, ISR executes and returns 9.(and completes handshake with arbiter) Microprocessor resumes executing its program. Micro- processor Priority arbiter Peripheral1 System bus Int Inta Peripheral2 Ireq1 Iack2 Iack1 Ireq2 22 6

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 8 Serial protocols: CAN CAN (Controller area network) –Protocol for real-time applications –Developed by Robert Bosch GmbH –Originally for communication among components of cars –Applications now using CAN include: elevator controllers, copiers, telescopes, production-line control systems, and medical instruments –Data transfer rates up to 1 Mbit/s and 11-bit addressing –Common devices interfacing with CAN: 8051-compatible 8592 processor and standalone CAN controllers –Actual physical design of CAN bus not specified in protocol Requires devices to transmit/detect dominant and recessive signals to/from bus e.g., ‘1’ = dominant, ‘0’ = recessive if single data wire used Bus guarantees dominant signal prevails over recessive signal if asserted simultaneously

Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 9 Wireless protocols: Bluetooth Bluetooth –New, global standard for wireless connectivity –Based on low-cost, short-range radio link –Connection established when within 10 meters of each other –No line-of-sight required e.g., Connect to printer in another room