EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

Similar documents
MC68HC12 Parallel I/O

Microcontrollers. Microcontroller

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Roberto Muscedere Images and Text Portions 2003 Prentice Hall 1

Microprocessors/Microcontrollers

HC12 Built-In Hardware

EE 308 Spring Lecture 28 March 30, 2012 Review for Exam 2. Introduction to the MC9S12 Expanded Mode

Microcomputer Architecture and Programming

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

EE 308 Spring A software delay

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Review for Exam III. Analog/Digital Converters. The MC9S12 has two 10-bit successive approximation A/D converters - can be used in 8-bit mode

MICROPROCESSOR BASED SYSTEM DESIGN

Wed. Aug 23 Announcements

The 9S12 in Expanded Mode - How to get into expanded mode Huang Chapter 14

EE251: Tuesday December 4

SECTION 5 RESETS AND INTERRUPTS

EE4390 Microprocessors

Introduction to the MC9S12 Hardware Subsystems

EE Embedded Systems Design. Lessons Exceptions - Resets and Interrupts

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University

Embedded Systems. Read pages

EE251: Thursday November 30


Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

The Freescale MC908JL16 Microcontroller

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

Allmost all systems contain two main types of memory :

MICROCONTROLLER BASED SMART FAN SYSTEM

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

8051 Microcontroller

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

PIC Microcontroller Introduction

OPERATIONAL UP TO. 300 c. Microcontrollers Memories Logic

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Design of Embedded Systems Using 68HC12/11 Microcontrollers

CN310 Microprocessor Systems Design

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

About the Presentations

MICROPROCESSOR TECHNOLOGY

EE 3170 Microcontroller Applications

AN1298. Variations in the Motorola MC68HC(7)05Cx Family By Joanne Field CSIC Applications. Introduction

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

EE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

ARDUINO MEGA INTRODUCTION

Introduction to Microcontrollers

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

Tutorial Introduction

Babu Madhav Institute of Information Technology, UTU

Arduino Uno R3 INTRODUCTION

Input and Output. Arijit Mondal. Dept. of Computer Science & Engineering Indian Institute of Technology Patna

Computer Hardware Requirements for Real-Time Applications

USB-1208LS Specifications

The 9S12 in Expanded Mode - How to get into expanded mode Huang Chapter 14

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Using the MC9S12 in Expanded Mode External Ports S12CPUV2 Reference Manual Multiplexed External Bus Interface (MEBI) Module V3 Block User Guide

Address connections Data connections Selection connections

Architecture of Computers and Parallel Systems Part 6: Microcomputers

3. The MC6802 MICROPROCESSOR

Introduction to Embedded Systems

MN101E50 Series. 8-bit Single-chip Microcontroller

Introduction to Microcontrollers

Mark II Aiken Relay Calculator

Memory Expansion. Lecture Embedded Systems

Specifications PMD-1208FS

Engineer-to-Engineer Note

EE 308 Spring 2011 The MC9S12 in Expanded Mode How to get into expanded mode

A 3-SPEED STEPPER MOTOR

Module 3. Embedded Systems I/O. Version 2 EE IIT, Kharagpur 1

Freescale Semiconductor, Inc.

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

Review for Exam 3. Write 0x05 to ATD0CTL4 to set at fastest conversion speed and 10-bit conversions

MC68HC908GR8A MC68HC908GR4A Data Sheet

Introduction to Computers - Chapter 4

Chapter Operation Pinout Operation 35

Specifications USB-1408FS

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

Features. M. Krishna Kumar MAM/M5/LU13/2004 1

Unlocking the Potential of Your Microcontroller

CHAPTER 8. Solutions for Exercises

IP-48DAC channel 16-bit Digital/Analog Converter With memory Industry Pack Module PROGRAMMING MANUAL Version 1.

Introduction. ECE/CS 5780/6780: Embedded System Design. Memory-Mapped I/O. Isolated I/O. Expanded Mode. Multiplexed Address and Data Lines

Excalibur Solutions Using the Expansion Bus Interface. Introduction. EBI Characteristics

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Microprocessor Architecture. mywbut.com 1

FEATURES DESCRIPTION FEATURES

RabbitCore RCM3700 Series

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

Transcription:

EE4390 Microprocessors Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System 1

Overview 68HC12 hardware overview Subsystems Memory System 2

68HC12 Hardware Overview "Copyright of Motorola, Used by Permission" 3

68HC12 Hardware Overview (cont) Timing System Memory System Interrupt and Reset System Serial Communication System Port System Data Conversion System 4

