M68HC11E Family. Data Sheet. HC11 Microcontrollers. freescale.com. M68HC11E Rev. 5.1 07/2005



Similar documents
M68HC05. Microcontrollers MC68HC705J1A MC68HRC705J1A MC68HSC705J1A MC68HSR705J1A. Technical Data

ET-BASE AVR ATmega64/128

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

The Programming Interface

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

DS1621 Digital Thermometer and Thermostat

DS1307ZN. 64 x 8 Serial Real-Time Clock

8031AH 8051AH 8032AH 8052AH NMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

DS1621 Digital Thermometer and Thermostat

MC68HC908QB8 MC68HC908QB4 MC68HC908QY8

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

Microprocessor & Assembly Language

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

Serial Communications

Application Note. Introduction. J1850 Overview. AN1212/D Rev. 1, 11/2001

DS1821 Programmable Digital Thermostat and Thermometer

Cellphone Based Device Control With Voice Acknowledgement

M68HC08. Microcontrollers MC68HC908LJ24 MC68HC908LK24. nc... Freescale Semiconductor, I. Data Sheet. Freescale Semiconductor, Inc.

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

DP8570A DP8570A Timer Clock Peripheral (TCP)

Lecture N -1- PHYS Microcontrollers

CSE2102 Digital Design II - Topics CSE Digital Design II

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

MicroMag3 3-Axis Magnetic Sensor Module

DS18B20 Programmable Resolution 1-Wire Digital Thermometer

SIM SYSTEM INTEGRATION MODULE REFERENCE MANUAL

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

DS Wire Digital Thermometer and Thermostat

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

INTEGRATED CIRCUITS DATA SHEET. SAA digit LED-driver with I 2 C-Bus interface. Product specification File under Integrated Circuits, IC01

Microcontrollers in Practice

CAT28C64B F R E E. 64K-Bit CMOS PARALLEL EEPROM L E A D FEATURES DESCRIPTION BLOCK DIAGRAM

DS1220Y 16k Nonvolatile SRAM

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

8051 hardware summary

Microcomputer Components SAB 80515/SAB 80C515 8-Bit Single-Chip Microcontroller Family

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

SPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI

10-Bit Digital Temperature Sensor (AD7416) and Four/Single-Channel ADC (AD7417/AD7418) AD7416/AD7417/AD7418

MICROPROCESSOR AND MICROCOMPUTER BASICS

8XC51FX CHMOS SINGLE-CHIP 8-BIT MICROCONTROLLERS

FM75 Low-Voltage Two-Wire Digital Temperature Sensor with Thermal Alarm

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Production Flash Programming Best Practices for Kinetis K- and L-series MCUs

Voice Dialer Speech Recognition Dialing IC

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Comparison of MC9S08QE128 and MCF51QE128 Microcontrollers Scott Pape and Eduardo Montanez Systems Engineering, Freescale Microcontroller Division

M25P05-A. 512-Kbit, serial flash memory, 50 MHz SPI bus interface. Features

HANDLING SUSPEND MODE ON A USB MOUSE

MC68HC08GP32A MC68HC08GP16A

Chapter 13. PIC Family Microcontroller

Chapter 6 PLL and Clock Generator

HT1632C 32 8 &24 16 LED Driver

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

TDA General description. 2. Features and benefits. Multiple smart card slot interface IC

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

Local Interconnect Network (LIN) Physical Interface

Microtronics technologies Mobile:

Using the HC08 SCI Module

ES_LPC4357/53/37/33. Errata sheet LPC4357/53/37/33. Document information

Microprocessor Supervisory Circuits

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

Atmel Norway XMEGA Introduction

STM32 F-2 series High-performance Cortex-M3 MCUs

HC08 Welcome Kit. Hardware- Version User Manual

Web Site: Forums: forums.parallax.com Sales: Technical:

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

W25Q80, W25Q16, W25Q32 8M-BIT, 16M-BIT AND 32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

DS Real Time Clock FEATURES PIN ASSIGNMENT PIN DESCRIPTION

css Custom Silicon Solutions, Inc.

How To Prevent Power Supply Corruption On An 8Bit Microcontroller From Overheating

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description

DS1220Y 16k Nonvolatile SRAM

