Logic Compatibility - Introduction to Microprocessor Systems - Lecture Sli, Lecture notes of Computer Science

These are the Lecture Slides of Introduction to Microprocessor Systems which includes Microprocessor, Organization, Programming, Programming Language Characteristics, High Level Language, Assembly Language, Machine Language, Assembler Functions, Mnemonic etc. Key important points are: Logic Compatibility, Microprocessor Peripherals, Timers, Periodic, Watchdog, Real Time, Timers, Pulse Width Modulators, Direct Memory Access, Field Effect Transistors

Typology: Lecture notes

2012/2013

Uploaded on 03/23/2013

dhruv
dhruv 🇮🇳

4.3

(12)

194 documents

1 / 29

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Topics
Logic Compatibility
Microprocessor peripherals
Timers
Periodic
Watchdog
Real-time
ADuC7026 timers
Pulse-width modulators (PWM)
Direct memory access (DMA)
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d

Partial preview of the text

Download Logic Compatibility - Introduction to Microprocessor Systems - Lecture Sli and more Lecture notes Computer Science in PDF only on Docsity!

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-channel P-channel

Logic Family Characteristics

• Voltage

  • V (^) IHmin – minimum input voltage recognized as a logical 1
  • V (^) ILmax – maximum input voltage recognized as a logical 0
  • VOHmin – minimum voltage output for a logical 1
  • VOLmax – 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 Docsity.com

Simple Circuit Models

• Drivers

• Receivers

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 Periodic Timer

Clock Selection and Prescaling

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 a small amount of RAM –

historically this was where the PC stored its

configuration (BIOS) settings since it was non-

volatile.

• Dallas Semiconductor DS1375 Docsity.com

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 Docsity.com

ADuC7026 Timers

• Timer

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

ADuC7026 Timers

• Timer

  • Wake-up timer
    • 32-bit counter
    • Can run on 32kHz clocks
    • Binary or H:M:S format

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 it

• The ADuC7026 contains a very capable 3-phase PWM

that is intended to do motor control