Hardware interfacing  Supplying Clock & Power  Buses and bridges  DC/AC analysis  Timing analysis  Design considerations  Design for worst case.

Slides:



Advertisements
Similar presentations
8086/8088 Hardware Specifications (Chapter 8)
Advertisements

CMOS Logic Circuits.
Selected Design Topics. Integrated Circuits Integrated circuit (informally, a chip) is a semiconductor crystal (most often silicon) containing the electronic.
Parul Polytechnic Institute
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Semiconductor Memory Design. Organization of Memory Systems Driven only from outside Data flow in and out A cell is accessed for reading by selecting.
Khaled A. Al-Utaibi 8086 Bus Design Khaled A. Al-Utaibi
H. Huang Transparency No.5-1 The 68HC11 Microcontroller Chapter 5: Operation Modes and Memory Expansion The 68HC11 Microcontroller Han-Way Huang Minnesota.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
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
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11.
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
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
MICROPROCESSOR BASED SYSTEM DESIGN
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 Chapter 5: Datapath and Control CS 447 Jason Bakos.
GURSHARAN SINGH TATLA PIN DIAGRAM OF 8085 GURSHARAN SINGH TATLA
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
8254 Programmable Interval Timer
CompE 460 Real-Time and Embedded Systems Lecture 5 – Hardware Fundamentals.
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
The 8253 Programmable Interval Timer
MICROPROCESSOR INPUT/OUTPUT
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Khaled A. Al-Utaibi  Interrupt-Driven I/O  Hardware Interrupts  Responding to Hardware Interrupts  INTR and NMI  Computing the.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
8254 Timer.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
Computer Architecture Lecture 6 by Engineer A. Lecturer Aymen Hasan AlAwady 1/12/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
8086/8088 Hardware Specifications. Objectives Describe the functions of all 8086/8088 pins Understand DC characteristics and fan out Using the clock generator.
MACHINE CYCLE AND T-STATE
1 Expanded Modes, Bus, External Memory Today: First Hour: Expanded Modes, Bus, Timing –Section of Huang’s Textbook –In-class Activity #1 Second.
بسم الله الرحمن الرحيم MEMORY AND I/O.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
Multiplex of Data and Address Lines in 8088 Address lines A0-A7 and Data lines D0-D7 are multiplexed in These lines are labelled as AD0-AD7. –By.
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.
Microprocessors 3 Buses, Addresses and Machine Cycles 1 Modified April 2011 ©Paul R. Godin prgodin gmail.com.
Gandhinagar Institute of Technology
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
The 8085 Microprocessor Architecture
ECE 353 Introduction to Microprocessor Systems
Memory Systems 7/21/2018.
The 8085 Microprocessor Architecture
COMP2121: Microprocessors and Interfacing
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
Timing Analysis 11/21/2018.
Programmable Interval timer 8253 / 8254
Programmable Interval timer 8253 / 8254
The 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.
The Programmable Peripheral Interface (8255A)
Presentation transcript:

Hardware interfacing  Supplying Clock & Power  Buses and bridges  DC/AC analysis  Timing analysis  Design considerations  Design for worst case

Supplying power  Power circuitry –What voltages do you need? –How much power? –DC2DC –Battery power –Filter to bypass Power Supply Noise ( microfarad) –Avoid ground loops.  Power saving techniques –Power consumption proportional to the clock frequency –Choice of components –Power saving modes

Supplying clock  Frequency –Minimum (some devices may require minimal clock in order to maintain internal state) –Maximum  Duty cycle –Usually symmetrical but may be asymmetrical as well

Buses and bridges  Focus on the microprocessor bus and its operation –General bus operations –Device addressing and decoding –Timing diagrams and timing requirements –External devices: PRU, memory, other support chips  Bridge is device transparently connecting two or more buses. –Buses can be different or the same Example PCI/PCI or PCI/EISA

Buses and bridges General bus operation –Processor places desired peripheral's address onto address bus –Processor (or peripheral) places data onto data bus for a write (read) operation –Peripheral (processor) gates the data into its internal registers to complete the operation –Operation is directed by the various control lines that are included in the bus Clock signals Address strobe / latch Device enable signals Data direction signals -- read vs. write operations Type of reference -- standard or memory mapped I/O -- IO/M* Data ready

Timing analysis  Just as in comedy, timing is essential to the success of microcomputer design  When timing or loading problems show up in design they usually appear as intermittent failures or sensitivity to power supply fluctuation, temperature and so on.

Timing diagram Notation Convention

Rise and Fall Times

Timing analysis  Propagation delays –Asymmetrical for high to low and low to high transitions –Setup and hold time Setup time is amount of time a sampled input signal must be valid and stable prior to a clock signal transition Hold time is amount of time that sampled signal must be held valid after the clock transition occures –If setup or hold time requirement not met it causes metastability – state unpredictable and may be unstable

Timing diagrams  System clock –Bus transitions occur in relation to system clock –Called the E clock in 68HC11 1/4 crystal frequency Low - internal process High - reading or writing data  Some definitions: –Setup time : time for a device to change its output in response to an input change –Hold time: length of time a device will maintain its last output in response to a request to change it

Example

Fan-Out and Loading analysis DC and AC  The main question can this output drive all the inputs I want connect to it?

DC Specifications