ULC Technology: High-performance gate array package using multiple metal layer CMOS technology featuring sub-micron channel lengths (0.

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

8254 PROGRAMMABLE INTERVAL TIMER

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

1-Mbit (128K x 8) Static RAM

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

Introducing AVR Dragon

Introduction to Microcontrollers

AT89C Bit Microcontroller with 1 Kbyte Flash. Features. Description. Pin Configuration

A DIY Hardware Packet Sniffer

Transcription:

M68HCE Family Data Sheet HC Microcontrollers M68HCE Rev. 5. 7/25 freescale.com

MC68HCE Family Data Sheet To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to: http://freescale.com/ The following revision history table summarizes changes contained in this document. For your convenience, the page number designators have been linked to the appropriate location. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. Freescale Semiconductor, Inc., 25. All rights reserved. Freescale Semiconductor 3

Revision History Date Revision Level May, 2 3. June, 2 3.2 December, 2 3.3 July, 22 4 June, 23 5 Revision History Description Page Number(s) 2.3.3. System Configuration Register Addition to NOCOP bit description 44 Added.2 EPROM Characteristics 75.2 EPROM Characteristics For clarity, addition to note 2 following the table 75 7.7.2 Serial Communications Control Register SCCR bit 4 (M) description corrected.7 MC68LE9/E2 DC Electrical Characteristics Title changed to include the MC68LE2 53.8 MC68LE9/E2 Supply Currents and Power Dissipation Title changed to include the MC68LE2 54. MC68LE9/E2 Control Timing Title changed to include the MC68LE2 57.2 MC68LE9/E2 Peripheral Port Timing Title changed to include the MC68LE2 63.4 MC68LE9/E2 Analog-to-Digital Converter Characteristics Title changed to include the MC68LE2 67.6 MC68LE9/E2 Expansion Bus Timing Characteristics Title changed to include the MC68LE2 69.8 MC68LE9/E2 Serial Peirpheral Interface Characteristics Title changed to include the MC68LE2 72 Title changed to include the MC68LE2 75.4 Extended Voltage Device Ordering Information (3. Vdc to 5.5 Vdc) Updated table to include MC68L2 8 Format updated to current publications standards Throughout.4.6 Non-Maskable Interrupt (XIRQ/VPPE) Added Caution note pertaining to EPROM programming of the MC68HC7E9 device only. 23 6.4 Port C Clarified description of DDRC[7:] bits.2 EPROM Characteristics Added note pertaining to EPROM programming of the MC68HC7E9 device only. 75 July, 25 5. Updated to meet Freescale identity guidelines. Throughout 4 Freescale Semiconductor

List of Chapters Chapter General Description................................................3 Chapter 2 Operating Modes and On-Chip Memory...............................29 Chapter 3 Analog-to-Digital (A/D) Converter....................................57 Chapter 4 Central Processor Unit (CPU).......................................65 Chapter 5 Resets and Interrupts..............................................79 Chapter 6 Parallel Input/Output (I/O) Ports.....................................97 Chapter 7 Serial Communications Interface (SCI)...............................5 Chapter 8 Serial Peripheral Interface (SPI)....................................9 Chapter 9 Timing Systems..................................................27 Chapter Electrical Characteristics.........................................49 Chapter Ordering Information and Mechanical Specifications..................77 Appendix A Development Support...........................................87 Appendix B EVBU Schematic...............................................9 AN6 M68HC Bootstrap Mode........................................93 EB84 Enabling the Security Feature on the MC68HC7E9 Devices with PCbug on the M68HC7E9PGMR...................................229 EB88 Enabling the Security Feature on M68HC8E2 Devices with PCbug on the M68HC7E9PGMR...................................233 EB296 Programming MC68HC7E9 Devices with PCbug and the M68HCEVBU..................................................237 Freescale Semiconductor 5

List of Chapters 6 Freescale Semiconductor

Table of Contents Chapter General Description. Introduction................................................................ 3.2 Features................................................................... 3.3 Structure.................................................................. 4.4 Pin Descriptions............................................................. 4.4. V DD and V SS............................................................ 2.4.2 RESET................................................................. 22.4.3 Crystal Driver and External Clock Input (XTAL and EXTAL)........................ 22.4.4 E-Clock Output (E)........................................................ 23.4.5 Interrupt Request (IRQ).................................................... 23.4.6 Non-Maskable Interrupt (XIRQ/V PPE )......................................... 23.4.7 MODA and MODB (MODA/LIR and MODB/V STBY )............................... 24.4.7. V RL and V RH........................................................... 24.4.8 STRA/AS............................................................... 25.4.9 STRB/R/W.............................................................. 25.4. Port Signals............................................................. 25.4.. Port A................................................................ 25.4..2 Port B................................................................ 27.4..3 Port C................................................................ 27.4..4 Port D................................................................ 28.4..5 Port E................................................................ 28 Chapter 2 Operating Modes and On-Chip Memory 2. Introduction................................................................ 29 2.2 Operating Modes............................................................ 29 2.2. Single-Chip Mode......................................................... 29 2.2.2 Expanded Mode.......................................................... 29 2.2.3 Test Mode.............................................................. 3 2.2.4 Bootstrap Mode.......................................................... 3 2.3 Memory Map............................................................... 3 2.3. RAM and Input/Output Mapping.............................................. 39 2.3.2 Mode Selection.......................................................... 4 2.3.3 System Initialization....................................................... 42 2.3.3. System Configuration Register............................................. 43 2.3.3.2 RAM and I/O Mapping Register............................................ 45 2.3.3.3 System Configuration Options Register...................................... 46 2.4 EPROM/OTPROM........................................................... 47 2.4. Programming an Individual EPROM Address................................... 48 2.4.2 Programming the EPROM with Downloaded Data............................... 48 Freescale Semiconductor 7

Table of Contents 2.4.3 EPROM and EEPROM Programming Control Register............................ 49 2.5 EEPROM.................................................................. 5 2.5. EEPROM and CONFIG Programming and Erasure.............................. 5 2.5.. Block Protect Register................................................... 5 2.5..2 EPROM and EEPROM Programming Control Register.......................... 53 2.5..3 EEPROM Bulk Erase.................................................... 54 2.5..4 EEPROM Row Erase.................................................... 54 2.5..5 EEPROM Byte Erase.................................................... 55 2.5..6 CONFIG Register Programming............................................ 55 2.5.2 EEPROM Security........................................................ 55 Chapter 3 Analog-to-Digital (A/D) Converter 3. Introduction................................................................ 57 3.2 Overview.................................................................. 57 3.2. Multiplexer.............................................................. 57 3.2.2 Analog Converter......................................................... 57 3.2.3 Digital Control............................................................ 59 3.2.4 Result Registers.......................................................... 59 3.2.5 A/D Converter Clocks...................................................... 59 3.2.6 Conversion Sequence..................................................... 59 3.3 A/D Converter Power-Up and Clock Select........................................ 6 3.4 Conversion Process.......................................................... 6 3.5 Channel Assignments........................................................ 6 3.6 Single-Channel Operation..................................................... 6 3.7 Multiple-Channel Operation.................................................... 62 3.8 Operation in Stop and Wait Modes.............................................. 62 3.9 A/D Control/Status Register.................................................... 62 3. A/D Converter Result Registers................................................. 64 Chapter 4 Central Processor Unit (CPU) 4. Introduction................................................................ 65 4.2 CPU Registers.............................................................. 65 4.2. Accumulators A, B, and D.................................................. 66 4.2.2 Index Register X (IX)...................................................... 66 4.2.3 Index Register Y (IY)...................................................... 66 4.2.4 Stack Pointer (SP)........................................................ 66 4.2.5 Program Counter (PC)..................................................... 68 4.2.6 Condition Code Register (CCR).............................................. 68 4.2.6. Carry/Borrow (C)....................................................... 68 4.2.6.2 Overflow (V)........................................................... 68 4.2.6.3 Zero (Z)............................................................... 68 4.2.6.4 Negative (N)........................................................... 68 4.2.6.5 Interrupt Mask (I)....................................................... 69 4.2.6.6 Half Carry (H).......................................................... 69 4.2.6.7 X Interrupt Mask (X)..................................................... 69 4.2.6.8 STOP Disable (S)....................................................... 69 8 Freescale Semiconductor

4.3 Data Types................................................................. 69 4.4 Opcodes and Operands....................................................... 7 4.5 Addressing Modes........................................................... 7 4.5. Immediate.............................................................. 7 4.5.2 Direct.................................................................. 7 4.5.3 Extended............................................................... 7 4.5.4 Indexed................................................................ 7 4.5.5 Inherent................................................................ 7 4.5.6 Relative................................................................ 7 4.6 Instruction Set.............................................................. 7 Chapter 5 Resets and Interrupts 5. Introduction................................................................ 79 5.2 Resets.................................................................... 79 5.2. Power-On Reset (POR).................................................... 79 5.2.2 External Reset (RESET)................................................... 8 5.2.3 Computer Operating Properly (COP) Reset..................................... 8 5.2.4 Clock Monitor Reset....................................................... 8 5.2.5 System Configuration Options Register........................................ 82 5.2.6 Configuration Control Register............................................... 83 5.3 Effects of Reset............................................................. 83 5.3. Central Processor Unit (CPU)............................................... 83 5.3.2 Memory Map............................................................ 84 5.3.3 Timer.................................................................. 84 5.3.4 Real-Time Interrupt (RTI)................................................... 84 5.3.5 Pulse Accumulator........................................................ 84 5.3.6 Computer Operating Properly (COP).......................................... 84 5.3.7 Serial Communications Interface (SCI)........................................ 84 5.3.8 Serial Peripheral Interface (SPI)............................................. 84 5.3.9 Analog-to-Digital (A/D) Converter............................................ 85 5.3. System................................................................. 85 5.4 Reset and Interrupt Priority.................................................... 85 5.4. Highest Priority Interrupt and Miscellaneous Register............................. 86 5.5 Interrupts.................................................................. 87 5.5. Interrupt Recognition and Register Stacking.................................... 88 5.5.2 Non-Maskable Interrupt Request (XIRQ)....................................... 89 5.5.3 Illegal Opcode Trap....................................................... 89 5.5.4 Software Interrupt (SWI)................................................... 9 5.5.5 Maskable Interrupts....................................................... 9 5.5.6 Reset and Interrupt Processing.............................................. 9 5.6 Low-Power Operation........................................................ 9 5.6. Wait Mode.............................................................. 9 5.6.2 Stop Mode.............................................................. 95 Freescale Semiconductor 9

Table of Contents Chapter 6 Parallel Input/Output (I/O) Ports 6. Introduction................................................................ 97 6.2 Port A..................................................................... 98 6.3 Port B..................................................................... 99 6.4 Port C..................................................................... 99 6.5 Port D.................................................................... 6.6 Port E.................................................................... 6.7 Handshake Protocol......................................................... 6.8 Parallel I/O Control Register.................................................. 2 Chapter 7 Serial Communications Interface (SCI) 7. Introduction............................................................... 5 7.2 Data Format............................................................... 5 7.3 Transmit Operation......................................................... 5 7.4 Receive Operation.......................................................... 7 7.5 Wakeup Feature........................................................... 7 7.5. Idle-Line Wakeup........................................................ 7 7.5.2 Address-Mark Wakeup.................................................... 9 7.6 SCI Error Detection......................................................... 9 7.7 SCI Registers.............................................................. 9 7.7. Serial Communications Data Register........................................ 7.7.2 Serial Communications Control Register.................................... 7.7.3 Serial Communications Control Register 2.................................... 7.7.4 Serial Communication Status Register....................................... 2 7.7.5 Baud Rate Register...................................................... 3 7.8 Status Flags and Interrupts................................................... 6 7.9 Receiver Flags............................................................. 7 Chapter 8 Serial Peripheral Interface (SPI) 8. Introduction............................................................... 9 8.2 Functional Description....................................................... 9 8.3 SPI Transfer Formats........................................................ 9 8.4 Clock Phase and Polarity Controls............................................. 2 8.5 SPI Signals............................................................... 2 8.5. Master In/Slave Out...................................................... 2 8.5.2 Master Out/Slave In...................................................... 2 8.5.3 Serial Clock............................................................ 22 8.5.4 Slave Select............................................................ 22 8.6 SPI System Errors.......................................................... 22 8.7 SPI Registers.............................................................. 23 8.7. Serial Peripheral Control Register........................................... 23 8.7.2 Serial Peripheral Status Register............................................ 24 8.7.3 Serial Peripheral Data I/O Register.......................................... 25 Freescale Semiconductor

Chapter 9 Timing Systems 9. Introduction............................................................... 27 9.2 Timer Structure............................................................ 29 9.3 Input Capture.............................................................. 29 9.3. Timer Control Register 2.................................................. 3 9.3.2 Timer Input Capture Registers.............................................. 3 9.3.3 Timer Input Capture 4/Output Compare 5 Register.............................. 33 9.4 Output Compare........................................................... 33 9.4. Timer Output Compare Registers........................................... 34 9.4.2 Timer Compare Force Register............................................. 35 9.4.3 Output Compare Mask Register............................................. 36 9.4.4 Output Compare Data Register............................................. 36 9.4.5 Timer Counter Register................................................... 37 9.4.6 Timer Control Register.................................................. 37 9.4.7 Timer Interrupt Mask Register............................................. 38 9.4.8 Timer Interrupt Flag Register............................................. 38 9.4.9 Timer Interrupt Mask 2 Register............................................. 39 9.4. Timer Interrupt Flag Register 2............................................. 4 9.5 Real-Time Interrupt (RTI)..................................................... 4 9.5. Timer Interrupt Mask Register 2............................................. 4 9.5.2 Timer Interrupt Flag Register 2............................................. 42 9.5.3 Pulse Accumulator Control Register......................................... 42 9.6 Computer Operating Properly (COP) Watchdog Function............................ 43 9.7 Pulse Accumulator.......................................................... 43 9.7. Pulse Accumulator Control Register......................................... 45 9.7.2 Pulse Accumulator Count Register.......................................... 46 9.7.3 Pulse Accumulator Status and Interrupt Bits................................... 46 Chapter Electrical Characteristics. Introduction............................................................... 49.2 Maximum Ratings for Standard and Extended Voltage Devices....................... 49.3 Functional Operating Range.................................................. 5.4 Thermal Characteristics...................................................... 5.5 DC Electrical Characteristics.................................................. 5.6 Supply Currents and Power Dissipation......................................... 52.7 MC68LE9/E2 DC Electrical Characteristics.................................... 53.8 MC68LE9/E2 Supply Currents and Power Dissipation........................... 54.9 Control Timing............................................................. 56. MC68LE9/E2 Control Timing............................................... 57. Peripheral Port Timing....................................................... 62.2 MC68LE9/E2 Peripheral Port Timing......................................... 63.3 Analog-to-Digital Converter Characteristics....................................... 66.4 MC68LE9/E2 Analog-to-Digital Converter Characteristics........................ 67 Freescale Semiconductor

Table of Contents.5 Expansion Bus Timing Characteristics.......................................... 68.6 MC68LE9/E2 Expansion Bus Timing Characteristics............................ 69.7 Serial Peripheral Interface Timing Characteristics.................................. 7.8 MC68LE9/E2 Serial Peirpheral Interface Characteristics......................... 72.9 EEPROM Characteristics..................................................... 75.2 MC68LE9/E2 EEPROM Characteristics...................................... 75.2 EPROM Characteristics...................................................... 75 Chapter Ordering Information and Mechanical Specifications. Introduction............................................................... 77.2 Standard Device Ordering Information.......................................... 77.3 Custom ROM Device Ordering Information....................................... 79.4 Extended Voltage Device Ordering Information (3. Vdc to 5.5 Vdc)................... 8.5 52-Pin Plastic-Leaded Chip Carrier (Case 778).................................... 82.6 52-Pin Windowed Ceramic-Leaded Chip Carrier (Case 778B)........................ 83.7 64-Pin Quad Flat Pack (Case 84C)............................................ 84.8 52-Pin Thin Quad Flat Pack (Case 848D)........................................ 85.9 56-Pin Dual in-line Package (Case 859)......................................... 86. 48-Pin Plastic DIP (Case 767)................................................. 86 Appendix A Development Support A. Introduction............................................................... 87 A.2 M68HC E-Series Development Tools......................................... 87 A.3 EVS Evaluation System................................................... 87 A.4 Modular Development System (MMDS)....................................... 88 A.5 SPGMR Serial Programmer for M68HC MCUs.............................. 89 Appendix B EVBU Schematic AN6 M68HC Bootstrap Mode................................................ 93 EB84 Enabling the Security Feature on the MC68HC7E9 Devices with PCbug on the M68HC7E9PGMR........................................................... 229 EB88 Enabling the Security Feature on M68HC8E2 Devices with PCbug on the M68HC7E9PGMR......................................... 233 EB296 Programming MC68HC7E9 Devices with PCbug and the M68HCEVBU........................................................ 237 2 Freescale Semiconductor

Chapter General Description. Introduction This document contains a detailed description of the M68HC E series of 8-bit microcontroller units (MCUs). These MCUs all combine the M68HC central processor unit (CPU) with high-performance, on-chip peripherals. The E series is comprised of many devices with various configurations of: Random-access memory (RAM) Read-only memory (ROM) Erasable programmable read-only memory (EPROM) Electrically erasable programmable read-only memory (EEPROM) Several low-voltage devices are also available. With the exception of a few minor differences, the operation of all E-series MCUs is identical. A fully static design and high-density complementary metal-oxide semiconductor (HCMOS) fabrication process allow the E-series devices to operate at frequencies from 3 MHz to dc with very low power consumption..2 Features Features of the E-series devices include: M68HC CPU Power-saving stop and wait modes Low-voltage devices available (3. 5.5 Vdc), 256, 52, or 768 bytes of on-chip RAM, data retained during standby, 2, or 2 Kbytes of on-chip ROM or EPROM, 52, or 248 bytes of on-chip EEPROM with block protect for security 248 bytes of EEPROM with selectable base address in the MC68HC8E2 Asynchronous non-return-to-zero (NRZ) serial communications interface (SCI) Additional baud rates available on MC68HC(7)E2 Synchronous serial peripheral interface (SPI) 8-channel, 8-bit analog-to-digital (A/D) converter 6-bit timer system: Three input capture (IC) channels Four output compare (OC) channels One additional channel, selectable as fourth IC or fifth OC 8-bit pulse accumulator Real-time interrupt circuit Freescale Semiconductor 3

General Description Computer operating properly (COP) watchdog system 38 general-purpose input/output (I/O) pins: 6 bidirectional I/O pins input-only pins output-only pins Several packaging options: 52-pin plastic-leaded chip carrier (PLCC) 52-pin windowed ceramic leaded chip carrier (CLCC) 52-pin plastic thin quad flat pack, mm x mm (TQFP) 64-pin quad flat pack (QFP) 48-pin plastic dual in-line package (DIP), MC68HC8E2 only 56-pin plastic shrink dual in-line package,.7-inch lead spacing (SDIP).3 Structure See Figure - for a functional diagram of the E-series MCUs. Differences among devices are noted in the table accompanying Figure -..4 Pin Descriptions M68HC E-series MCUs are available packaged in: 52-pin plastic-leaded chip carrier (PLCC) 52-pin windowed ceramic leaded chip carrier (CLCC) 52-pin plastic thin quad flat pack, mm x mm (TQFP) 64-pin quad flat pack (QFP) 48-pin plastic dual in-line package (DIP), MC68HC8E2 only 56-pin plastic shrink dual in-line package,.7-inch lead spacing (SDIP) Most pins on these MCUs serve two or more functions, as described in the following paragraphs. Refer to Figure -2, Figure -3, Figure -4, Figure -5, and Figure -6 which show the M68HC E-series pin assignments for the PLCC/CLCC, QFP, TQFP, SDIP, and DIP packages. 4 Freescale Semiconductor

Pin Descriptions MODA/ LIR MODB/ V STBY XTAL EXTAL E IRQ XIRQ/V PPE* RESET MODE CONTROL OSC CLOCK LOGIC INTERRUPT LOGIC ROM OR EPROM (SEE TABLE) PAI PULSE ACCUMULATOR COP OC2 OC3 OC4 OC5/IC4/OC IC IC2 IC3 PERIODIC INTERRUPT TIMER SYSTEM BUS EXPANSION ADDRESS M68HC CPU ADDRESS/DATA STROBE AND HANDSHAKE PARALLEL I/O R/W AS STRB STRA SERIAL PERIPHERAL INTERFACE SPI SS SCK MOSI MISO EEPROM (SEE TABLE) RAM (SEE TABLE) SERIAL COMMUNICATION INTERFACE SCI TxD RxD V DD V SS A/D CONVERTER CONTROL PORT D PORT E PC7/ADDR7/DATA7 PC6/ADDR6/DATA6 PC5/ADDR5/DATA5 PC4/ADDR4/DATA4 PC3/ADDR3/DATA3 PC2/ADDR2/DATA2 PC/ADDR/DATA PC/ADDR/DATA PE7/AN7 PE6/AN6 PE5/AN5 PE4/AN4 PE3/AN3 PE2/AN2 PE/AN PE/AN V RH V RL CONTROL STRB/R/W STRA/AS PD5/SS PD/RxD PORT A PORT B PORT C PA7/PAI PA6/OC2/OC PA5/OC3/OC PA4/OC4/OC PA3/OC5/IC4/OC PA2/IC PA/IC2 PA/IC3 PB7/ADDR5 PB6/ADDR4 PB5/ADDR3 PB4/ADDR2 PB3/ADDR PB2/ADDR PB/ADDR9 PB/ADDR8 PD4/SCK PD3/MOSI PD2/MISO PD/TxD * V PPE applies only to devices with EPROM/OTPROM. DEVICE MC68HCE MC68HCE MC68HCE9 MC68HC7E9 MC68HCE2 MC68HC7E2 MC68HC8E2 RAM 52 52 52 52 768 768 ROM 2 K 2 K EPROM 2 K 2 K EEPROM 52 52 52 52 52 256 248 Figure -. M68HC E-Series Block Diagram Freescale Semiconductor 5

General Description EXTAL STRB/R/W E STRA/AS MODA/LIR MODB/V STBY V SS V RH V RL PE7/AN7 PE3/AN3 PE6/AN6 PE2/AN2 XTAL PC/ADDR/DATA PC/ADDR/DATA PC2/ADDR2/DATA2 PC3/ADDR3/DATA3 PC4/ADDR4/DATA4 PC5/ADDR5/DATA5 PC6/ADDR6/DATA6 PC7/ADDR7/DATA7 RESET * XIRQ/V PPE IRQ PD/RxD 8 9 2 3 4 5 6 7 8 9 2 PD/TxD PD2/MISO PD3/MOSI PD4/SCK 7 6 5 4 3 2 M68HC E SERIES 2 22 23 24 25 26 27 28 29 3 3 PD5/SS V DD 52 5 5 49 PA7/PAI/OC PA6/OC2/OC PA5/OC3/OC PA4/OC4/OC PA3/OC5/IC4/OC * V PPE applies only to devices with EPROM/OTPROM. 48 PA2/IC 32 47 PA/IC2 33 46 45 44 43 42 4 4 39 38 37 36 35 34 PE5/AN5 PE/AN PE4/AN4 PE/AN PB/ADDR8 PB/ADDR9 PB2/ADDR PB3/ADDR PB4/ADDR2 PB5/ADDR3 PB6/ADDR4 PB7/ADDR5 PA/IC3 Figure -2. Pin Assignments for 52-Pin PLCC and CLCC 6 Freescale Semiconductor

Pin Descriptions PA/IC3 NC NC NC PB7/ADDR5 PB6/ADDR4 PB5/ADDR3 PB4/ADDR2 PB3/ADDR PB2/ADDR PB/ADDR9 PB/ADDR8 PE/AN PE4/AN4 PE/AN PE5/AN5 NC PD/RxD IRQ XIRQ/V () PPE NC RESET PC7/ADDR7/DATA7 PC6/ADDR6/DATA6 PC5/ADDR5/DATA5 PC4/ADDR4/DATA4 PC3/ADDR3/DATA3 PC2/ADDR2/DATA2 PC/ADDR/DATA NC PC/ADDR/DATA XTAL PE2/AN2 PE6/AN6 PE3/AN3 PE7/AN7 V RL V RH V SS V SS MODB/V STBY NC MODA/LIR STRA/AS E STRB/R/W EXTAL NC PA/IC2 PA2/IC PA3/OC5/IC4/OC NC NC PA4/OC4/OC PA5/OC3/OC PA6/OC2/OC PA7/PAI/OC V DD PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD/TxD V SS 64 2 3 4 5 6 7 8 9 2 3 4 5 6 63 62 6 6 59 58 57 56 M68HC E SERIES 7 8 9 2 2 22 23 24 25 55 54 26 27 53 52 5 5 49 28 29 3 3 32 48 47 46 45 44 43 42 4 4 39 38 37 36 35 34 33. V PPE applies only to devices with EPROM/OTPROM. Figure -3. Pin Assignments for 64-Pin QFP Freescale Semiconductor 7

General Description PA/IC2 PA2/IC PA3/OC5/IC4/OC PA4/OC4/OC PA5/OC3/OC PA6/OC2/OC PA7/PAI/OC V DD PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD/TxD PA/IC3 PB7/ADDR5 PB6/ADDR4 PB5/ADDR3 PB4/ADDR2 PB3/ADDR PB2/ADDR PB/ADDR9 PB/ADDR8 PE/AN PE4/AN4 PE/AN PE5/AN5 52 5 5 49 48 47 46 45 44 43 42 4 4 2 3 4 5 6 7 8 9 2 3 M68HC E SERIES 4 5 6 7 8 9 2 2 PE2/AN2 PE6/AN6 PE3/AN3 PE7/AN7 V RL V RH V SS MODB/V STBY MODA/LIR STRA/AS E STRB/R/W EXTAL 22 23 24 25 26 39 38 37 36 35 34 33 32 3 3 29 28 27 PD/RxD IRQ () XIRQ/V PPE RESET PC7/ADDR7/DATA7 PC6/ADDR6/DATA6 PC5/ADDR5/DATA5 PC4/ADDR4/DATA4 PC3/ADDR3/DATA3 PC2/ADDR2/DATA2 PC/ADDR/DATA PC/ADDR/DATA XTAL. V PPE applies only to devices with EPROM/OTPROM. Figure -4. Pin Assignments for 52-Pin TQFP 8 Freescale Semiconductor

Pin Descriptions V SS MODB/V STBY 2 MODA/LIR 3 STRA/AS 4 E STRB/R/W 5 6 EXTAL 7 XTAL 8 PC/ADDR/DATA 9 PC/ADDR/DATA PC2/ADDR2/DATA2 PC3/ADDR3/DATA3 2 PC4/ADDR4/DATA4 3 PC5/ADDR5/DATA5 4 PC6/ADDR6/DATA6 5 PC7/ADDR7/DATA7 6 RESET 7 * XIRQ/V PPE 8 IRQ 9 PD/RxD 2 EV SS 2 PD/TxD 22 PD2/MISO 23 PD3/MOSI 24 PD4/SCK 25 PD5/SS 26 V DD 27 V SS 28 M68HC E SERIES 56 EV SS 55 V RH 54 V RL 53 PE7/AN7 52 PE3/AN3 5 PE6/AN6 5 PE2/AN2 49 PE5/AN5 48 PE/AN 47 PE4/AN4 46 PE/AN 45 PB/ADDR8 44 PB/ADDR9 43 PB2/ADDR 42 PB3/ADDR 4 PB4/ADDR2 4 PB5/ADDR3 39 PB6/ADDR4 38 PB7/ADDR5 37 PA/IC3 36 PA/IC2 35 PA2/IC 34 33 32 3 3 29 PA3/OC5/IC4/OC PA4/OC4/OC PA5/OC3/OC PA6/OC2/OC PA7/PAI/OC EV DD * V PPE applies only to devices with EPROM/OTPROM. Figure -5. Pin Assignments for 56-Pin SDIP Freescale Semiconductor 9

General Description PA7/PAI/OC PA6/OC2/OC 2 PA5/OC3/OC 3 PA4/OC4/OC 4 PA3/OC5/IC4/OC 5 PA2/IC 6 PA/IC2 7 PA/IC3 8 PB7/ADDR5 PB6/ADDR4 PB5/ADDR3 PB4/ADDR2 PB3/ADDR PB2/ADDR PB/ADDR9 PB/ADDR8 PE/AN PE/AN 9 2 3 4 5 6 7 8 PE2/AN2 9 PE3/AN3 2 V RL 2 V RH 22 V SS 23 MODB/V STBY 24 MC68HC8E2 48 47 46 45 44 43 42 4 4 39 38 37 36 35 34 33 32 3 3 29 28 27 26 25 V DD PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD/TxD PD/RxD IRQ XIRQ RESET PC7/ADDR7/DATA7 PC6/ADDR6/DATA6 PC5/ADDR5/DATA5 PC4/ADDR4/DATA4 PC3/ADDR3/DATA3 PC2/ADDR2/DATA2 PC/ADDR/DATA PC/ADDR/DATA XTAL EXTAL STRB/R/W E STRA/AS MODA/LIR Figure -6. Pin Assignments for 48-Pin DIP (MC68HC8E2) 2 Freescale Semiconductor