1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.

Slides:



Advertisements
Similar presentations
MC68HC11 System Overview. System block diagram (A8 version)
Advertisements

Chapter 2 HARDWARE SUMMARY
Processor System Architecture
Introduction of Holtek HT-46 series MCU
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Micro-controller or embedded controller
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Architecture of the 8051 INTERNAL DATA BUS Oscillator & Timing Programmable I/O (32 Pins) 80C51 CPU 64K byte Expansion Control Serial I/O 4K Program Memory.
Microcontroller Architecture— PIC18F Family
The 8051 Microcontroller Architecture
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
INPUT-OUTPUT ORGANIZATION
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
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.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Input/Output mechanisms
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
Multiplexed External Bus Interface-MEBIV3 By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg., SITS, Pune-41
Chapter 4 9S12 Architecture From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
AT91 Embedded Peripherals
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
EGRE 6311 Midsize Microcontrollers and Microprocessors The 8051 is an example of a small inexpensive microcontroller intended for simple applications.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
(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.
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
Microprocessor-based Systems
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Chapter 4 9S12 Architecture From the text by Valvano: Introduction to Embedded Systems: Interfacing to the Freescale 9S12.
MCS51 - lecture 6. Lecture 6 1/32 Extending MCS51 system Built-in peripherals MCS51 family.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
8254 Timer.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
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
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
ECE 447: Lecture 2 Internal Input/Output Devices A/D Converter.
Chapter Microcontroller
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
Memory Organisation & Modes of Operations By: Prof. Mahendra B. Salunke Asst. Prof., Department of Computer Engg, SITS, Pune-41
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Components of a typical full-featured microcontroller.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Introduction to Microcontroller Technology
Place your image on top of this gray box. If no graphic is
UNIT – Microcontroller.
Programming Microcontroller
The Arduino Microcontroller: Atmel AVR Atmega 328
Introduction to Microprocessors and Microcontrollers
AVR – ATmega103(ATMEL) Architecture & Summary
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Place your image on top of this gray box. If no graphic is
ADSP 21065L.
Presentation transcript:

1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

2 Overview 68HC12 hardware overview Subsystems Memory System

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

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

5 68HC12 Hardware Overview (cont) Low power consumption - CMOS technology, “A4” draws 25 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

6 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

7 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

8 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

9 68HC12 Subsystems 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 #ATD_INI STAAATDCTL2

10 68HC12 Subsystems 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

11 68HC12 Subsystems 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

12 68HC12 Subsystems 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

13 68HC12 Subsystems The Memory System

14 68HC12 Subsystems 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)

15 68HC12 Subsystems 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

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

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

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

19 68HC12 Subsystems 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

20 68HC12 Subsystems 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 V RL $00$FF 1/2FS1/4FS1/8FS

21 EX] Remote Weather Station

22 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