CompE 460 Real-Time and Embedded Systems Lecture 5 – Hardware Fundamentals.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Parul Polytechnic Institute
VHDL 8 Practical example
ECE 2211 Microprocessor and Interfacing Chapter 8 The 8088/8086 Microprocessors and their memory and I/O interfaces Br. Athaur Rahman Bin Najeeb Room.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
Programmable Interval Timer
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Hardware interfacing  Supplying Clock & Power  Buses and bridges  DC/AC analysis  Timing analysis  Design considerations  Design for worst case.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
The 8085 Microprocessor Architecture
Microprocessor and Microcontroller
Direct Memory Access Introduction to 8237
Parallel I/O Interface Memory CPUI/OTransducer Actuator Output Device Input Device Parallel Interface Microprocessor / Microcontroller Direct memory access(DMA)
MEMORY ORGANIZATION Memory Hierarchy Main Memory Auxiliary Memory
Flip-Flops and Related Devices Wen-Hung Liao, Ph.D. 4/10/2002.
68000 Interface Timing Diagrams Outline –68000 Read Cycle –68000 Write Cycle Goal –Understand bus cycles –Learn how to attach memory, peripherals.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
680XX Hardware Interface Outline Goal Reading
Flip-Flops and Related Devices
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Microcontroller 8051.
Unit-5 CO-MPI autonomous
INPUT-OUTPUT ORGANIZATION
Microcomputer & Interfacing Lecture 2
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Spring EE 437 Lillevik 437s06-l2 University of Portland School of Engineering Advanced Computer Architecture Lecture 2 NSD with MUX and ROM Class.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
PIT: Programmable Interval Timer
Address Decoding Memory/IO.
MCS-51 Hardware Interfacing
MICROPROCESSOR INPUT/OUTPUT
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.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Timers.
Minimum System Requirements Clock Generator Memory Interfacing.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Input-Output Organization
8254 Timer.
Electronic Analog Computer Dr. Amin Danial Asham by.
Computer Architecture Lecture 6 by Engineer A. Lecturer Aymen Hasan AlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Programmable Interrupt Controller (PIC)
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
INTRODUCTION TO MICROPROCESSOR. Do you know computer organization? Arithmetic Logic Unit Memory Output Input Control Unit.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
REGISTER TRANSFER LANGUAGE (RTL) INTRODUCTION TO REGISTER Registers1.
Memory Systems 3/17/ Memory Classes Main Memory Invariably comprises solid state semiconductor devices Interfaces directly with the three bus architecture.
3/19/  Differentiate the class of memory  List the type of main memory  Explain memory architecture and operation  Draw memory map  Design.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
발표자 : 이재신 발표 일시 : Chapter 2 Hardware Fundamentals for the Software Engineer The embedded-systems software engineer must often understand.
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing
Everybody.
16.317: Microprocessor System Design I
REGISTER TRANSFER LANGUAGE (RTL)
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
COMP2121: Microprocessors and Interfacing
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Interfacing Memory Interfacing.
8085 Microprocessor Architecture
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Programmable Interval Timer
Presentation transcript:

CompE 460 Real-Time and Embedded Systems Lecture 5 – Hardware Fundamentals

Click to edit Master title style Agenda Prayer/Thoughts Team Presentation - Brandon Some Hardware Fundamentals Open Collector outputs Tri-state outputs Signal Overloading Circuit Timing Parameters Buses Address Maps Attaching multiple things on a bus –Wait states –Wait Signals –No Handshake PAL’s/FPGA’s Watchdog Timer

Click to edit Master title style Team Presentation Schematics

Click to edit Master title style Future Memory Technologies DVRAM (Deja-Vue RAM) the CPU thinks it has the data before it actually does PVRAM (Presque-Vue RAM) the CPU only has to pretend to access RAM to get the data ODRAM (Oracle at Delphi RAM) returns data the CPU plans to access next (first data access has to be a NOP). HRAM (Hearsay RAM) CPU talks to other CPUs and uses what they all think the data is, instead of accessing the data (which may be different) 711RAM (Seven-Eleven RAM) always available, but may be held up during the night shift ARAM (Audio RAM) like video RAM, but describes the image verbally instead MRAM (Mumble RAM) gumb dortle vrmrgish tord summblum sart groff tuldard snangle gnig

Click to edit Master title style What wrong with this? C DG A B F E

Click to edit Master title style PC Systems What is an interrupt (in computer terms)? On PC Systems, what are some sources of interrupts? USB Keyboard Disk Drive Mouse Network Card Graphics Card etc Now, a big dilemma. On many processors, there is only one low asserted interrupt pin. How can we hook up multiple interrupts to this one pin? C DG A B F E

Click to edit Master title style Multiple Interrupts on Same Line Open Collector Outputs - Standard parts drive signals either high or low. Some devices (called open collector devices) drive their signals low or let them float. uprocIC 2 IC 1 Vcc INT’ Why do we need the pull-up resistor?

Click to edit Master title style Data Bus With this configuration, what will happen if the SRAM tries to send data to the uproc at the same time as the Flash? Flash SRAM uproc Data Bus [d31:d0] How can we fix this?

