ECE331 Introduction (KEH)1 ECE331 Embedded System Design Hardware Interfacing and Programming Featuring the FreeScale (formerly Motorola) MC9S12Cxx Microcontroller.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
PCEL4303 MICROPROCESSOR & MICRO CONTROLLERS MODULE - I (10 hours) Microprocessor Architecture: Microprocessor and Microcomputer Architecture, Pins & Signals,
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Chapter 1 The 8051 Microcontroller
CHAPTER 1 THE 8051 MICROCONTROLLERS. Microcontroller vs. General- Purpose Microprocessor General-purpose microprocessors have ◦ No RAM ◦ No ROM ◦ No I/O.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Microcontroller – PIC – 4 PIC types PIC architecture
Slide 1 Freescale Semiconductor. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Railway Foundation Electronic, Electrical and Processor Engineering.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
The 8051 Microcontroller Architecture
ASPPRATECH.
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Microcontroller: Introduction
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The domestic refrigerator-An example A car door mechanism.
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
INTRODUCTION TO MICROCONTROLLER. What is a Microcontroller A microcontroller is a complete microprocessor system, consisting of microprocessor, limited.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Curriculum Development for ENGR 290 Introduction to Microcontroller
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
MICROCONTROLLERS. What is a microcontroller? A microcontroller is a nifty little gadget that houses a microprocessor, ROM (Read Only Memory), RAM (Random.
Input/Output mechanisms
E0001 Computers in Engineering1 The System Unit & Memory.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
Computer Architecture and Organization Introduction.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Micro processor and Micro Controllers
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
Internal Input/Output Devices (I/O Subsystems)
Other Chapters From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
What is a Microprocessor ? A microprocessor consists of an ALU to perform arithmetic and logic manipulations, registers, and a control unit Its has some.
Presented by Sadhish Prabhu
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
ECE 371 Microprocessor Interfacing
Chapter Microcontroller
Components of a typical full-featured microcontroller.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
8051 Microcontroller Tutorial and Architecture with Applications.
Networked Embedded Systems Sachin Katti EE107 Spring 2016 Lecture 3 Microcontrollers.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Introduction to Microcontroller Technology
Voice Controlled Robot by Cell Phone with Android App
Popular Microcontrollers and their Selection by Lachit Dutta
ECE331 Embedded System Design
ECE331 Embedded System Design
UNIT – Microcontroller.
Microcontroller Based Digital Code Lock
ECE331 Embedded System Design
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
Introducing the PIC Mid-Range Family and the 16F84A
Five Key Computer Components
Presentation transcript:

ECE331 Introduction (KEH)1 ECE331 Embedded System Design Hardware Interfacing and Programming Featuring the FreeScale (formerly Motorola) MC9S12Cxx Microcontroller Family

ECE331 Introduction (KEH) 2 Lecture 1. Microcontrollers and the Freescale MC9S12

ECE331 Introduction (KEH) 3 What is a Microcontroller?  Early microprocessors were merely CPU’s (central processing units).  Before the microprocessor could be useful, it had to be made into a “full microcomputer” by surrounding it on a PC board with several additional chips that provided:  Program Memory (ROM -Read Only Memory)  Data Memory (RAM – Random Access Memory, also called Read/Write Memory) - Input and Output Ports (I/O peripherals) - Address Decoding Logic needed to locate the ROM, RAM, and I/O ports into specific address ranges in the microprocessors address space.

ECE331 Introduction (KEH) 4  The “microcontroller” was a natural outgrowth of this original board-level microcomputer technology, where the microprocessor, ROM, RAM, and I/O ports were integrated onto a single chip. Initially called the “Single-Chip Microcomputer”, the name “microcontroller” soon became more popular. Those who designed products that used microcontrollers to control their designs became known as “embedded system designers”.  With the advent of microcontrollers, computerized control of simple “low-end” products such as VCRs, TVs, Ski Boots, light dimmers, smart soldering irons, Barbie Dolls,….etc, could now be achieved at the “chip-level” rather than at the board level! This resulted in much cheaper, much smaller, and much more reliable computer-controlled products!  With “large quantity” part costs ranging from only $2 - $30, the microcontroller has justifiably been called “The bargain component of the century”!

ECE331 Introduction (KEH) 5 Trends in Automotive Electronics Car component cost will increase from $940 per car in 1990 to $1,720 in 2005 By 2005, 30% car component cost will be for electronic components Complex electronic systems on car  Volvo S80 has 18 major electronic control units (> 30 microcontrollers)  It has two in-vehicle interconnection networks  A million lines of C code

ECE331 Introduction (KEH) 6 One Subset of a Modern Vehicle’s Network Expanding Automotive Electronic Systems, IEEE Computer, Jan. 2002

ECE331 Introduction (KEH) 7 By-wire systems replace mechanical systems By-wire cars turn the corner, IEEE Spectrum, April 2001

ECE331 Introduction (KEH) 8 Electronic Wedge Brake (EWB) at 12V from Siemens VDO Building Safer Cars, IEEE Spectrum, Jan Wedge brake design boosts by-wire stopping performance By Bernd Gombert, Siemens VDO Automotive DesignLine, Apr 06, 2006 (3:22 AM) from Planet Analog Automotive DesignLine

ECE331 Introduction (KEH) 9 Building safer cars Building Safer Cars, IEEE Spectrum, Jan. 2002

ECE331 Introduction (KEH) 10 Motorola MPC565 for engine control Diagnose what ails your auto, EDN Magazine, December 2001

ECE331 Introduction (KEH) 11 A “fly in the ointment” The problem in designing a general-purpose microcontroller is anticipating just what I/O peripherals are needed by the largest number of customers, how much RAM, and how much ROM and other features should be integrated onto the very “limited real-estate” available on a microcontroller chip. A microcontroller with a certain set of I/O features desired by one company might not have the I/O features that are needed by another company!

ECE331 Introduction (KEH) 12 Emergence of Microcontroller “Families” Manufacturers such as Intel, Motorola (now called “FreeScale”) who had been accustomed to making just one generic microprocessor suddenly found themselves forced into making many different variants of the same microcontroller to match the various I/O needs of their various major customers! Microcontroller families with a bewildering number of “family members” seemed to spring up overnight! For example, the development of the first microcontrollers (such as the Motorola MC68HC11) was largely driven by the needs of the automotive industry.

ECE331 Introduction (KEH) 13 A “Rose-Hulman” Connection! Back in the 1980’s, one of my former RHIT students, Al Shipp, was working for Delco Electronics in Kokomo, IN. Delco made the electronics for General Motors (GM). Al negotiated with the architect of the 6801 microprocessor, Joel Boney, at Motorola in Austin, Texas to integrate onto a single chip a 6801 CPU core with specific I/O peripheral devices needed by GM for automotive engine control. Besides selling the resulting chip to GM for engine control, Motorola decided to sell the chip as a general-purpose microcontroller. Thus was the M68HC11 born!

ECE331 Introduction (KEH) RHIT Commencement The commencement address was delivered by Al Shipp, vice president of enterprise sales for Apple Computer Inc. Shipp is a 1978 Rose-Hulman electrical engineering graduate. He is responsible for business development to expand the worldwide market for Apple Computer Products. Shipp told the graduates that innovation is the key if American businesses, the government, and our country are to continue to prosper. The very next month, Apple announced the I-phone!

ECE331 Introduction (KEH) 15 Features Requested by the Automotive Industry On-chip, flexible “multi-channel hardware timer” suitable for simultaneously measuring pulse intervals from different optically-encoded tachometers to determine wheel and crankshaft rotational speeds; for generating precisely timed pulses (for spark and valve control); and also for generating pulse-width modulated (PWM) waveforms for dc motor speed control. Multiple-channel Analog-to-Digital (ATD) conversion for converting temperature, pressure, and other analog sensor input data

ECE331 Introduction (KEH) 16 Serial synchronous (clocked) communication capability --- Serial Peripheral Interface (SPI) to support long shift-register loops for input and output of dashboard data. “RS232” Serial asynchronous (unclocked) communication interface (SCI) capability suitable for interprocessor communication and easy connection to diagnostic service computers. Watchdog “Computer Operating Properly” (COP) timer for resetting the CPU in the event that a noise glitch “derails” the microcontroller’s program.

ECE331 Introduction (KEH) 17 Nonvolatile RAM (now “Flash programmable ROM” programmable memory) for storing calibration constant and configuration data. ROM memory (now “Flash programmable ROM”) for storing the control program and also constant data such as lookup tables and ASCII text message strings. RAM (read/write) memory for storing temporary data (program variables) 6801 (now called CPU12) CPU core with flexible interrupt structure for efficient response to real-time I/O events. Low cost, easy to manufacture, yet high reliability!

ECE331 Introduction (KEH) 18 MC9S12Cxx family is a derivative of the MC68HC12 microcontroller, which is in turn, an improved version of the original MC68HC11. 9S12Cxx family has “inherited” all the features listed above, as shown on the next slide. Note the following features of the 9S12C128 that we will use in this class:  128 kBytes Flash memory for program AND calibration data. Note the number of kBytes of on-chip Flash memory corresponds the “xx” in the 9S12Cxx part number!  4kBytes RAM for program variable storage  HCS12 (CPU12) 8/16 bit CPU Core  COP watchdog  SPI (Serial Peripheral Interface) for synchronous serial I/O  SCI (Serial Communication Interface) for asynchronous serial I/O  8-Channel ATD Converter  Timer Module (Input Capture and Output Compare functions)  PWM (Pulse Width Modulation) Module

ECE331 Introduction (KEH) 19

ECE331 Introduction (KEH) 20 Additional Features of 9S12C Family  General-purpose I/O on any I/O pins not being used for specialized I/O functions.  BDM (background debug mode)  Expanded Bus “microprocessor mode” (where time- multiplexed CPU data, address, and control bus brought out on Ports A, B, and E to permit adding additional I/O and memory functions.  Clock Multiplier Phase Locked Loop (PLL) allows microcontroller to be internally clocked at an integral multiple of the applied crystal oscillator frequency.  CAN serial bus controller implements a two-wire differential serial bus that is widely used in the automotive industry.  Keypad “interrupt on change” (Port J)

ECE331 Introduction (KEH) 21 9S12C128 Reference Material Our textbook The HCS12/9S12: An Introduction to Software & Hardware Interfacing, Han-Way Huang, Thomson Delmar Learning. Assorted Freescale PDF Documents available for download from the ECE331 class AFS folder. Please download this entire PDF documents folder onto your laptop PC now.)

ECE331 Introduction (KEH) 22 Additional Reference PDF files The ECE331 Class AFS folder “9S12DOCs” contains more than TWENTY! 9S12 reference documents in Adobe Acrobat PDF format. The S12CPUV2.pdf document describes the CPU12 core and explains each machine instruction in detail. You will be referring often to this document! The 9S12C128DGV1.pdf document provides an overview of the entire 9S12Cxx family (that is where I got the block diagram of the 9S12Cxx family that was presented earlier in this lecture), and it points the way to the other documents, as more information is needed about each functional block within the 9S12Cxx.

ECE331 Introduction (KEH) 23 Reading Assignment Huang Text, Chapters 1 and 2