ECE 353 Introduction to Microprocessor Systems

Slides:



Advertisements
Similar presentations
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 10.
Advertisements

Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
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
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11.
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.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
The 8051 Microcontroller architecture
8254 Programmable Interval Timer
System Clocks.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
ECE 353 Introduction to Microprocessor Systems Discussion 8.
The 8253 Programmable Interval Timer
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.
8254 Timer.
EFLAG Register of The The only new flag bit is the AC alignment check, used to indicate that the microprocessor has accessed a word at an odd.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 8.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.
Chapter Microcontroller
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني The 8085 Microprocessor Architecture.
16F877A.
Why are Timer Functions Important?
EEE /INSTR/CS F241 ES C263 Microprocessor Programming and Interfacing
The 8051 Microcontroller architecture
Timers and Event Counters
HISTORY OF MICROPROCESSORS
The 8085 Microprocessor Architecture
16.317: Microprocessor System Design I
Microprocessor VIVA/Interview Questions And Answers
Timer and Interrupts.
ECE 353 Introduction to Microprocessor Systems
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Introduction to the processor and its pin configuration
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Memory Systems 7/21/2018.
The 8085 Microprocessor Architecture
4-Integrating Peripherals in Embedded Systems
Programmable Interval Timer
Programmable Interval Timer
AVR Addressing Modes Subject: Microcontoller & Interfacing
Dr. Michael Nasief Lecture 2
8086/8088 Hardware Specifications
8085 Microprocessor Architecture
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.
8253 Timer In software programming of 8085, it has been shown that a delay subroutine can be programmed to introduce a predefined time delay. The delay.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Architecture of Microprocessor (Intel 8085) Unit-I
Introduction to Microprocessors and Microcontrollers
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
Timers.
Programmable Interval timer 8253 / 8254
8085 Microprocessor Architecture
Memory Basics Chapter 8.
Programmable Interval timer 8253 / 8254
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
The 8085 Microprocessor Architecture
第四章 80386的存贮器和输入/输出接口 作业:P335 5,7,13,17,21,25,36,37,41,44,45,46,48,52,65 21:46.
8051 Micro Controller.
Overview 1. Inside a PC 2. The Motherboard 3. RAM the 'brains' 4. ROM
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.
Sequential Logic.
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Programmable Interval Timer
Presentation transcript:

ECE 353 Introduction to Microprocessor Systems Week 10 Michael J. Schulte

Topics System Timing Bus Timing Time Measurement 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 Execution time Task allocation Real-time systems Soft real-time versus hard real-time 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 setting READY signal Normally ready Normally not-ready External circuits CSU RDY setting

Memory Device Timing Read Cycle Write 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

80C188EB Timing Compatibility Need to determine if devices are compatible with the microprocessor at the selected clock speed. Want to ensure that all system timing constraints are met at minimal cost. Two basic timing issues to resolve: Setup and Hold Times Latching information (inputs) Output Delay and Float Times State changes (propagation delays) Turning drivers on and off (outputs)

Assessing Timing Compatibility Need to know whether CPU will operate with the TAA for given device. (read cycle) Address becomes valid at start of T1 Data is latched by CPU at start of T4 To get an accurate TAVDV, 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 & 2

System Timing Compatibility Need to account for all delays in a system to assess timing compatibility. Consider the system in Fig 13.5-2. 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 timings

System Timing Compatibility Consider again the system in Fig 13.5-2. Analyzing write cycle timing. TW, TDW, TDH TASW, TAW, TCW TWR Device characteristics are just a part of timing Line/device capacitance and driver slew rates Transmission line effects Impedance mismatch and reflections Skew and trace length mismatch Signal integrity Read Cycle A.C. Specs 1 , 2 Relative timings

80C188EB Timer/Counter Unit Timer/counter modules used to Generate signals with specified frequency / duty cycle Count external events, measure pulses Generate absolute delays, periodic interrupts Three independent timer/counters 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

80C188EB Timer/Counter Unit Timers 2 is much more limited. Operated through PCB registers T2CON, T2CNT, T2CMPA 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. 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) RTCs provide microprocessor systems with absolute time information Absolute time does not necessarily mean calendar/clock time Typically operate from 32.768KHz crystal with battery or capacitor back-up power supply Generate periodic interrupts Often contain small amount of RAM – historically this was where the PC stored its configuration (BIOS) settings since it is non-volatile. Dallas Semiconductor DS1375

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 a nonmaskable interrupt (NMI). Maxim MAX6323/MAX6324

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. 13.5-2

TxCON Part 1

TxCON Part 2

T2CON

Timer/Counter Block Diagram

Timer 0/1

Timer Modes

Timer 0/1 Flowchart

Timer 0/1 Flowchart

Frequency Measurement

DS1375 RTC

MAX6323

82C54 PIT/C