DC  The maximum current that can be produced by output –Minimum output low (sink) current for valid 0 output voltage - I OLmin –Minimum output high (source) current for a valid one output voltage - I OHmin  Maximum current required to drive an input –Maximum input low current for valid zero input voltage – I ILmax –Maximum input high current for a valid one input voltage - I IHmax

AC  C L – The load capacitance that an output is specified to drive  C in – Maximum input capacitance of a driven input load  C stray – Wiring and stray capacitance can be approximated to be in the range of 1 to 2 picofarads per inch of wiring on a typical PC board.  Driving device spec C L > actual C load =C in1 + C in2 + …+C wiring

68HC11 Memory cycle

Note that in the HC11  Address information is provided to the external device (using the multiplexed address/data bus) in the low half cycle of the E-clock  Data to be read/written is placed on the data bus only in the high half cycle of the E-clock  All read and write operations MUST take place in 1 E-cycle –External devices and circuitry must be designed to meet this requirement –Cannot use “wait states” as you can in other microprocessor systems 8085: Slower devices can use READY input to request wait states Processor maintains address, data, and control signals

Expanded multiplexed mode  68HC11 supplies external bus signals –Port B = A15-A8 –Port C = A7-A0 multiplexed with D7-D0  Address usually must be valid during entire operation –Need to latch A7-A0 (using 74HC373, for example)  Use external logic to derive control signals –Chip enable/select –Read/Write –Output enable

Error detection and correction  Errors –Soft error –Hard error  Confidence Checks –Parity –Hamming code –Checksum –CRC

Test study  consider the following very general circuit layout that interfaces the 68HC11 to a 6264 Fast Static Ram (8k x 8)

Example  is used as the address latch to “save” the lower 8 bits of the address that are on Port C only during the first half of the E-clock cycle  Discrete logic is used to derive the write and read enable signals for the memory chip (W* and G*) –Both can only be asserted in the second half of the E-clock cycle  is used for address decoding to generate a memory chip enable (chip select) signal (E1*) –Since the E-clock enables the 138, the decoder is only active in 2nd half cycle –Memory chip can not be enabled in the 1st half cycle

Timing relationship  Timing relationships are derived by comparing the timing diagrams of the memory chip and the HC11 and considering the external circuitry where necessary.  Read operation HC11 E-clock goes low Address information placed on address bus, AS pulsed to trigger address latch E-clock goes high HC11 expects data to be placed on data bus E-clock goes low again and process repeats

Timing relationship  Read operation HC11 –HC11 expects data to be placed on the data bus before E-clock goes low –HC11 expects data to remain on data bus until E-clock goes low –External device must release data bus before HC11 places next address on address bus –Exact timing requirements are given in table

Timing relationship  6264 timing: –Outputs data after receiving the address and the E* and G* signals –Timing constraints How long does 6264 take to output data after receiving address and enable signals? How long does it keep data on the bus? Timings given in data sheet –We also have to take into account the propagation delays due to the external circuitry Decoder (74138): PD DEC = 25 ns Inverter (7404): PD INV = 15 ns Latch (74573): PD LATCH = 23 ns Nand (7400): PD NAND = 15 ns Values taken from data sheets

–Suggestion: For each timing parameter given in the RAM data sheet, draw a new timing diagram that shows the relation between the RAM’s signals and the HC11’s signals –Example: t ELQV This is the time from when the Enable signal (E1*) goes low until the data is placed on the data bus (assumes the address is already available and that the output enable G* is already low) For this circuit, the E1* is connected to the output of the 138 decoder, so it changes state after the inputs to the decoder change Inputs to the decoder are A15-A13 and the E-clock So, draw a timing diagram that shows E-clock, A15-A13, E1*, and the data bus Does the RAM put the data on the bus before the HC11 requires it?

Read operation

Timing relationships for read operation 6264HC11 t ELQV (CE to data valid) t DHR - PD inv, t DHR -PD dec, < t MAD -PD dec

Write operation - timing  HC11: –Sequence of events E-clock goes low Address placed on address bus, AS pulsed to latch it E-clock goes high HC11 places data on data bus E-clock goes low and cycle repeats  6264: –Needs address, data, E*, and W* signals Write occurs only when both E* and W* are low Data must be held on bus until either E* or W* rises –We need to make sure that HC11 places data on data bus in time for RAM to get it HC11 holds data long enough for write to complete

Timing relationship for write operation 6264HC11 t AVAV < t AVM + t r + PW EH + t f + t AH - PD latch t AVEH < t AVM + t r + PW EH -PD latch + PD dec t AVWH < t AVM + t r + PW EH -PD latch + PD nand t AVEL < t AVM + t r - PD latch + PD dec t ELEH < PW EH t ELWH < PW EH - PD dec + PD nand

Timing operation for write operation (cont’d) t DVEH < PW EH - t DDW + PD dec t DVWH < PW EH - t DDW + PD nand t EHAX < t AH - PD dec t WHAX < t AH - PD nand t EHDX < t DHW - PD dec t WHDX < t DHW - PD nand

Example modification Address Data E* W* G* 8K x 8 RAM 74HC138 Y2 Y3 A0 A1 A2 CS1 CS2* CS3* 8 13 A12-A0 R/W* A13 A14 E A15

Interrupts  Edge or Level?  Interrupt aggregation and hierarchy –Open collector –Using external logic Latch and Status Make sure you latch it only once at source Make sure you can mask/unmask on each level

Assignment  Calculate what is the base address of 6164 in the circuit from Slide 22 and Example modification.Slide 22Example modification