ECE331 Embedded System Design

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
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.
ECE331 Introduction (KEH)1 ECE331 Embedded System Design Hardware Interfacing and Programming Featuring the FreeScale (formerly Motorola) MC9S12Cxx Microcontroller.
The 8051 Microcontroller Architecture
ASPPRATECH.
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.
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.
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.
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.
Micro processor and Micro Controllers
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.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
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.
Presented by Sadhish Prabhu
ECE 371 Microprocessor Interfacing
Embedded Systems Introduction. Microprocessor building blocks 1. ALU (Arithmetic Logic Unit): The ALU is a sequential logic circuitry that is intended.
Components of a typical full-featured microcontroller.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
1 بسم الله الرحمن الرحيم MEMORY AND I/O. Introduction to 8086 Microprocessor 8086 Pin Configuration Pin Configuration 8086 Architecture & Modes 2.
Components of Mechatronic Systems AUE 425 Week 2 Kerem ALTUN October 3, 2016.
Introduction to Microcontroller Technology
Voice Controlled Robot by Cell Phone with Android App
Embedded Microcontroller Systems
Popular Microcontrollers and their Selection by Lachit Dutta
Microprocessor and Microcontroller Fundamentals
ECE331 Embedded System Design
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
ECE331 Embedded System Design
Microcontrollers & GPIO
Embedded Microcontroller Systems
UNIT – Microcontroller.
Microcontroller Based Digital Code Lock
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
DIGITAL CALCULATOR USING 8051
Introduction of microprocessor
Principles & Applications
INTRODUCTION TO MICROPROCESSORS
CHAPTER 2 TERMINOLOGY.
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
ECEG-3202 Computer Architecture and Organization
Journey: Introduction to Embedded Systems
EMBEDDED SYSTEMS.
Introducing the PIC Mid-Range Family and the 16F84A
ECEG-3202 Computer Architecture and Organization
Five Key Computer Components
AVR – ATmega103(ATMEL) Architecture & Summary
CHAPTER 1 THE 8051 MICROCONTROLLERS
ADSP 21065L.
Course Code 114 Introduction to Computer Science
Presentation transcript:

ECE331 Embedded System Design Hardware Interfacing and Programming Featuring: Freescale (formerly Motorola) MC9S12C32

Lecture 1. Microcontrollers and the Freescale MC9S12C32

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.

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”!

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

One Subset of a Modern Vehicle’s Network Expanding Automotive Electronic Systems, IEEE Computer, Jan. 2002

By-wire systems replace mechanical systems By-wire cars turn the corner, IEEE Spectrum, April 2001

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

Building safer cars Building Safer Cars, IEEE Spectrum, Jan. 2002

Motorola MPC565 for engine control Diagnose what ails your auto, EDN Magazine, December 2001

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!

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.

A “Rose-Hulman” Connection! Back in the 1980’s, one of my former RHIT students, Alan Schipp, was working for Delco Electronics in Kokomo, IN. Delco made the electronics for General Motors (GM). Alan 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!

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

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.

Nonvolatile RAM (now “Flash programmable ROM” programmable memory) for storing calibration constant and configuration data. ROM memory (now “Flash programamble 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!

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 9S12C32 that we will use in this class: 32kBytes 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

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)

9S12C32 Reference Material Our textbook The HCS12/9S12: An Introduction to Software & Hardware Interfacing, Han-Way Huang, Thomson Delmar Learning, 2006, ISBN 1-4018-9812-2. Assorted Freescale PDF Documents (Some will be made available in hard copy form.)

Additional Reference PDF files The ECE331 Class folder “9S12DOCs” contains no less than TWENTY! 9S12C32 reference documents in Adobe Acrobat PDF format. These documents are listed on the next slide. 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 9S12C32.

Reading Assignment Huang Text, Sections 1.1-1.12