68HC12 Hardware Overview (cont) Low power consumption - CMOS technology, A4 draws 25 ma @ 2 MHz 16-bit data path (we will use in 8-bit mode) A4 memory: 1024-byte RAM 4 K-byte EEPROM 8-channel, 16-bit timer, configure each channel separately as input or output 16-bit pulse accumulator 5

68HC12 Hardware Overview (cont) Real-time interrupt capability - accomplish operations on recurring basis - reminder Serial communications: Serial Communication Interface (SCI) asynchronous, 2 channels Serial Peripheral Interface (SPI) synchronous 8-channel, 8-bit analog-to-digital converter 6

68HC12 Hardware Overview (cont) Modes of Operation Normal Special Configure using BKGD, MODB, and MODA hardware pins Normal modes: Normal Single-Chip Mode Normal Expanded Wide Mode - 16-bit data bus Normal Expanded Narrow Mode - 8-bit data bus 7

68HC12 Hardware Overview (cont) A4 available in 122-pin TQFP - Fig 5.6, pg. 176 voltage supply or reference pins port pins miscellaneous pins - external signals 8

Register Block Register Block 512-byte memory map collection of registers Registers used to configure 68HC12 for specific tasks turn subsystems on and off, configure operation default register settings EX] ATDCTL2 = $0062 ;register offset from base ATD_INI = $80 ;register mask or value LDAA STAA #ATD_INI ATDCTL2 9

Port System Port System used to exchange data and control signals with outside environment Port is either an input register, output register, or configurable I/O register Multiple ports A - H, J general purpose I/O ports in single chip mode, have other functions in expanded mode S: serial communication, T: timer system, AD: analog-to-digital 10

Port System - (cont) Port related registers: Data Direction Register (DDRx): configures Port as input/output (1: output, 0: input) Pull Up Control Register (PUCR): provides built-in pull-up resistor for interface applications Reduced Drive of I/O Lines Register (RDRIV): reduces current drive capability of pin Port E Assignment Register (PEAR): provides alternate bus functions in expanded mode signals used in memory expansion applications 11

The Timing System - Standard Timer Module (TIM) TIM contains 16-bit programmable counter Provides following precision timer functions: Input capture: measure the characteristics of incoming signals such as frequency, period, duty cycle, pulse length Output compare: generate precision output signals such as periodic digital waveforms, pulses, etc. Pulse accumulator: count external events Pulse Width Modulated (PWM) signal generation PWM not available in A4 variant 12

The Memory System 13

The Memory System (cont) Data bus width = memory width = M memory locations = 2 addr lines = 2 n Memory expressed as length x width 2 n x M bits 68HC12 16-bit address bus 1st address: %0000_0000_0000_0000 = $0000 last address: %1111_1111_1111_1111 = $FFFF 2 16 locations = 65, 536 locations ~ 64K 16-bit data bus (we will use 8-bit configuration) 14

The Memory System (cont) Memory Technologies: RAM: Random Access Memory volatile: no power, no memory read/write faster access time than ROM temporary data storage during program execution program storage during code development ROM: Read Only Memory nonvolatile read stores instructions and constants byte-erasable EEPROMs, flash EEPROMs program storage in final code version 15

The Memory System (cont) Memory Map tracks memory usage in up "Copyright of Motorola, Used by Permission" 16

Interrupts ISR Break in normal program execution fetch decode Usually higher priority event In response to interrupt, 68HC12: finishes current instruction stores key register values execute performs an Interrupt Service Routine (ISR) specific for that interrupt 17

Interrupts (cont) "Copyright of Motorola, Used by Permission" 18

Serial Communications - Multiple Serial Interface Serial Communication Interface (SCI) asynchronous two channels single line uses start and stop bit to frame each ASCII character Serial Peripheral Interface (SPI) synchronous one channel shares clock between Master and Slave designated devices requires additional clock line much faster data transmission than SCI 19

Analog-to-Digital Converter Analog world -- digital processor Converts analog sample to unsigned, weighted binary value 8-channel, 8-bit successive approximation converter V RH 1/2FS 1/4FS 1/8FS V RL $00 $FF 20

EX] Remote Weather Station 21

EX] Remote Weather Station (cont) Anemometer - wind velocity, pulse every time it completes revolution Barometer - barometric pressure, 0 V for 64 cm of Hg, 5 V for 81 cm of Hg Hygrometer - relative humidity, 0 V for 0%, 5 V for 100% relative humidity Rain gauge - 20 mv/cm precipitation thermocouple - temperature, 0 V for - 50 degrees C, 5 V for +120 degrees C weather vane - wind direction 0 V North, 5V back to North 22