Click to edit Master title style Tri-State Outputs Standard parts drive signals either high or low. Open collector devices drive their signals low or let them float. Tri-State devices can drive output high, low, or let them float. Used when you want more than one device to drive an input The outputs are enabled when the CS lines are true Sometimes need pullup/down resistor on tristate lines – Why? Figure 2.16 in text

Click to edit Master title style Data Bus CS (or sometime called OE lines) will allow only 1 device to drive the bus at a time. Flash SRAM uproc Data Bus [d31:d0] CS1 CS0

Click to edit Master title style Buses Simple processor example Microprocessor – A0 to A15, D0 to D7 ROM – 32k (15 address lines), 8 bit data RAM – 32k (15 address lines), 8 bit data

Click to edit Master title style Block Diagram What would the memory map look like for this?

Click to edit Master title style Memory Map ROM 0x00 to 0x7fff RAM 0x8000 to 0xffff 0x0000 0x7FFF 0x8000 0xFFFF ROM RAM

Click to edit Master title style How about other devices??? What about attaching keyboards, LCD’s, network chips, etc. How can we attach these types of devices to the microprocessor? What types of IO are available? Memory Mapped IO Isolated I/O space

Click to edit Master title style Isolated IO Space has separate spaces for IO and memory Isolated IO

Click to edit Master title style Memory Mapped IO uses the same space for IO and memory Memory Mapped IO

Click to edit Master title style PLD/FPGA … UProcRAMFlashUART Data, Address, Cntrl FPGA or CPLD A13 A14 A15 Clk RAMCE FlashCE UARTCE

Click to edit Master title style Signal Overloading What is signal overloading? Caused by connecting too many input circuits to a single output Also called Fan-out or loading problem How can you tell if you have a loading problem? Data Sheets specify the current a device is able to drive on its output lines Data Sheets also specify the current a device will typically source on its input lines How can you solve this? Figure 2.19 in text

Click to edit Master title style There is no such thing as Digital!!! All signals are really analog It takes a finite amount of time for a signal to travel from one point to another. High speed digital designers need to understand this Timing diagrams show actual AC timings including propagation delay.

Click to edit Master title style Digital Circuit Timing There is a finite amount of time it takes for digital circuits to actually change state Ex. 74LS04 Propagation Delay is 15ns (max) A A’ A Something to think about MHz front side bus has clock period of 1.25 ns Inverter gate has propagation delay of 15ns

Click to edit Master title style Digital Circuit Timing There are several key timing characteristics associated with digital circuits Propagation Delay Setup Time Hold Time Max Clock Frequency Clock pulse high and low times

Click to edit Master title style Propagation Delay Propagation Delay is the time it takes for the output of the circuit to change after the input has changed. Depending on technologies (TTL, CMOS, ECL, etc), propagation delay’s of modern IC’s range from <1ns to ~100ns.

Click to edit Master title style Setup Time The setup time is the time interval immediately preceding the active transition of the CLK signal during which the control input must be maintained at the proper level. If this time is not met, the FF may not respond to the CLK appropriately

Click to edit Master title style Hold Time Hold Time is the time interval immediately following the active transition of the CLK signal during which the synchronous control input must be maintained at the proper level. If this time is not met, the FF may not respond to the CLK appropriately

Click to edit Master title style Clock Frequency Spec’s Max Frequency (Fmax) - This is the highest frequency that may be applied to the CLK input and still have it trigger reliability Clock Pulse High (Twh) and Clock Pulse Low (Twl) Times – These are the minimum time duration that the clock signal must remain low before it goes high (Twl) and high before it returns low (Twh)

Click to edit Master title style Timings How can we ensure each device can talk to the microprocessor? 3 Methods Wait states – figure 3.6 and 3.7 Wait signal – figure 3.5 Buy fast enough parts - $$$

Click to edit Master title style Timings Typical Bus Read Cycle A0-An RD’ D0-Dn Clock uP drives Address bus to start bus cycle uP drives RD low Memory drives data bus uP reads data from bus End of bus cycle T1T2T3

Click to edit Master title style Timings 2-Wait State Bus Cycle A0-An RD’ D0-Dn Clock uP drives Address bus to start bus cycle uP drives RD low Memory drives data bus uP reads data from bus End of bus cycle T1T2T3 Tw

Click to edit Master title style Timings Wait Signal Bus Cycle A0-An RD’ D0-Dn Clock The slow device can assert WAIT as long as it needs, and the uP will wait T1T2T3 WAIT

Backup

Click to edit Master title style Watchdog Timer CPU Watch Dog Data, Address Bus and Cntrl Reset RST Glue logic Restart What kind of glue logic is this?

Click to edit Master title style DMA’s Direct Memory Access (DMA) Circuitry that can read/write data to/from an IO device and memory Independent from processor Need to have arbitration between DMA and processor

Click to edit Master title style DMA RAM IO CPU DMA Address Bus (rd/ wr/) Data Bus DMAREQ Bus ACKBus REQ

Click to edit Master title style DMA Timing A0-An D0-Dn Read DMA Request Bus Request Bus Ack Write IO Device drives the data bus DMA drives the data bus DMA drives IO device address on the bus DMA drives memory device address on the bus