Microcontrollers - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

Microcontrollers

Description:

Descended from Motorola 6800 processor. Still active product, but not ... Remap internal memory. May only be done once and within 64 cycles of reset. OPTION ... – PowerPoint PPT presentation

Number of Views:40
Avg rating:3.0/5.0
Slides: 18
Provided by: darrin4
Category:

less

Transcript and Presenter's Notes

Title: Microcontrollers


1
Microcontrollers
  • CPU
  • Memory
  • I/O capabilities
  • Specialized peripherals
  • M68HC11
  • Descended from Motorola 6800 processor
  • Still active product, but not recommended for new
    designs
  • http//www.freescale.com/webapp/sps/site/taxonomy.
    jsp?nodeId01624684498635

2
M68HC11 A and E Families
3
M68HC11 Block Diagram
4
M68HC11E
  • CPU
  • Memory
  • RAM
  • ROM
  • EEPROM
  • I/O
  • Timer(s)
  • Serial I/O
  • A/D Converter

5
Multimode Pins
  • Many pins have multiple names
  • Pins can be connected internally to two or more
    functions
  • Use of some feature may preclude use of another
  • Example
  • PA7/PAI/OC1
  • PA7 bidirectional I/O pin
  • PAI pulse accumulator input
  • OC1 Output compare 1
  • Pins usage depends on operating mode or register
    settings

6
68HC11 Processor Mode
  • Determined at reset
  • State of MODB and MODA pins
  • Latched state can be read from HPRIO register
    (0x103C)

7
Single Chip Mode
  • Stand-alone microcontroller mode
  • Code is executed from internal ROM/EPROM
  • Reset and interrupt vectors are at 0xFFCO
    0xFFFF
  • All I/O port are available
  • Multimode pin restrictions still apply

8
Expanded Multiplexed Mode
  • Configured with an external address and data bus
    to interface to addition memory and peripherals
  • Sacrifice two I/O ports (B and C)
  • Address bus 16 bits 216 addresses
  • Data bus 8 bits

9
Expanded Mode Connections
10
Test Mode
  • Special mode for prototyping and testing
  • Less-restrictive expanded bus mode
  • Reset and interrupt vectors mode to EEPROM at
    0xBFC0 0xBFF0

11
Bootstrap Mode
  • Special mode
  • Less-restrictive single chip mode
  • Activate a small internal ROM at 0xBF40 0xBFFF
  • Contains a program which will download a small
    program into internal RAM via serial link (SCI)
  • Will then execute downloaded program

12
Memory Maps
13
Mode Selection
  • Varies by need
  • Embedded Systems
  • Select normal mode (single-chip or expanded)
  • Perhaps use special mode to start and switch to a
    normal mode early
  • Development Systems
  • Use a special mode for flexibility
  • Interrupt vectors in RAM
  • Can change some registers that cannot normally be
    changed
  • Boot-loader mode can be useful

14
HPRIO Register
  • SMOD Reflects inverse of MODB input pin at
    reset
  • May be cleared by software control from a special
    mode, changing the mode, but never set.
  • MDA Status of MODA pin at reset
  • May be written when SMOD is set (special mode)

15
Other Config Registers
  • INIT
  • Remap internal memory
  • May only be done once and within 64 cycles of
    reset
  • OPTION
  • Turn on I/O subsystems

16
(No Transcript)
17
Homework
  • What mode(s) is the Handy Board capable of
    operating in?
  • What mode(s) will we likely use? Why?
  • Due Thursday at beginning of lecture.
Write a Comment
User Comments (0)
About PowerShow.com