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

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 7.
CMOS Logic Circuits.
The 8051 Microcontroller and Embedded Systems
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 11.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
Introduction of Holtek HT-46 series MCU
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
3.4 Bipolar Logic 1. Diode Logic
EE365 Adv. Digital Circuit Design Clarkson University Lecture #5
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
ECE 331 – Digital System Design Electrical Characteristics of Logic Gates, Circuit Design Considerations, and Programmable Logic Devices.
Digital I/O Connecting to the Outside World
EET 252 Unit 2 Integrated Circuit Technologies
Digital logic families
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 8.
CH111 Chapter 11 CMOS and TTL Circuits By Taweesak Reungpeerakul.
Ch. 9 Interrupt Programming and Real-Time Sysstems From Valvano’s Introduction to Embedded Systems.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
ARM Timers.
System Clocks.
Chapter 4 TIMER OPERATION
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 7.
AT91 Embedded Peripherals
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
EGRE 6311 Midsize Microcontrollers and Microprocessors The 8051 is an example of a small inexpensive microcontroller intended for simple applications.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Memory and Storage Dr. Rebhi S. Baraka
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Logic Gate Specifications Definitions. Currents and Voltages All currents are defined as positive when they flow into the terminal of a logical gate.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
June 9, s Massachusetts Institute of Technology 6.11s: Design of Motors, Generators and Drive Systems Switching Patterns and Simple Implementation.
Solid-State Devices & Circuits
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Chapter Microcontroller
Physical Properties of Logic Devices Technician Series Created Mar
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
ECET 340 Entire Course (All ilabs and Homework) For more classes visit ECET 340 Week 1 HomeWork 1 ECET 340 Week 1 iLab 1 ECET 340.
Components of a typical full-featured microcontroller.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
FOR MORE CLASSES VISIT   ECET 340 Week 1 HomeWork 1  ECET 340 Week 1 iLab 1  ECET 340 Week 2 HomeWork 2  ECET 340 Week 2 iLab.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
ECE 353 Introduction to Microprocessor Systems
Timers and Event Counters
HISTORY OF MICROPROCESSORS
Timer and Interrupts.
ECE 353 Introduction to Microprocessor Systems
ECE 353 Introduction to Microprocessor Systems
PC Mouse operated Electrical Load Control Using VB Application
Introduction to the processor and its pin configuration
Introduction of microprocessor
Project Title EVM IN PIC Under the Guidance of Submitted by.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Introduction to Microprocessors and Microcontrollers
Registers.
8051 Micro Controller.
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.
Presentation transcript:

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

Topics Logic Compatibility Microprocessor peripherals Timers  Periodic  Watchdog  Real-time  ADuC7026 timers Pulse-width modulators (PWM) Direct memory access (DMA)

FET Basics Field effect transistors (FETs) are used as the switching elements in logic gates When turned on, the FET presents a very low impedance to current, like a closed switch When turned off, the FET presents a very high impedance to current, like an open switch There are two ways to construct a FET N-channelP-channel

Logic Outputs Totem-pole Three-state (tri-state) Open-drain

Logic Family Characteristics Voltage V IHmin – minimum input voltage recognized as a logical 1 V ILmax – maximum input voltage recognized as a logical 0 V OHmin – minimum voltage output for a logical 1 V OLmax – maximum voltage output for a logical 0 Current Currents are defined positive in, negative out I OHmax – maximum output current sourced for a logical 1 I OLmax – maximum output current sunk for a logical 0 I IHmax – maximum input current required at a logical 1 I ILmax – maximum input current required at a logical 0 I OZH, I OZL – current drawn/sourced when tri-stated Logic families

Simple Circuit Models Drivers Receivers

DC Noise Margins

Logic Compatibility Static (DC) Compatibility Voltage Current Overvoltage tolerant inputs Dynamic compatibility  Capacitive loading, mutual induction, reflections, etc. Exercises

Timer Peripherals Timer/counter modules used to Generate signals with specified frequency / duty cycle Count external events, measure pulse width Generate absolute delays, periodic interrupts Building a timer peripheral Basic free-running timer Periodic timer enhancements Clock selection and prescaling Adding capture capability

A Basic Free-Running Timer

A Periodic Timer

Clock Selection and Prescaling

Capture Capability

Real-Time Clocks (RTCs) RTCs provide microprocessor systems with absolute time information Absolute time does not necessarily mean calendar/clock time Typically operate from KHz crystal with battery or capacitor back-up power supply Generate periodic interrupts Often contain a small amount of RAM – historically this was where the PC stored its configuration (BIOS) settings since it was 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 microcontrollers and CPU supervisor circuits. Retriggering is 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

ADuC7026 Timers Timer0 A basic periodic timer, intended to be used as the RTOS timer  16-bit counter, free-running or period register  CPU core clock with prescaler  Generates interrupt and/or ADC conversion trigger MMRs

ADuC7026 Timers Timer1 General-purpose timer  32-bit counter  Multiple clock sources with prescaler  Capture register  Binary or H:M:S formats

ADuC7026 Timers Timer2 Wake-up timer  32-bit counter  Can run on 32kHz clocks  Binary or H:M:S format

ADuC7026 Timers Timer3 Watchdog or general- purpose timer  16-bit counter  32kHz clock source  Watchdog timer is reset by writing to T3CLRI MMR Requires pseudo-random sequence in secure clear mode

Timer3 Secure Clear Mode

PWM Peripherals A basic pulse-width modulator peripheral creates a rectangular wave whose duty cycle can be controlled PWM allows us to control the average power delivered to a load without changing the voltage supplied to itaverage power The ADuC7026 contains a very capable 3-phase PWM that is intended to do motor control

DMA Controllers Direct memory access (DMA) controllers are peripherals devices designed to offload data movement from the processor A common use is in servicing peripherals by collecting a frame of data for the CPU to work on, or sending out a frame of data to a peripheral as it needs it To use DMA, we need to Program the DMA controller for the task Processor does other things The DMA controller interrupts the processor when it has completed. DMA controllers usually have an auto-reload feature to do a repetitive task without the CPU having to reconfigure it every time.

DMA Controllers (cont) Typical DMA controllers are programmed with the following information Source address and destination address  Should address be modified at each transfer, and by how much? Transfer size  How many bytes should it transfer each time? Number of transfers Trigger event  What causes the DMA controller to do transfers?

Wrapping Up Homework #4 is due Wednesday, March 21 Reading for next week Textbook 11 ADUC 9-10, 33-36, 43-47, 79-82

Logic Compatibility Exercises For the following logic families, determine compatibility, noise margins, and fan-out. 74ALS driving 74AC 74AC driving 74ALS V OHmin V IHmin V OLmax V ILmax I OHmax I IHmax I OLmax I ILmax 74ALS2.7V2.0V0.5V0.8V-400uA+20uA+8.0mA-200uA 74AC4.9V 3.76V 0.7*V CC 0.1V 0.7V 0.3*V CC -50uA -24mA +1uA+50uA +24mA -1uA Note: For 74AC, top line is with CMOS load, bottom line is with TTL load.

TinyLogic TM and Little Logic

Timer0 MMRs T0LD – load counter value T0VAL – read counter value T0CLRI – clear timer interrupt T0CON - Configuration

DS1375 RTC

MAX6323

PWM DAC Use PWM digital output driver LPF removes most of AC components