ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11.

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems
Advertisements

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 10.
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
ECE 2211 Microprocessor and Interfacing Chapter 8 The 8088/8086 Microprocessors and their memory and I/O interfaces Br. Athaur Rahman Bin Najeeb Room.
Engineering 4862 Microprocessors Lecture 22 Cheng Li EN-4012
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Hardware interfacing  Supplying Clock & Power  Buses and bridges  DC/AC analysis  Timing analysis  Design considerations  Design for worst case.
SYSTEM CLOCK Clock (CLK) : input signal which synchronize the internal and external operations of the microprocessor.
Microprocessor and Microcontroller
Processor System Architecture
Memory Basics. 8-1 Memory definitions Memory is a collection of cells capable of storing binary information. Two types of memory: –Random-Access Memory.
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
5-1 Timer/Counters In many microprocessor systems we need to:  count logic pulses  measure the frequency of signals  measure the period of pulses 
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Chapter 6 Memory and Programmable Logic Devices
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
The 8051 Microcontroller architecture
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
PIT: Programmable Interval Timer
ARM Timers.
System Clocks.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
8254 SOFTWARE PROGRAMMABLE TIMER/COUNTER
ECE 353 Introduction to Microprocessor Systems Discussion 8.
8086/8088 Hardware Specifications A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
The 8253 Programmable Interval Timer
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
Timers.
Minimum System Requirements Clock Generator Memory Interfacing.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
AT91 Memory Interface. 2 Features –Up to 8 programmable chip select lines –Remap Command allows dynamic exception vectors –Glue-less for both 8-bit and.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
8254 Timer.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Block diagram of 8086.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 8.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Chapter Microcontroller
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
VHDL Models For Memory And Busses 구 본 진.
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing
The 8051 Microcontroller architecture
The 8085 Microprocessor Architecture
Timer and Interrupts.
ECE 353 Introduction to Microprocessor Systems
ECE 353 Introduction to Microprocessor Systems
Memory Systems 7/21/2018.
The 8085 Microprocessor Architecture
AVR Addressing Modes Subject: Microcontoller & Interfacing
Dr. Michael Nasief Lecture 2
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
Timer/Counter Modified from Dr. Lam Phung’s Slides.
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.
Memory Basics Chapter 8.
The 8085 Microprocessor Architecture
Memory Basics Chapter 7.
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:

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11

Topics System Timing Hardware/Software trade-offs Execution time Bus Timing WAIT states Memory device timing parameters Timing compatibility Time Measurement Delay loops Hardware Timers

System Timing Hardware/Software trade-offs Soft vs. hard real-time systems Task allocation Microprocessor clock frequency Execution time Affected by numerous variables Difficult to predict Sample Instructions Delay loops

WAIT States WAIT states are used to lengthen the bus cycle for slower devices Extra T3 states are run WAIT state control CSU WS settingWS READY signal  Normally ready  Normally not-ready  External circuits External circuits CSU RDY settingRDY

Memory Device Timing Read Cycle TAA / TOH TACS / TCHZ TOE / TOHZ TRC Effect of grounding device’s /CS Write Cycle /WE vs. /CS controlled Timing Parameters Write cycle

27C512 EPROM

HM624100HC SRAM

Timing Compatibility Need to determine if devices are compatible with the microprocessor at the selected clock speed. Want to use the cheapest (usually the slowest) parts we can get by with. Two basic timing issues to resolve: Setup and Hold Times Setup and Hold  Latching information (inputs) Output Delay and Float Times Output Delay and Float  Turning drivers on and off (outputs)

Assessing Timing Compatibility Need to know whether CPU will operate with the TAA for given device. (read cycle)read cycle Address valid at start of T1 Data is latched by CPU at start of T4 To get an accurate T AVDV, must include the delays for the address becoming valid, and include the setup time for data. Address valid delay relative to CLKOUT edge Setup time required relative to CLKOUT edge A.C. Specifications 1 & 212

System Timing Compatibility Need to account for all delays in a system to assess timing compatibility. Consider the system in Fig Fig Analyze the read timing with regard to: TACC – address access time TCE – chip enable to valid data TOE – output enable to valid data TDF – output hold time How do wait states impact the timing? Read Cycle A.C. Specs 1, 2 Relative timingsCycle12

System Timing Compatibility Consider the system in Fig Fig Analyzing write cycle timing.write cycle TW, TDW, TDH TASW, TAW, TCW TWR This is not the entire story – if there is excessive capacitance, long wires, etc., you must account for the delays. Other bus effects

80C188EB Timer/Counter Unit Three independent timer/counters Timer/counter modules used to Generate signals with specified frequency / duty cycle Count external events, measure pulses Generate absolute delays, periodic interrupts Timer 0/1 Modes of operation  Continuous / Non-continuous  Single or Dual Maximum Count  Input Sources Flowchart Configured and operated through PCB registers  T0CON, T0CNT, T0CMPA, T0CMPB T0CON

80C188EB Timer/Counter Unit Timers 2 is much more limited. Operated through PCB registers  T2CON, T2CNT, T2CMPA, T2CMPB T2CON Useful as a prescaler or as a periodic interrupt source. Timer applications Frequency measurement. Waveform generation.

82C54 PIT/C Provides additional timer/counter resources for microprocessor system.timer/counter resources Appears as 4 byte-wide registers  Control register (3)  Timer registers (0,1,2) Program by writing 3 bytes in sequence  Control byte  Timer word Three independent 16-bit counters BCD or binary DC-10MHz input range Multiple modes of operation

Real-Time Clocks RTCs provide microprocessor systems absolute time information Typically operate from KHz crystal Battery back-up Periodic interrupts Often contain small amount of RAM – historically this was where the PC stored its configuration settings since it is non-volatile. Dallas Semiconductor DS12887

Watchdog Timers Watchdog timers are used to guard a system against lock-up due to software errors or soft-failures in hardware. Often included in CPU supervisor circuits. Retriggering usually done in the main program loop. Watchdog output can be used to reset the CPU or as an NMI. Maxim MAX6323/MAX6324

Wrapping Up Homework #6 due Friday, 11/30/2001 Exam #2 on Tuesday, 11/20/2001 at 7:15pm in 132 Nolan (same as Exam #1)

WAIT States

WAIT State Generator

Chip- Select Start Reg

Chip- Select Stop Register - Part 2

Memory Device Read Cycle

Memory Device Write Cycle

Instruction Execution Times

Input Setup and Hold

Output Delay and Float

Read Cycle

A.C. Specs (1)

A.C. Specs (2)

Relative Timing

Write Cycle

Fig

TxCON Part 1

TxCON Part 2

T2CON

Timer/Counter Block Diagram

Timer 0/1

Timer Modes

Timer 0/1 Flowchart

Frequency Measurement

DS12887 RTC

MAX6323

82C54 PIT/C