| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
M68HC11 HC11 Motorola reserves right make changes without fu
Top Searches for this datasheetOrder this document M68HC11RM/AD Rev. M68HC11 HC11 Motorola reserves right make changes without further notice products herein improve reliability, function design. Motorola does assume liability arising application product circuit described herein; neither does convey license under patent rights rights others. Motorola products designed, intended, authorized components systems intended surgical implant into body, other applications intended support sustain life, other application which failure Motorola product could create situation where personal injury death occur. Should Buyer purchase Motorola products such unintended unauthorized application, Buyer shall indemnify hold Motorola officers, employees, subsidiaries, affiliates, distributors harmless against claims, costs, damages, expenses, reasonable attorney fees arising directly indirectly, claim personal injury death associated with such unintended unauthorized use, even such claim alleges that Motorola negligent regarding design manufacture part. Paragraph Number TABLE CONTENTS Section GENERAL DESCRIPTION Page Number General Description MC68HC11A8 Programmer's Model Product Derivatives Section PINS CONNECTIONS Packages Names 2.1.1 MC68HC11A8 2.1.2 MC68HC11D3/711D3. 2.1.3 MC68HC11E9/711E9 2.1.4 MC68HC811E2 2.1.5 MC68HC11F1. 2.1.6 MC68HC24 Port Replacement Unit Descriptions 2.2.1 Power-Supply Pins (VDD VSS) 2.2.2 Mode Select Pins (MODB/VSTBY MODA/LIR) 2.2.3 Crystal Oscillator Clock Pins (EXTAL, XTAL, 2-11 2.2.4 Crystal Oscillator Application Information 2-15 2.2.4.1 Crystals Parallel Resonance 2-15 2.2.4.2 Using Crystal Oscillator Outputs. 2-15 2.2.4.3 Using External Oscillator 2-15 2.2.4.4 AT-strip AT-cut Crystals. 2-16 2.2.5 Reset (RESET). 2-16 2.2.6 Interrupt Pins (XIRQ, IRQ) 2-17 2.2.7 Reference Port Pins (VREFL, VREFH, PE[7:0]) 2-18 2.2.8 Timer Port Pins 2-19 2.2.9 Serial Port Pins 2-19 2.2.10 Ports STRA, STRB Pins 2-20 Termination Unused Pins. 2-21 Avoidance Damage 2-23 2.4.1 Latchup. 2-24 2.4.2 Protective Interface Circuits 2-24 2.4.3 Internal Circuitry Digital Input-Only 2-25 2.4.4 Internal Circuitry Analog Input-Only 2-26 2.4.5 Internal Circuitry Digital 2-28 2.4.6 Internal Circuitry Input/Open-Drain-Output 2-29 2.4.7 Internal Circuitry Digital Output-Only 2-29 2.4.8 Internal Circuitry MODB/VSTBY 2-30 2.4.9 Internal Circuitry IRQ/VPPBULK Pin. 2-31 Typical Single-Chip-Mode System Connections 2-31 Typical Expanded-Mode-System Connections 2-33 System Development Debug Features 2-37 2.7.1 Load Instruction Register (LIR). 2-37 2.7.2 Internal Read Visibility (IRV). 2-37 2.7.3 MC68HC24 Port Replacement Unit 2-38 M68HC11 REFERENCE MANUAL TABLE CONTENTS MOTOROLA Paragraph Number Section CONFIGURATION MODES OPERATION Page Number Hardware Mode Selection 3.1.1 Hardware Mode Select Pins 3.1.2 Mode Control Bits HPRIO Register EEPROM-Based CONFIG Register. 3.2.1 Operation CONFIG Mechanism 3.2.2 CONFIG Register Protected Control Register Bits 3.3.1 Mapping Register (INIT) 3.3.2 Protected Control Bits TMSK2 Register 3.3.3 Protected Control Bits OPTION Register Normal Operating Modes 3-10 3.4.1 Normal Single-Chip Mode 3-10 3.4.2 Normal Expanded Mode 3-10 Special Operating Modes 3-11 3.5.1 Testing Functions Control Register (TEST1) 3-12 3.5.2 Test-Related Control Bits BAUD Register 3-14 3.5.3 Special Test Mode 3-14 3.5.4 Special Bootstrap Mode 3-15 3.5.4.1 Loading Programs Bootstrap Mode 3-16 3.5.4.2 Executing User Programs Bootstrap Mode 3-16 3.5.4.3 Using Interrupts Bootstrap Mode 3-17 3.5.4.4 Bootloader Firmware Options. 3-18 Test Bootstrap Mode Applications 3-19 Section ON-CHIP MEMORY ROM. 4.2.1 Remapping Using INIT Register 4.2.2 Standby EEPROM 4.3.1 Logical Physical Organization 4.3.2 Basic Operation EEPROM 4.3.3 Systems Operating below 2-MHz Speed Clock). 4.3.4 EEPROM Programming Register (PPROG). 4-10 4.3.5 Programming/Erasing Procedures 4-12 4.3.5.1 Programming 4-12 4.3.5.2 Bulk Erase 4-12 4.3.5.3 Erase 4-13 4.3.5.4 Byte Erase 4-13 4.3.5.5 CONFIG Register 4-13 4.3.6 Optional EEPROM Security Mode 4-14 EEPROM Application Information 4-16 4.4.1 Conditions Practices Avoid 4-16 4.4.2 Using EEPROM Select Product Options 4-18 4.4.3 Using EEPROM Setpoint Calibration Information 4-18 4.4.4 Using EEPROM during Product Development 4-19 4.4.5 Logging Data 4-19 4.4.6 Self-Adjusting Systems using EEPROM 4-20 4.4.7 Software Methods Extend Life Expectancy 4-21 MOTOROLA TABLE CONTENTS M68HC11 REFERENCE MANUAL Paragraph Number Section RESETS INTERRUPTS Page Number Initial Conditions Established During Reset 5.1.1 System Initial Conditions 5.1.1.1 5.1.1.2 Memory Map. 5.1.1.3 Parallel 5.1.1.4 Timer 5.1.1.5 Real-Time Interrupt. 5.1.1.6 Pulse Accumulator 5.1.1.7 Watchdog. 5.1.1.8 Serial Communications Interface (SCI) 5.1.1.9 Serial Peripheral Interface (SPI). 5.1.1.10 Analog-to-Digital (A/D) Converter. 5.1.1.11 Other System Controls 5.1.2 CONFIG Register Allows Flexible Configuration 5.1.3 Mode Operation Established 5.1.4 Program Counter Loaded with Reset Vector Causes Reset 5.2.1 Power-On Reset (POR) 5.2.2 Watchdog Timer Reset 5.2.3 Clock Monitor Reset 5.2.4 External Reset 5-10 Interrupt Process 5-11 5.3.1 Interrupt Recognition Stacking Registers 5-12 5.3.2 Selecting Interrupt Vectors 5-12 5.3.3 Return from Interrupt 5-20 Non-Maskable Interrupts 5-20 5.4.1 Non-Maskable Interrupt Request (XIRQ) 5-21 5.4.2 Illegal Opcode Fetch. 5-22 5.4.3 Software Interrupt 5-23 Maskable Interrupts 5-23 5.5.1 Condition Code Register 5-23 5.5.2 Special Considerations I-Bit-Related Instructions 5-24 Interrupt Request 5-25 5.6.1 Selecting Edge Triggering Level Triggering 5-25 5.6.2 Sharing Vector with Handshake Interrupts 5-26 Interrupts from Internal Peripheral Subsystems. 5-26 5.7.1 Inhibiting Individual Sources 5-27 5.7.2 Clearing Interrupt Status Flag Bits 5-27 5.7.3 Automatic Clearing Mechanisms Some Flags 5-27 Section CENTRAL PROCESSING UNIT Programmer's Model 6.1.1 Accumulators 6.1.2 Index Registers 6.1.3 Stack Pointer (SP) 6.1.4 Program Counter (PC) 6.1.5 Condition Code Register (CCR) Addressing Modes 6.2.1 Immediate (IMM) M68HC11 REFERENCE MANUAL TABLE CONTENTS MOTOROLA Paragraph Number Page Number 6.2.2 Extended (EXT) 6.2.3 Direct (DIR). 6.2.4 Indexed (INDX, INDY) 6.2.5 Inherent (INH) 6-10 6.2.6 Relative (REL) 6-10 M68HC11 Instruction 6-11 6.3.1 Accumulator Memory Instructions 6-11 6.3.1.1 Loads, Stores, Transfers. 6-11 6.3.1.2 Arithmetic Operations 6-12 6.3.1.3 Multiply Divide 6-13 6.3.1.4 Logical Operations 6-14 6.3.1.5 Data Testing Manipulation 6-14 6.3.1.6 Shifts Rotates 6-14 6.3.2 Stack Index Register Instructions 6-15 6.3.3 Condition Code Register Instructions 6-17 6.3.4 Program Control Instructions 6-17 6.3.4.1 Branches 6-18 6.3.4.2 Jumps 6-19 6.3.4.3 Subroutine Calls Returns (BSR, JSR, RTS) 6-19 6.3.4.4 Interrupt Handling (RTI, SWI, WAI) 6-19 6.3.4.5 Miscellaneous (NOP, STOP, TEST). 6-19 Section PARALLEL INPUT/OUTPUT Parallel Overview Parallel Register Control Explanations 7.2.1 Port Registers 7.2.2 Data Direction Registers. Detailed Descriptions 7.3.1 Port 7.3.1.1 PA[2:0] (IC[3:1]) Logic 7.3.1.2 PA[6:3] (OC[5:2]) Logic 7.3.1.3 (OC1, PAI) Logic 7.3.1.4 Port Idealized Timing 7-11 7.3.2 Port 7-11 7.3.2.1 Port Logic 7-12 7.3.2.2 Port Idealized Timing 7-13 7.3.2.3 Special Considerations Port MC68HC24 7-13 7.3.3 (STRB) 7-14 7.3.3.1 (STRB) Logic 7-14 7.3.3.2 Special Considerations STRB MC68HC24 7-16 7.3.4 Port 7-16 7.3.4.1 Port Logic Expanded Modes 7-16 7.3.4.2 Summary Port Idealized Expanded-Mode Timing 7-17 7.3.4.3 Port Single-Chip Mode Logic 7-18 7.3.4.4 Port Idealized Single-Chip Mode Timing. 7-21 7.3.4.5 Special Considerations Port MC68HC24 7-23 7.3.5 (STRA) 7-23 7.3.5.1 (STRA) Logic 7-23 7.3.5.2 Special Considerations STRA MC68HC24 7-25 7.3.6 Port 7-25 7.3.6.1 (RxD) Logic 7-25 MOTOROLA TABLE CONTENTS M68HC11 REFERENCE MANUAL Paragraph Number Page Number 7-27 7-29 7-31 7-33 7-35 7-37 7-39 7-39 7-40 7-41 7-42 7-42 7-43 7-43 7-44 7-45 7-45 7-46 7-48 7.3.6.2 (TxD) Logic. 7.3.6.3 (MISO) Logic 7.3.6.4 (MOSI) Logic 7.3.6.5 (SCK) Logic 7.3.6.6 (SS) Logic. 7.3.6.7 Idealized Port Timing 7.3.7 Port 7.3.7.1 Port Logic 7.3.7.2 Idealized Port Timing Handshake Subsystem 7.4.1 Simple Strobe Mode 7.4.1.1 Port Strobe Output. 7.4.1.2 Port Simple Latching Input 7.4.2 Full-input Handshake Mode 7.4.3 Full-Output Handshake Mode. 7.4.3.1 Normal Output Handshake 7.4.3.2 Three-State Variation Output Handshake 7.4.4 Parallel Control Register (PIOC). 7.4.5 Non-Handshake Uses STRA STRB Pins Section SYNCHRONOUS SERIAL PERIPHERAL INTERFACE Transfer Formats. 8.1.1 Clock Phase Polarity Controls 8.1.2 CPHA Equals Zero Transfer Format 8.1.3 CPHA Equals Transfer Format Block Diagram Signals Registers 8.4.1 Port Data Direction Control Register (DDRD) 8.4.2 Control Register (SPCR) 8.4.3 Status Register (SPSR) System Errors 8.5.1 Mode-Fault Error 8.5.2 Write-Collision Errors 8-10 Beginning Ending Transfers 8-10 8.6.1 Transfer Beginning Period (Initiation Delay) 8-11 8.6.2 Transfer Ending Period. 8-12 Transfers Peripherals with Word Lengths 8-14 8.7.1 Example 8-1: On-Chip Driving MC144110 8-16 8.7.2 Example 8-2: Software Driving MC144110 8-16 Section ASYNCHRONOUS SERIAL COMMUNICATIONS INTERFACE General Description 9.1.1 Transmitter Block Diagram 9.1.2 Receiver Block Diagram Registers Control Bits 9.2.1 Port Related Registers Control Bits (PORTD, DDRD, SPCR) 9.2.2 Baud-Rate Control Register (BAUD) 9.2.3 Control Register (SCCR1) 9.2.4 Control Register (SCCR2) 9-10 M68HC11 REFERENCE MANUAL TABLE CONTENTS MOTOROLA Paragraph Number Page Number 9.2.5 Status Register (SCSR). 9-11 9.2.6 Data Register (SCDR) 9-14 Transmitter 9.3.1 Eight- Nine-Bit Data Modes 9.3.2 Interrupts Status Flags 9.3.3 Send Break. 9.3.4 Queued Idle Character 9.3.5 Disabling Transmitter. 9.3.6 Buffer Logic. Receiver 9.4.1 Data Sampling Technique 9.4.2 Worst-Case Baud-Rate Mismatch 9.4.3 Double-Buffered Operation. 9.4.4 Receive Status Flags Interrupts 9.4.5 Receiver Wake-Up Operation. Baud-Rate Generator. 9.5.1 Timing Chain Block Diagram 9.5.2 Baud Rates Crystal Frequency Timing Details 9.6.1 Operation Transmitter Enabled 9.6.2 TDRE Transfers from SCDR Transmit Shift Register 9.6.3 Character Completion 9.6.4 RDRF Flag Setting Received Character. 9-14 9-15 9-16 9-16 9-17 9-18 9-18 9-20 9-20 9-26 9-28 9-28 9-29 9-30 9-30 9-30 9-30 9-31 9-33 9-34 9-35 Section MAIN TIMER REAL-TIME INTERRUPT 10.1 General Description 10-1 10.1.1 Overall Timer Block Diagram 10-2 10.1.2 Input-Capture Concept 10-2 10.1.3 Output-Compare Concept 10-4 10.2 Free-Running Counter Prescaler 10-5 10.2.1 Overall Clock Divider Structure 10-5 10.2.1.1 Prescaler 10-7 10.2.1.2 Overflow 10-10 10.2.1.3 Counter Bypass (Test Mode) 10-11 10.2.2 Real-Time Interrupt (RTI) Function. 10-11 10.2.3 Watchdog Function 10-13 10.2.4 Tips Clearing Timer Flags 10-14 10.3 Input-Capture Functions. 10-15 10.3.1 Programmable Options. 10-17 10.3.2 Using Input Capture Measure Period Frequency 10-18 10.3.3 Using Input Capture Measure Pulse Width 10-20 10.3.4 Measuring Very Short Time Periods. 10-24 10.3.5 Measuring Long Time Periods with Input Capture Overflow 10-24 10.3.6 Establishing Relationship between Software Event 10-27 10.3.7 Other Uses Input-Capture Pins 10-28 10.4 Output-Compare Functions 10-28 10.4.1 Normal Control Using OC[5:2] 10-32 10.4.2 Advanced Control Using 10-35 10.4.2.1 Output Compare Controlling Five Pins 10-35 10.4.2.2 Output Compares Controlling 10-36 MOTOROLA viii TABLE CONTENTS M68HC11 REFERENCE MANUAL Paragraph Number Page Number 10.4.3 Forced Output Compares 10-38 10.5 Timing Details Main Timer System. 10-39 10.6 Listing Timer Examples 10-42 Section PULSE ACCUMULATOR 11.1 General Description 11.1.1 Pulse Accumulator Block Diagram 11.1.2 Pulse Accumulator Control Status Registers. 11.2 Event Counting Mode. 11.2.1 Interrupting after Events 11.2.2 Counting More Than Events 11.3 Gated Time Accumulation Mode 11.3.1 Measuring Times Longer Than Range 8-Bit Counter 11.3.2 Configuring Interrupt after Specified Time 11.4 Other Uses Pin. 11.5 Timing Details Pulse Accumulator 11-1 11-2 11-3 11-6 11-6 11-6 11-7 11-8 11-9 11-9 11-9 Section ANALOG-TO-DIGITAL CONVERTER SYSTEM 12.1 Charge-Redistribution 12-1 12.2 Converter Implementation MC68HC11A8 12-12 12.2.1 MC68HC11A8 Successive-Approximation Converter 12-12 12.2.2 Charge Pump Resistor-Capacitor (RC) Oscillator 12-13 12.2.3 MC68HC11A8 System Control Logic 12-14 12.2.4 Control/Status Register (ADCTL) 12-15 12.2.5 Result Registers (ADR[4:1]) 12-17 12.3 Connection Considerations. 12-17 Appendix INSTRUCTION DETAILS Introduction Nomenclature Appendix BOOTLOADER LISTINGS INDEX M68HC11 REFERENCE MANUAL TABLE CONTENTS MOTOROLA MOTOROLA TABLE CONTENTS M68HC11 REFERENCE MANUAL LIST FIGURES Figure 2-10 2-11 2-12 2-13 2-14 2-15 2-16 2-17 2-18 2-19 2-20 2-21 2-22 2-23 2-24 Title Page Block Diagram M68HC11 Programmer's Model Part Numbering MC68HC11A8 Assignments MC68HC11D3/711D3 Assignments MC68HC11E9/711E9 Assignments (52-Pin PLCC) MC68HC811E2 Assignments (48-Pin DIP) MC68HC11F1 Assignments (68-Pin PLCC) MC68HC24 Assignments Reduced MODA/LIR Connections 2-10 Standby MODB/VSTBY Connections 2-11 High-Frequency Crystal Connections 2-12 Low-Frequency Crystal Connections 2-12 Crystal Layout Example 2-13 Reset Circuit Example 2-17 Low-Pass Filter Reference Pins 2-19 CMOS Inverter 2-22 Internal Circuitry Digital Input-Only 2-25 Internal Circuitry Analog Input-Only 2-27 Internal Circuitry Digital 2-28 Internal Circuitry Input/Open-Drain-Output 2-29 Internal Circuitry Output-Only 2-29 Internal Circuitry MODB/VSTBY 2-30 Internal Circuitry IRQ/VPPBULK 2-31 Basic Single-Chip-Mode Connections 2-32 Basic Expanded Mode Connections (Sheet 2-35 Basic Expanded Mode Connections (Sheet 2-36 Schematic Figure (Sheet 3-21 Schematic Figure (Sheet 3-22 Program Check/Change CONFIG 3-23 Topological Arrangement EEPROM Bytes (MC68HC11A8) Topological Arrangement Bits EEPROM Byte Condensed Schematic EEPROM Array EEPROM Cell Terminology Erasing EEPROM Byte Programming EEPROM Byte Reading EEPROM Byte Erase-Before-Write Programming Method 4-24 M68HC11 REFERENCE MANUAL LIST FIGURES MOTOROLA Figure 4-10 4-11 7-10 7-11 7-12 7-13 7-14 7-15 7-16 7-17 7-18 7-19 7-20 7-21 7-22 7-23 7-24 7-25 7-26 7-27 Title Page Program-More-Zeros Programming Method 4-24 Selective-Write Programming Method 4-25 Composite Programming Method 4-26 Typical External Reset Circuit 5-11 Processing Flow Resets (Sheet 5-16 Processing Flow Resets (Sheet 5-17 Interrupt Priority Resolution (Sheet 5-18 Interrupt Priority Resolution (Sheet 5-19 Interrupt Source Resolution within 5-20 M68HC11 Programmer's Model Parallel Registers Control Bits Logic Registers Control Bits Special Symbols used Logic Diagrams PA[2:0] (IC[3:1]) Logic PA[6:3] (OC[5:2]) Logic (OC1, PAI) Logic 7-10 Idealized Port Timing 7-11 Port Logic 7-12 Idealized Port Timing 7-13 (STRB) Logic 7-15 Port Expanded Mode Logic 7-17 Summary Idealized Port Expanded-Mode Timing 7-19 Port Single-Chip Mode Logic 7-20 Idealized Port Single-Chip Mode Timing 7-22 (STRA) Logic 7-24 (RxD) Logic 7-26 (TxD) Logic 7-28 (MISO) Logic 7-30 (MOSI) Logic 7-32 (SCK) Logic 7-34 (SS) Logic 7-36 Idealized Port Timing 7-38 Port Logic 7-40 Idealized Port Timing 7-41 Idealized Timing Simple Strobe Operations 7-42 Idealized Timing Full-Input Handshake 7-44 Idealized Timing Full-Output Handshake 7-45 MOTOROLA LIST FIGURES M68HC11 REFERENCE MANUAL Figure 8-10 8-11 8-12 9-10 9-11 9-12 9-13 9-14 9-15 9-16 10-1 10-2 10-3 10-4 10-5 10-6 10-7 10-8 10-9 10-10 10-11 Title Page CPHA Equals Zero Transfer Format CPHA Equals Transfer Format System Block Diagram Delay from Write SPDR Transfer Start (Master) 8-12 Transfer Ending Master 8-13 Transfer Ending Slave 8-14 Hardware Hookup Examples 8-15 Register Definitions Variables Examples 8-16 Example Software Listing (Sheet 8-17 Timing Analysis Example 8-19 Example Software Listing 8-20 Timing Analysis Example (Sheet 8-21 Transmitter Block Diagram Receiver Block Diagram Logic Block Diagram 9-19 Start Ideal Case 9-22 Start Noise Case 9-22 Start Noise Case 9-23 Start Noise Case Three 9-24 Start Noise Case Four 9-24 Start Noise Case Five 9-25 Start Noise Case 9-25 Baud-Rate Frequency Tolerance 9-27 Baud-Rate Generator Block Diagram 9-31 Transmitter Enable Timing Details 9-33 Write SCDR Serial Data Start 9-34 Ending Details Transmission 9-35 RDRF Flag-Setting Details 9-36 Main Timer System Block Diagram 10-3 Timing Summary Oscillator Divider Signals 10-6 Major Clock Divider Chains MC68HC11A8 10-9 Measuring Period with Input Capture 10-19 Timing Analysis Example 10-1 10-19 Measuring Pulse Width with Input Capture 10-22 Timing Analysis Example 10-2 10-23 Measuring Long Periods with Input Capture (Sheet 10-26 Simple Output-Compare Example 10-31 Generating Square Wave with Output Compare 10-33 Timing Analysis Example 10-5 10-34 M68HC11 REFERENCE MANUAL LIST FIGURES MOTOROLA xiii Figure 10-12 10-13 10-14 10-15 10-16 11-1 11-2 11-3 11-4 11-5 11-6 11-7 12-1 12-2 12-3 12-4 12-5 12-6 Title Page Producing Outputs with OC1, OC2, 10-37 Timer Counter Leaves Reset 10-40 Timer Counter Read Cycle-by-Cycle Analysis 10-40 Input-Capture Timing Details 10-41 Output-Compare Timing Details 10-42 Pulse Accumulator Operating Modes 11-1 Block Diagram Pulse Accumulator Subsystem 11-3 Pulse Accumulator Control Status Register Summary 11-4 Edge-Detection Timing 11-10 Enable Counting (Gated Accumulation Mode) 11-10 Timing Details Pulse Accumulator Counter Overflow 11-11 PACNT Read Write 11-12 Basic Charge-Redistribution 12-2 Charge-Redistribution with Quantization Error 12-9 MC68HC11A8 Sample Mode 12-12 Timing Diagram Sequence Four Conversions 12-15 Electrical Model Input (Sample Mode) 12-17 Graphic Estimation Analog Sample Level (Case 12-21 MOTOROLA LIST FIGURES M68HC11 REFERENCE MANUAL LIST TABLES Table Title Page M68HC11 Family Members Hardware Mode Select Summary. Ports STRA, STRB Pins 2-21 Hardware Mode Select Summary. Watchdog Rates Crystal Frequency 3-10 Bootstrap Mode Pseudo-Vectors. 3-18 Hardware Mode Select Summary. Reset Vector Cause Mode. Watchdog Rates Crystal Frequency Highest Priority Interrupt PSEL[3:0] 5-14 Baud-Rate Prescale Selects. Baud-Rate Selects. Baud Rates Crystal Frequency, SCP[1:0] SCR[2:0] 9-32 10-1 10-2 10-3 10-4 Crystal Frequency PR1, Values 10-10 Rates RTR1, RTR0 Various Crystal Frequencies. 10-13 Time-Out CR1, Values 10-14 Instruction Sequences Clear 10-15 11-1 Pulse Accumulator Timing Periods Crystal Rate 11-2 M68HC11 REFERENCE MANUAL LIST TABLES MOTOROLA SECTION GENERAL DESCRIPTION This reference manual will valuable development M68HC11 applications. Detailed descriptions internal subsystems functions have been developed carefully checked against internal Motorola design documentation, making this manual most comprehensive reference available M68HC11 Family microcontroller units (MCUs). Practical applications included demonstrate operation each subsystem. These applications treated complete systems, including hardware/software interactions trade-offs. Interfacing techniques prevent component damage discussed hardware designer. software programmers, SECTION CENTRAL PROCESSING UNIT APPENDIX INSTRUCTION DETAILS contain examples demonstrating efficient instruction set. This manual intended complement Motorola's official data sheet, replace information data sheet current guaranteed production testing. Although information this manual checked against parts design documentation, accuracy guaranteed like data sheet guaranteed. This manual assumes reader some basic knowledge MCUs assembly-language programming; appropriate instruction manual first-time user. information this manual much more detailed than would usually required normal MCU, user familiar with detailed operation part more likely find solution unexpected system problem. many cases, trick based software on-chip resources used rather than building expensive external circuitry. Data sheets geared toward customary, straightforward on-chip peripherals; whereas, experienced user often uses these on-chip systems very unexpected ways. level detail this manual will help normal user better understand on-chip systems will allow more advanced user make maximum subtleties these systems. addition this manual, data sheet(s) technical summary needed specific version(s) M68HC11 being used. pocket reference guide another beneficial source. General Description MC68HC11A8 HCMOS MC68HC11A8 advanced 8-bit with highly sophisticated, onchip peripheral capabilities. design techniques were used achieve nominal speed MHz. addition, fully static design allows operation frequencies down further reducing power consumption. HCMOS technology used MC68HC11A8 combines smaller size higher M68HC11 REFERENCE MANUAL GENERAL DESCRIPTION MOTOROLA speeds with power high noise immunity CMOS. On-chip memory systems include Kbytes read-only memory (ROM), bytes electrically erasable programmable (EEPROM), bytes random-access memory (RAM). Major peripheral functions provided on-chip. eight-channel analog-to-digital converter included with eight bits resolution. asynchronous serial communications interface (SCI) separate synchronous serial peripheral interface (SPI) included. main 16-bit, free-running timer system three input-capture lines, five output-compare lines, real-time interrupt function. 8-bit pulse accumulator subsystem count external events measure external periods. Self-monitoring circuitry included on-chip protect against system errors. computer operating properly (COP) watchdog system protects against software failures. clock monitor system generates system reset case clock lost runs slow. illegal opcode detection circuit provides non-maskable interrupt illegal opcode detected. software-controlled power-saving modes, WAIT STOP, available conserve additional power. These modes make M68HC11 Family especially attractive automotive battery-driven applications. Figure block diagram MC68HC11A8 MCU. This diagram shows major subsystems they relate pins MCU. lower right-hand corner this diagram, parallel subsystem shown inside dashed box. functions this subsystem lost when operated expanded modes, MC68HC24 port replacement unit used regain functions that were lost. functions restored such that software programmer unable tell difference between single-chip system expanded system containing MC68HC24. using expanded system containing MC68HC24 external EPROM, user develop software intended single-chip application. Programmer's Model addition executing M6800 M6801 instructions, M68HC11 instruction includes opcodes. nomenclature M68xx used conjunction with specific architecture instruction opposed MC68HC11xx nomenclature, which reference specific member M68HC11 Family MCUs. Figure shows seven registers available programmer. 8bit accumulators used some instructions single 16-bit accumulator called register, which allows 16-bit operations even though technically 8-bit processor. largest group instructions added involve index register. Twelve manipulation instructions that operate memory register location were added. exchange with exchange with instructions used quickly index values into double accumulator where 16-bit arithmetic used. 16-bit 16-bit divide instructions also included. MOTOROLA GENERAL DESCRIPTION M68HC11 REFERENCE MANUAL MODA/ MODB/ VSTBY XTAL EXTAL IRQ/ XIRQ RESET KBYTES MODE CONTROL PERIODIC INTERRUPT OSCILLATOR CLOCK LOGIC INTERRUPT LOGIC BYTES EEPROM BYTES PULSE ACCUMULATOR ADDRESS/DATA TIMER SYSTEM EXPANSION ADDRESS MOSI MISO STROBE HANDSHAKE PARALLEL CONVERTER CONTROL PORT PORT PORT CONTROL PORT PORT PA7/PAI/OC1 PA6/OC2/OC1 PA5/OC3/OC1 PA4/OC4/OC1 PA3/OC5/OC1 PA2/IC1 PA1/IC2 PA0/IC3 PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD1/TxD PD0/RxD SINGLE CHIP MODE A7/D7 A6/D6 A5/D5 A4/D4 A3/D3 A2/D2 A1/D1 A0/D0 EXPANDED MODE CIRCUITRY ENCLOSED DOTTED LINE EQUIVALENT MC68HC24. Figure Block Diagram M68HC11 REFERENCE MANUAL GENERAL DESCRIPTION PE7/AN7 PE6/AN6 PE5/AN5 PE4/AN4 PE3/AN3 PE2/AN2 PE1/AN1 PE0/AN0 STRB STRA MOTOROLA 8-BIT ACCUMULATORS 16-BIT DOUBLE ACCUMULATOR INDEX REGISTER INDEX REGISTER STACK POINTER PROGRAM COUNTER CONDITION CODES CARRY/BORROW FROM OVERFLOW ZERO NEGATIVE I-INTERRUPT MASK HALF CARRY (FROM X-INTERRUPT MASK STOP DISABLE Figure M68HC11 Programmer's Model Product Derivatives M68HC11 Family MCUs composed several members (see Table 1-1), members being developed. Figure explains product part numbers constructed. MOTOROLA GENERAL DESCRIPTION M68HC11 REFERENCE MANUAL 11XX QUALIFICATION LEVEL FULLY SPECIFIED QUALIFIED PILOT PRODUCTION DEVICE ENGINEERING SAMPLE NUMERIC DESIGNATOR (OPTIONAL) OPERATING VOLTAGE RANGE HCMOS (VDD ±10%) HCMOS (VDD VDC) OPTION (ONLY A-SERIES DEVICES) NONE DISABLED ENABLED MEMORY TYPE BLANK MASKED EPROM/OTPROM EEPROM BASE PART NUMBER 11A8, 11D3, 11E9, 11K4, ETC. MONITOR MASK NONE BLANK BUFFALO TEMPERATURE RANGE NONE 40°C 40°C 40°C 70°C 85°C 105°C 125°C PACKAGE TYPE 44/52/68/84-PIN PLCC 44/52/68/84-PIN CLCC 64/80-PIN 44-PIN 112-PIN TQFP 80/100-PIN TQFP 52-PIN TQFP 40/48-PIN 48-PIN SDIP MAXIMUM SPECIFIED CLOCK SPEED TAPE REEL OPTION NONE STANDARD PACKAGING TAPE REEL PACKAGING HC11 PART NUMBERING Figure Part Numbering M68HC11 REFERENCE MANUAL GENERAL DESCRIPTION MOTOROLA Table M68HC11 Family Members Part Number MC68HC11A8 MC68HC11A1 MC68HC11A0 MC68HC811A MC68HC11E9 MC68HC11E1 MC68HC11E0 MC68HC811E MC68HC711E MC68HC11D3 MC68HC711D MC68HC11F1 MC68HC11K4 MC68HC711K MC68HC11L6 MC68HC711L6 EPROM EEPROM 5121 CONFIG2 $FF3 $FF3 Comments Family Built Around This Device with Disabled with EEPROM Disabled EEPROM Emulator Four Input Capture/Bigger with Disabled with EEPROM Disabled Part Expanded Systems One-Time Programmable Version Low-Cost 40-Pin Version One-Time Programmable Version High-Performance Non-Multiplexed 6B-Pin Mbyte memory space, PWM, 84-Pin One-Time Programmable Version Like with more more I/O, One-Time Programmable Version 1.The EEPROM relocatable Kbyte memory page. Relocation done with upper four bits CONFIG register. CONFIG register values this table reflect value programmed prior shipment from Motorola. time this printing change being considered that would make this value $0F. MOTOROLA GENERAL DESCRIPTION M68HC11 REFERENCE MANUAL SECTION PINS CONNECTIONS This section discusses functions each MC68HC11A8. Most pins this microcontroller unit (MCU) serve more functions. Information about practical each presented these descriptions. This section also includes information concerning pins that exposed illegal levels conditions. most common source illegal levels conditions transient noise; however, designer wish take precautions against potential misapplication product failures other system components such power supplies. Consideration these factors influence end-product reliability. basic connections single-chip-mode expanded-mode applications presented Typical Single-Chip-Mode System Connections Typical Expanded-Mode-System Connections. These basic systems used starting point user application minimize time required achieve working prototype system. explanation these basic systems includes information concerning additions, such additional memory expanded system. System noise generation susceptibility primarily depend each system environment. MC68HC11A8 designed higher speeds than earlier MCUs; since high-density complementary metal-oxide semiconductor (HCMOS), signals drive from rail rail, unlike earlier N-channel metal-oxide semiconductor (NMOS) processors. Since these factors significantly affect noise issues, system designer should consider these changes. Packages Names following figures show assignments several members M68HC11 Family. assignments MC68HC24 port replacement unit (PRU) also presented reference although discussed detail this manual. Detailed mechanical data packages found data sheets technical summaries. Ordering information, which relates part number suffixes package types operating temperature range, also found data sheets technical summaries. 2.1.1 MC68HC11A8 MC68HC11A8 available either 52-pin plastic leaded chip carrier (PLCC) package 48-pin dual-in-line package (DIP). silicon identical both packages, four analog-to-digital (A/D) converter inputs bonded pins 48-pin DIP. MC68HC11A1 MC68HC11A0 devices also same MC68HC11A8, except that contents nonvolatile CONFIG register determine whether internal read-only memory (ROM) and/or electrically M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA erasable programmable (EEPROM) disabled. These downgraded device versions have identical assignments MC68HC11A8. Figure shows assignments MC68HC11A8 52-pin PLCC package 48-pin package. MODB/VSTBY STRB/R/W MODA/LIR STRA/AS PE7/AN7 PE3/AN3 PE6/AN6 PE2/AN2 PA7/PAI/OC1 PA6/OC2/OC1 PA5/OC3/OC1 PA4/OC4/OC1 PE5/AN5 PA3/OC5/OC1 PE1/AN1 PA2/IC1 PE4/AN4 PA1/IC2 PE0/AN0 PA0/IC3 PB0/A8 PB7/A15 PB1/A9 PB6/A14 PB2/A10 PB3/A11 PB4/A12 PB5/A13 PB6/A14 PB7/A15 PA0/IC3 PB5/A13 PB4/A12 PB3/A11 PB2/A10 PB1/A9 PB0/A8 PE0/AN0 PE1/AN1 PE2/AN2 PE3/AN3 MODB/V STBY PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD1/TxD PD0/RxD XIRQ RESET PC7/A7/D7 PC6/A6/D6 PC5/A5/D5 PC4/A4/D4 PC3/A3/D3 PC2/A2/D2 PC1/A1/D1 PC0/A0/D0 XTAL EXTAL STRB/R/W STRA/AS MODA/LIR EXTAL XTAL PC0/A0/D0 PC1/A1/D1 PC2/A2/D2 PC3/A3/D3 PC4/A4/D4 PC5/A5/D5 PC6/A6/D6 PC7/A7/D7 RESET XIRQ PD0/RxD PD1/TxD PD2/MISO PD3/MOSI PD4/SCK PD5/SS PA7/PAI/OC1 PA6/OC2/OC1 PA5/OC3/OC1 PA4/OC4/OC1 PA3/OC5/OC1 PA2/IC1 PA1/IC2 MC68HC11A8 MC68HC11A8 Figure MC68HC11A8 Assignments 2.1.2 MC68HC11D3/711D3 MC68HC11D3 available either 44-pin PLCC package 40-pin package. silicon identical both packages, PLCC version additional output compare pins bonded extra named EVSS. MC68HC711D3 functionally equivalent MC68HC11D3 Kbytes EPROM instead mask programmed ROM. MC68HC711D3 available one-time-programmable (OTP) opaque plastic package ceramic windowed package development applications. Figure shows assignments MC68HC11D3/711D3 44-pin PLCC package 40-pin package. MOTOROLA PINS CONNECTIONS M68HC11 REFERENCE MANUAL PC3/ADDR3 PC2/ADDR2 PC1/ADDR1 PC0/ADDR0 MODA/LIR MODB/VSTBY PC0/ADDR0 PC1/ADDR1 PC2/ADDR2 XTAL EXTAL MODA/LIR MODB/VSTBY PB0/ADDR8 PB1/ADDR9 PB2/ADDR10 PB3/ADDR11 PB4/ADDR12 PB5/ADDR13 PB6/ADDR14 PB7/ADDR15 PA0/IC3 PA1/IC2 PA2/IC1 PA3/IC4/OC5/OC1 PA5/OC3/OC1 PA7/PAI/OC1 EXTAL XTAL EVSS PC4/ADDR4 PC5/ADDR5 PC6/ADDR6 PC7/ADDR7 XIRQ/VPP PD7/R/W PD6/AS RESET PD0/RxD PD1/TxD PB0/ADDR8 PB1/ADDR9 PB2/ADDR10 PB3/ADDR11 PB4/ADDR12 PB5/ADDR13 PB6/ADDR14 PB7/ADDR15 PA0/IC3 PA1/IC2 PC3/ADDR3 PC4/ADDR4 PC5/ADDR5 PC6/ADDR6 PC7/ADDR7 XIRQ/VPP PD7/R/W PD6/AS RESET PD0/RxD PD1/TxD PD2/MISO PD3/MOSI PD4/SCK PD5/SS MC68HC(7)11D3 MC68HC(7)11D3 PA3/IC4/OC5/OC1 PA5/OC3/OC1 PA4/OC4/OC1 PD2/MISO PD3/MOSI PD4/SCK Figure MC68HC11D3/711D3 Assignments 2.1.3 MC68HC11E9/711E9 MC68HC11E9 available 52-pin PLCC package only. MC68HC11E1 MC68HC11E0 devices also same MC68HC11E9, except that contents nonvolatile CONFIG register determine whether internal and/or EEPROM disabled. These downgraded device versions have identical assignments MC68HC11E9. MC68HC11E9 upgrade MC68HC11A8. MC68HC11E9 Kbytes mask ROM, bytes EEPROM, bytes RAM. timer system allows output-compare channel reconfigured fourth input-capture channel. MC68HC711E9 functionally equivalent MC68HC11E9 Kbytes EPROM instead mask programmed ROM. MC68HC711E9 available one-time programmable (OTP) opaque plastic package ceramic windowed package development applications. Figure shows assignments MC68HC11E9 52-pin PLCC packages. These assignments same MC68HC11A8, except name PA3/OC5/IC4/OC1 pin. M68HC11 REFERENCE MANUAL PA6/OC2/OC1 PA7/PAI/OC1 PINS CONNECTIONS PA2/IC1 PD5/SS MOTOROLA MODB/VSTBY STRB/R/W MODA/LIR STRA/AS PE7/AN7 PE3/AN3 PE6/AN6 PE2/AN2 PE5/AN5 PE1/AN1 PE4/AN4 PE0/AN0 PB0/A8 PB1/A9 PB2/A10 PB3/A11 PB4/A12 PB5/A13 PB6/A14 PB7/A15 PA0/IC3 PA1/IC2 EXTAL PA6/OC2/OC1 PA7/PAI/OC1 XTAL PC0/A0/D0 PC1/A1/D1 PC2/A2/D2 PC3/A3/D3 PC4/A4/D4 PC5/A5/D5 PC6/A6/D6 PC7/A7/D7 RESET XIRQ PD0/RxD PD1/TxD PD2/MISO PD3/MOSI PD4/SCK PD5/SS PA5/OC3/OC1 PA4/OC4/OC1 PA3/OC5/OC1 PA2/IC1 MC68HC11E9 Figure MC68HC11E9/711E9 Assignments (52-Pin PLCC) 2.1.4 MC68HC811E2 MC68HC811E2 very similar MC68HC11E9 version, except on-chip memory. MC68HC811E2 includes Kbytes EEPROM, which remapped upper half Kbyte page Kbyte map. There masked memory MC68HC811E2. MC68HC811E2 available either 52-pin PLCC package 48-pin DIP. silicon used same both packages, four converter inputs bonded pins 48-pin package. MC68HC811E2 version replaces earlier version called MC68HC811A2. only significant difference between MC68HC811E2 MC68HC811A2 that MC68HC811E2 slightly more flexible timer system, which allows output-compare channel reconfigured fourth input-capture channel. 52-pin PLCC package version MC68HC811E2 identical assignments MC68HC11E9 assignments shown Figure 2-3. Figure illustrates assignments MC68HC811E2 48-pin DIP. MOTOROLA PINS CONNECTIONS M68HC11 REFERENCE MANUAL PA7/PAI/OC1 PA6/OC2/OC1 PA5/OC3/OC1 PA4/OC4/OC1 PA3/OC5/OC1 PA2/IC1 PA1/IC2 PA0/IC3 PB7/A15 PB6/A14 PB5/A13 PB4/A12 PB3/A11 PB2/A10 PB1/A9 PB0/A8 PE0/AN0 PE1/AN1 PE2/AN2 PE3/AN3 MODB/V STBY PD5/SS PD4/SCK PD3/MOSI PD2/MISO PD1/TxD PD0/RxD XIRQ RESET PC7/A7/D7 PC6/A6/D6 PC5/A5/D5 PC4/A4/D4 PC3/A3/D3 PC2/A2/D2 PC1/A1/D1 PC0/A0/D0 XTAL EXTAL STRB/R/W STRA/AS MODA/LIR MC68HC811E2 Figure MC68HC811E2 Assignments (48-Pin DIP) 2.1.5 MC68HC11F1 MC68HC11F1 available 68-pin PLCC package only. MC68HC11F1 first non-multiplexed address/data version M68HC11 family. addition non-multiplexed bus, this includes Kbyte on-chip intelligent chip selects simple connection external program memory without need external logic chips. Other on-chip peripherals similar MC68HC11E9. Figure shows assignments MC68HC11F1 68-pin PLCC package. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA MODB/VSTBY DATA0/PC0 MODA/LIR PE7/AN7 PE3/AN3 PE6/AN6 PE2/AN2 PE5/AN5 PE1/AN2 4XOUT EXTAL XTAL DATA1/PC1 DATA2/PC2 DATA3/PC3 DATA4/PC4 DATA5/PC5 DATA6/PC6 DATA7/PC7 RESET XIRQ CSPROG/PG7 CSGEN/PG6 CSIO1/PG5 CSIO2/PG4 PE4/AN4 PE0/AN0 PF0/ADDR0 PF1/ADDR1 PF2/ADDR2 PF3/ADDR3 PF4/ADDR4 PF5/ADDR5 PF6/ADDR6 PF7/ADDR7 PB0/ADDR8 PB1/ADDR9 PB2/ADDR10 PB3/ADDR11 PB4/ADDR12 PB5/ADDR13 PB6/ADDR14 MC68HC11F1 OC2/OC1/PA6 OC3/OC1/PA5 OC4/OC1/PA4 OC5/OC1/PA3 IC3/PA0 PAI/OC1/PA7 Figure MC68HC11F1 Assignments (68-Pin PLCC) 2.1.6 MC68HC24 Port Replacement Unit MC68HC24 available either 44-pin PLCC package 40-pin DIP. Figure shows assignments MC68HC24 44-pin PLCC package 40-pin package. MOTOROLA PINS CONNECTIONS ADDR15/PB7 MISO/PD2 MOSI/PD3 SCK/PD4 RxD/PD0 TxD/PD1 IC1/PA2 IC2/PA1 SS/PD5 M68HC11 REFERENCE MANUAL TEST MODE TEST RESET STRA STRB MODE RESET STRA MC68HC24 MC68HC24 STRB Figure MC68HC24 Assignments Descriptions This section provides pin-by-pin description MCU. general, designer should consider possible functions each when designing into application system. SECTION PARALLEL INPUT/OUTPUT contains transistor-level schematics logic associated with each pins. SECTION CONFIGURATION MODES OPERATION discusses pins that operate multiplexed address/data expanded modes operation well functions other pins related mode selection control. reset interrupt pins presented again SECTION RESETS INTERRUPTS. Sections through discuss pins related on-chip peripherals presented those sections. Figure pin-function-oriented block diagram MC68HC11A8, which good reference development verification application designs. 2.2.1 Power-Supply Pins (VDD VSS) Power supplied using these pins. positive power input, ground. MC68HC11A8 uses single power supply, some applications, there also optional power supplies reference and/or battery backup on-chip random-access memory (RAM). These additional power sources optional, MCU, including A/D, operate from single (nominal) power supply. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA Although MC68HC11A8 CMOS device, very fast signal transitions present many pins. Even when operating slow clock rates, short rise fall times present. Depending upon loading these fast signals, significant short-duration current demands placed power supply. Special care must taken provide good power-supply bypassing MCU. faster edge times MC68HC11A8 generally place greater demands bypassing than earlier NMOS designs. typical expanded-mode system should include 1-µF capacitor separate 0.01-µF capacitor. Both these capacitors should close (physically electrically) possible MC68HC11A8 should have good high-frequency characteristics (i.e., old-technology dipped ceramic disc). 1-µF capacitor primarily supplies charge switching through very low-impedance path (minimum-length runners). Without this bypass, there could very large voltage drops circuit board runners very high (although very short duration) current spike caused several pins simultaneously switching from level other. separate 0.01-µF capacitor included because larger 1-µF capacitor typically good snubbing very high-frequency (low energy) noise. These only general recommendations. Some lightly loaded single-chip systems work quite well with single 0.1-µF bypass capacitor; whereas, more heavily loaded expanded-mode systems require more elaborate bypassing measures. easier less expensive approach power-supply layout bypassing preventive measure from beginning design than locate correct noise problem marginal design. Problems related inadequate power-supply layout bypassing very difficult locate correct, but, reasonable care taken from start design, noise should arise problem. 2.2.2 Mode Select Pins (MODB/VSTBY MODA/LIR) mode B/standby supply (MODB/VSTBY) functions both mode select input standby power-supply pin. mode A/load instruction register (MODA/LIR) used select operating mode while reset, operates diagnostic output signal while executing instructions. hardware mode select mechanism starts with logic levels MODA MODB pins while reset state. logic levels MODA MODB pins into clocked pipeline path. levels captured those that were present part clock cycle before RESET rose, which assures there will zero hold-time requirement mode select pins relative rising edge RESET pin. captured levels determine logic state special mode (SMOD) mode select (MDA) control bits highest priority interrupt (HPRIO) register. These control bits actually control logic circuits involved hardware mode selection. Mode selects between single-chip modes expanded modes; mode selects between normal variation special variation chosen operating mode. Bootstrap mode special variation single-chip mode, special test special variation expanded mode. Table summarizes operation mode pins mode control bits. MOTOROLA PINS CONNECTIONS M68HC11 REFERENCE MANUAL Table Hardware Mode Select Summary Inputs MODB MODA Mode Description Normal Single Chip Normal Expanded Special Bootstrap Special Test Control Bits HPRIO (Latched Reset) RBOOT SMOD After reset released, mode select pins longer influence operating mode. MODA serves alternate function load instruction register (LIR) when reset. open-drain active-low output drives during first cycle each instruction. MODB serves alternate function standby power supply (VSTBY) maintain contents when present. power-saving mode, STOP, alternate save contents, which does require separate standby power source. function intended monitoring logic analyzer during debug system. Since this status indicator shows where each instruction begins, programs followed easily. mode select levels status levels were selected prevent interference between shared functions pin. single-chip applications, this simply connected VSS. Since output open-drain, there conflict between direct connection signal that drives during first cycle each instruction. There practical reason monitor during single-chip modes because there visibility internal data address buses. expanded-mode systems, MODA/LIR normally pulled resistor. During reset, pull-up resistor instructs MODA select expanded modes. During-program execution, driven during first cycle each instruction signal pulled between signals external pull-up. expanded-mode systems where important minimize power-supply current, logic could used drive MODA/LIR rather than just using simple pull-up (see Figure 2-7). During reset, MODA would driven high select expanded mode. After reset, would driven logic. logic should operating against pull-up, rather should logic-gate-type output with some series resistance protect against unlikely event conflict between activelow signal active-high logic-gate output signal. Such conflict could only occur briefly falling edge reset. Since active about every three cycles during normal execution (average instructions take about three cycles), could reduced about duty cycle). M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 74HC04 4.7K RESET MODA/LIR M68HC11 Figure Reduced MODA/LIR Connections VSTBY function accomplished transistor switch that connects either VSTBY reset logic, depending upon relative levels VSTBY VDD. switch connects unless VSTBY more than threshold higher than VDD. threshold approximately diode drop (0.7 varies from processing variations. During normal operation MCU, supplying power RAM. standby situation, VSTBY should maintained valid level, RESET should activated (pulled low) when drops below legal limits. RESET should always held whenever below operating limit. operated special mode (MODB before applying reset) MODB/VSTBY being used back RAM, MODB/VSTBY should driven unless (has returned legal level. Some logic required systems that MODB/VSTBY standby supply wish special modes operation. most applications, MODB would connected through pull-up resistor normal modes directly ground special modes. There ways maintain contents on-chip with minimal power consumption battery-based application). preferred method uses STOP mode operation, second method uses MODB/VSTBY (see Figure 28). Each these methods advantages. STOP method preferred because much simpler than separate power-supply method terms hardware costs complexity. STOP method saves power stopping clocks, which reduces current microamps. external logic needed, contents internal registers maintained addition contents internal RAM. MODB/VSTBY method would used cases where there significant amount external circuitry operating from that added complexity supplies added logic justified power savings. MOTOROLA 2-10 PINS CONNECTIONS M68HC11 REFERENCE MANUAL VOUT NiCd VBATT 4.7K MODB/V STBY M68HC11 Figure Standby MODB/VSTBY Connections 2.2.3 Crystal Oscillator Clock Pins (EXTAL, XTAL, oscillator pins used with external crystal network externally generated CMOS-compatible clock source. frequency applied these pins four times higher than desired frequency (E-clock rate). clock frequency clock output, which used basic timing reference signal. When clock (address portion cycle), internal process occurring; when high, data being addressed. clock free running one-fourth crystal frequency long oscillator active (STOP stops clocks). oscillator MC68HC11A8 consists large two-input NAND gate. inputs this gate driven internal signal that disables oscillator when STOP mode. other input EXTAL input MCU. output this NAND gate XTAL output MCU. XTAL normally left unterminated when using external CMOS-compatible clock input EXTAL pin. However, k-100 load resistor ground used reduce generated radio frequency interference (RFI) noise emission. XTAL output normally intended drive only crystal, XTAL used clock output special care taken avoid undesirable loading. XTAL output buffered with high-impedance buffer such 74HC04, used drive EXTAL input another M68HC11 MCU. cases, circuit-board layout around oscillator pins critical. Load capacitances specified data sheets technical summary include stray layout capacitances. Thus, physical capacitors connected these pins should always less than specified load capacitances estimated interconnection capacitances. Figure Figure 2-10 show internal external components that form crystal oscillator, called Pierce oscillator (also known parallel resonant crystal oscillator). Figure shows connections high-frequency crystals (greater than MHz), Figure 2-10 shows connections low-frequency operation (less than MHz). M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-11 resistor, provides direct current bias input NAND operates linear region. low-frequency designs, provide phase shift. also limits power into crystal, which important many small crystals because they designed very drive levels (typically 1-µW maximum). high-frequency applications (see Figure 2-9), output impedance NAND driver, combined with lower impedance provides same effect low-frequency designs. Higher frequency AT-cut crystals designed much higher drive levels. STOP M68HC11 EXTAL XTAL XTAL Figure High-Frequency Crystal Connections STOP M68HC11 EXTAL XTAL XTAL Figure 2-10 Low-Frequency Crystal Connections Exact values external components function wafer processing parameters, package capacitance, printed circuit board (PCB) capacitance inductance, MOTOROLA 2-12 PINS CONNECTIONS M68HC11 REFERENCE MANUAL socket capacitance, operating voltage, crystal technology, frequency. Typical values follows: M-20 pF-25 pF-25 Higher values sensitive humidity; lower values reduce gain could prevent startup. Value usually fixed. Value varied trim frequency. tune-up procedure experimentally determining will discussed conclusion this subsection. Since circuit layout capacitances effectively values physical capacitances usually smaller than intended capacitances. most high-frequency applications, values equal. low-frequency designs, often desirable make smaller than which provides higher voltage EXTAL input impedance transformation. wider voltage swing this input will result lower power-supply current. crystal oscillator designs, leads should kept short possible. also good practice route paths shown Figure 2-11. These paths isolate oscillator input from output oscillator from adjacent circuitry, only adding capacitance parallel with Potentially noisy lines should kept possible from oscillator components. Ground loops should avoided around oscillator components (note unterminated paths ending under Figure 2-11). CRYSTAL EXTAL XTAL M68HC11 Figure 2-11 Crystal Layout Example M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-13 Usually, operation oscillator cannot observed with oscilloscope connected oscillator pins. oscilloscope adds from from VSS, which will usually affect oscillator operation. When oscilloscope connected EXTAL input, (oscilloscope input) forms resistive divider with often disables oscillator biasing circuit linear region EXTAL input. This problem sometimes overcome capacitively coupling oscilloscope with very small capacitor (1-5 between oscilloscope probe oscillator pin. usually better observe E-clock output from since this does alter operation oscillator. low-frequency designs, often possible observe XTAL node with oscilloscope because high-impedance nodes oscillator isolated from XTAL Observe without oscilloscope connected again with oscilloscope connected. unchanged, usually safe assume oscillator unaffected. Low-frequency crystal circuits tend very high impedance. Thus, must clean, dry, free conductive material such solder rosin excessive moisture from high humidity. problems occur, value reduced contaminant impedance less significant comparison. course, still best eliminate contaminants. Usually, startup time inversely proportional frequency; thus, low-frequency oscillators start slower than high-frequency oscillators. There many exceptions this rule because there many variables affecting startup time. Observation circuits using MC68HC11A8 with 8-MHz crystal reveals startup from STOP takes approximately milliseconds, startup from power-up occurs within milliseconds when reaches approximately Volt. Power-up performance varies greatly since power-source turn-on characteristics vary greatly. Since MC68HC11A8 fully static design, oscillator required running full speed before processor starts executing instructions (most applications require stable oscillator within first milliseconds after power-up). oscillator running full speed, instructions will take longer execute, unpredictable behavior will result would NMOS processor. oscillator 32-kHz range could require hundreds milliseconds even seconds start stabilize. NOTE following tune-up procedure only meaningful crystal frequencies below MHz. higher frequency applications, because normally this procedure needed. value determined experimentally using final exact type that will used final application. need have final mask program because will held reset throughout experiment. Because number variables involved, components with exact properties those that will used production. example, ceramic-packaged prototype experiment when plastic-packaged will used MOTOROLA 2-14 PINS CONNECTIONS M68HC11 REFERENCE MANUAL production. emulator version part will also have slightly different electrical properties than masked version same part. determine optimum value observe operating current (IDD) function should held reset throughout this procedure because operating current variations during modes much greater than current variations varying Normally, current will occur. This sharp many circuits instead very broad. shape this curve suggests, exact value critical. Finally, verify that maximum-operating supply voltage does overdrive crystal. Observe output frequency function buffered E-clock output. Under proper operating conditions, frequency should increase parts million supply voltage increases. crystal overdriven, increase supply voltage will cause decrease frequency, frequency will become unstable. frequency problems arise, supply voltage must decreased, values should increased reduce crystal drive. 2.2.4 Crystal Oscillator Application Information Some crystal oscillator application information presented following paragraphs. 2.2.4.1 Crystals Parallel Resonance Parallel resonance refers Pierce oscillator that crystal parallel with inverter. Almost all) CMOS MCUs this type oscillator. AT-cut crystals available standard devices both series resonant circuits Pierce oscillators. load capacitance specified Pierce version. series resonant versions require this specification more likely listed standard product. type circuit affects oscillating frequency crystal. 8-MHz AT-cut crystal will normally meet requirements M68HC11. However, very accurate oscillator frequency, Pierce version crystal with values match specified load capacitance value crystal. load capacitance approximately equal series combination 2.2.4.2 Using Crystal Oscillator Outputs crystal oscillator actually application. Connecting crystal pins other circuitry likely interfere with proper operation oscillator. Modern CMOS inputs very high impedance relatively capacitance; thus, these inputs connected oscillator without disturbing oscillator. data sheet shows examples ways crystal oscillator used drive other circuits crystal frequencies between MHz. 2.2.4.3 Using External Oscillator externally built Pierce oscillator will operate like crystal connected M68HC11. single inverter connect crystal feedback resistor load M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-15 capacitors external inverter input were EXTAL inverter output were XTAL pin. 74HCU04 this inverter. This device unbuffered HCMOS inverter. Avoid Schmitt-trigger devices because oscillator fail start. Buffer output external Pierce oscillator drive additional logic. 2.2.4.4 AT-strip AT-cut Crystals AT-strip new-technology low-power crystal. Connecting these crystals M68HC11 cause problems NAND gate overdriving crystal. AT-cut crystal with M68HC11 avoid this problem. 2.2.5 Reset (RESET) This active-low, bidirectional control signal used input initialize MC68HC11A8 known startup state open-drain output indicate that internal failure been detected either clock monitor computer operating properly (COP) watchdog circuit. This RESET signal significantly different from RESET signal used earlier MCUs. More detailed information about this found SECTION RESETS INTERRUPTS. reset circuitry specifically designed work with lower levels than other circuitry. Thus, RESET used prevent undesirable performance power applied decays, which important applications which contents on-chip must maintained absence VDD. this situation, reset input logic would powered from standby power source connected MODB/VSTBY whenever support proper operation. Secondly, RESET must controlled when below legal operating limits prevent unintentional corruption EEPROM data. Even application using 512-byte EEPROM, CONFIG register still EEPROM byte must protected from corruption. Virtually MC68HC11A8 systems should include automatic control RESET drive whenever below legal limits. simple, inexpensive, voltage inhibit (LVI) device such MC34064 MC34164 used. MC34064 available TO-92 SOT-8 plastic packages provides open-drain output directly drive RESET MC68HC11A8. This device connected VDD, VSS, RESET MCU. pull-up resistor from RESET only other component required reset circuit most applications. Figure 2-12 shows typical reset circuit. MOTOROLA 2-16 PINS CONNECTIONS M68HC11 REFERENCE MANUAL MANUAL RESET SWITCH RESET MC34064 RESET M68HC11 RESET MC34164 Figure 2-12 Reset Circuit Example 2.2.6 Interrupt Pins (XIRQ, IRQ) XIRQ provides means requesting non-maskable interrupts after reset initialization. During reset, condition code register (CCR) set, interrupts masked until software enables them. Since XIRQ input level sensitive, connected multiple-source wired-OR network with external pull-up resistor. XIRQ often used power loss detect interrupt. input provides means requesting asynchronous interrupts MC68HC11A8. program selectable (OPTION register), having choice either level-sensitive falling-edge-sensitive triggering. After reset, configured level-sensitive operation default. Whenever XIRQ used with multiple interrupt sources (IRQ must configured level-sensitive operation there more than source interrupt), each source must drive interrupt input with open-drain-type driver avoid contention between outputs. There should single pull-up resistor near interrupt input (typically There must also interlock mechanism each interrupt source that source holds interrupt line until recognizes acknowledges interrupt request. more other interrupt sources still pending after services request, interrupt line will still low; thus, will interrupted again soon interrupt mask becomes clear (normally upon return from interrupt). used during factory testing bulk programming voltage source, which allows parallel programming many half bytes EEPROM single programming operation. Since on-chip charge pump does have sufficient drive capability simultaneously program this many EEPROM locations, external 20-V power supply needed supplement on-chip charge pump. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-17 switchover mechanism, which decides whether EEPROM powered internal charge pump external voltage source, similar VSTBY logic MODB/ VSTBY pin. When external voltage more than charge-pump voltage, switch connects external high-voltage source internal line. added circuitry this effect normal functions, does have some effect reacts illegal levels. addition XIRQ IRQ, five other pins MC68HC11A8 also used generate interrupt requests MCU. These pins associated with other on-chip peripherals such timer handshake systems. pins PA0/IC3, PA1/ IC2, PA2/lC1, PA7/PAI/OC1, AS/STRA. input-capture pins configured detect rising edges, falling edges, edge. STRA inputs configured detect rising edges falling edges. STRA input only available operating single-chip mode because used address strobe (AS) output when expanded modes. These five pins have advantages over XIRQ pins that each these five interrupts independently maskable with local control well global CCR. Each these five interrupts also readable status indication, pending request cleared without being serviced. 2.2.7 Reference Port Pins (VREFL, VREFH, PE[7:0]) VREFH VREFL pins provide reference voltages converter circuitry. Since converter all-capacitive charge-redistribution converter, there essentially current associated with these pins. Very small dynamic currents caused charge-redistribution switching during conversions (see SECTION ANALOG-TO-DIGITAL CONVERTER SYSTEM). These pins normally connected through low-pass filter network (see Figure 2-13) isolate noise logic power supply from relatively sensitive analog measurements. low-noise precision reference supply alternatively used. There should least between VREFL VREFH full accuracy. Lower values will result more inaccuracy, converter will continue operate. system tested across reference supply pins. There inherent diode from VREFL VSS. VREFL goes below more than this diode drop, conversion progress corrupted, permanent physical damage will result until significant current drawn. only documented cases damage have been caused blatant misapplication, such connecting directly VREFL pin. Since P-channel devices associated with VREFH pin, there diode clamping VDD. gates analog switches associated with reference input pins controlled signals that switch between about This higher-than-VDD supply output charge pump (separate from charge pump used programming on-chip EEPROM). There special requirement keep VREFH below VDD. fact, converter will continue produce good results approximately VREFH. MOTOROLA 2-18 PINS CONNECTIONS M68HC11 REFERENCE MANUAL REFH M68HC11 REFL M68HC11 Figure 2-13 Low-Pass Filter Reference Pins port input pins used general-purpose inputs and/or analog inputs. These inputs designed that digital input buffers disabled times except part cycle during actual read port thus, analog levels near switch point digital input buffer result high power-supply current drains normal CMOS input buffer. buffers enabled extra N-channel device series with N-channel device input inverter. During digital read port these extra N-channel devices turned part read cycle. Because this special circuitry, necessary terminate unused port pins. analog digital functions port normally interfere with each other; thus, combination pins used digital inputs while remaining port pins used analog inputs. Turning digital buffer during analog sample cause small disturbances input line, which cause small errors sampled analog level. disturbances would caused small gate-to-drain gate-to-source capacitances would have occur very close trailing edge sample period have noticeable effect. disturbances small they exist) that they probably would cause measurable inaccuracy. Since easy arrange software avoid this condition, probably easier avoid potential disturbances. 2.2.8 Timer Port Pins Port includes three input-only pins, four output-only pins, that configured operate input output. input-only pins (PA0/IC3, PA1/ IC2, PA2/lC1) also serve edge-sensitive timer input-capture pins. four output-only pins (PA3/OC5/OC1, PA4/OC4/OC1, PA5/OC3/OC1, PA6/OC2/OC1) also serve main timer output-compare pins. Whenever output-compare function enabled, that cannot used general-purpose output. These four pins controlled output compare (OC1) and/or another output compare. PA7/ PAI/OC1 used general-purpose pin, pulse-accumulator input, output pin. 2.2.9 Serial Port Pins Port includes general-purpose, bidirectional pins that individually configured inputs outputs. When serial communications interface (SCI) M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-19 ceiver enabled, PD0/RxD becomes input dedicated function. When transmitter enabled, PD1/TxD becomes output dedicated function. When serial peripheral interface (SPI) system enabled, PD2/MISO, PD3/MOSI, PD4/SCK, PD5/SS pins become dedicated functions. Even while system enabled, PD5/SS used generalpurpose output setting corresponding DDRD5 bit, provided system configured master mode operation. port pins configured (port wired-OR mode (DWOM) control control register (SPCR)) wired-OR operation. This option disables P-channel device output drivers port outputs actively drive high, allowing more such outputs connected without contention. Since Pchannel device physically present (just turned off), there inherent diode from output cannot pulled level higher than (unlike transistor-transistor logic (TTL) open-collector output). external pull-up resistor required port outputs when wired-OR option used. firmware bootloader program configures port wired-OR operation when reset bootstrap mode. application using bootstrap mode, either turn wiredOR option after downloading supply external pull-up resistors port output pins. 2.2.10 Ports STRA, STRB Pins These pins used general-purpose while operating singlechip mode. When expanded mode used, these pins become multiplexed address/data with address strobe (AS) read/write (R/W) control line. Table summarizes functions these pins related operating mode. single-chip modes, external address/data needed; thus, these pins available general-purpose I/O. Port 8-bit output-only port; port 8-bit bidirectional port. combination bits port configured outputs; remaining bits used inputs. Several automated handshake functions associated with ports These strobe handshake functions STRA STRB pins strobes handshake controls. STRA edge-detecting input that causes port data latched into special internal latch register. active edge STRA software selectable, port used general-purpose static while other pins being used latched inputs. strobe handshake functions being used, STRA still used edge-detecting interrupt input cannot used general-purpose static input. STRB output strobe associated with handshake functions ports handshake functions being used, STRB still used general-purpose output, though more difficult control than normal port output pin. detailed discussion handshake functions ports refer SECTION PARALLEL INPUT/OUTPUT. When operating expanded modes, these pins used address/data allow central processing unit (CPU) access 64-Kbyte memory space. save pins, low-order address 8-bit data time multiplexed eight pins. During first half each cycle, address output signals, ADDR[7:0], present these eight pins; during second half each cycle, these eight MOTOROLA 2-20 PINS CONNECTIONS M68HC11 REFERENCE MANUAL pins used bidirectional data bus. signal used active-high latch enable external address latch. Address information allowed through this external transparent latch while high, stable address information latched when low. clock used enable external devices drive data into during second half read cycle clock high). signal indicates direction data high read cycles, write cycles. NOTE AS/STRA output expanded modes input single-chip modes. forget terminate this unused input single-chip modes. Table Ports STRA, STRB Pins Port Single-Chip Bootstrap Mode STRA STRB Output Output Output Output Output Output Output Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input/Output Input Strobe (Edge Output Strobe Expanded-Multiplexed Special Test Mode ADDR8 ADDR9 ADDR10 ADDR11 ADDR12 ADDR13 ADDR14 ADDR15 Address Output Address Output Address Output Address Output Address Output Address Output Address Output Address Output Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address/Data Multiplexed Address Strobe (Out) Read/Write Select Termination Unused Pins Because MC68HC11A8 CMOS device, unused input pins must terminated assure proper operation reliability. Figure 2-14 shows CMOS inverter, which representative circuitry found CMOS input pins. When input logic zero, P-channel transistor (conducting), N-channel transistor off. When input logic one, P-channel transistor off, N-channel transistor These transistors actually linear devices with relatively broad switch points. input passes through midsupply, there region where both transistors conduct some degree. Under normal circumstances, input does remain this linear region very long. Once inverter completely switched that only transistors conducting, there virtually current flow. This principle overall current drain CMOS device directly proportional rate switching. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-21 Essentially current gates that linear region during transitions charging discharging internal capacitances. Because input very high impedance, connected, input oscillate float midsupply level. Either these conditions result added power-supply current. oscillation case result coupling noise power supply. older CMOS designs, large currents caused input that floated midsupply could even induce CMOS latchup, which could destroy integrated circuit. Current design techniques MC68HC11A8 have made latchup floating input unlikely, still important terminate unused inputs avoid oscillation, noise, added supply current. Some inputs (RESET, EXTAL, MODA, MODB) cannot left unterminated system. Figure 2-14 CMOS Inverter port input pins have extra N-channel device between bottom N-channel device input inverter. Since this extra device only enabled half cycle during digital read port less important terminate unused port pins than other unused inputs. cases very slow frequencies, even half cycle might significant length time, unused port pins could terminated. some battery-powered systems where port read often, would desirable eliminate potential added supply current. Since VREFL VREFH pins connect inputs CMOS gates within MC68HC11A8, these pins need terminating they used. Although termination required, reduce risk damage high-voltage static electricity. Other than pins, there basic types input pins MC68HC11A8 input-only input/output pin. best method terminate unused inputs with pull-up pulldown resistor each unused pin. Input-only pins connected each other then common termination point. Although this method less expensive takes less space than individual pull-ups, much harder separate these pins needed later. Although input-only pins connected directly VSS, better because this connection makes difficult change level that input. pull-up pulldown resistor used instead, signal easily connected input later. preferred method terMOTOROLA 2-22 PINS CONNECTIONS M68HC11 REFERENCE MANUAL minating pins that configured input output with individual pull-up pulldown resistors each unused pin. Some users leave these pins unconnected reconfigure them outputs during initialization. There still brief period during reset initialization where these pins unterminated inputs. There also small risk that defective system might fail reconfigure these pins outputs. capable being configured output should never connected another such directly either power-supply rail. ever became output, there possibility high current drain output conflict. Part verification procedure design every system should pinby-pin review what connected every eliminate potential problems. Avoidance Damage integrated circuit damaged destroyed exposure illegal voltages conditions. understanding failure mechanisms, designer protect against damaging conditions. some cases, product even designed tolerate common end-user errors designing protective interface circuits. data sheets integrated circuits state conservative limits conditions that will definitely protect integrated circuit. consequences violating specified limits usually discussed because there many variables affecting results. some cases, tolerate significantly worse conditions than stated limits, although almost impossible quantify guarantee this better performance parts conditions. There several basic types interface circuits MC68HC11A8. exact devices connected influence what happens voltage level driven above below VSS. Many other factors, including ambient temperature lot-to-lot process variations, also influence reaction illegal voltage levels conditions. following discussion explains conditions leading actual damage what that damage might This information should used guideline help engineers avoid conditions leading possible damage. Connected substrate silicon die, reference point from which other voltages measured. main positive power supply MCU. Data sheet information tested guaranteed equal percent, but, limited temperature range applications, operate over wider range (some timing drive capability specifications met). operating temperature have significant effect speed CMOS logic. reduced, maximum crystal frequency must also reduced. equal percent, MC68HC11A8 operate with maximum frequency MHz; when maximum frequency about MHz. temperatures, speed increases power-supply current decreases. typically operate with levels without damaging MCU, timing drive levels will differ from specified limits. Also, there some adverse effects gate oxides from long-term exposure greater than equal batterybased application could exposed greater than when batteries M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-23 still expected work properly battery voltage slowly decays some level well below Although MC68HC11A8 could used such application, published specifications cover this range VDD. 2.4.1 Latchup latchup terms familiar failure analysis engineers that work CMOS integrated circuits. refers damage caused very high-voltage static-electricity exposure. Static-electricity (zap) damage usually appears breakdown relatively thin oxide layers that causes leakage shorts. Often secondary damage occurs after initial failure causes short. Latchup refers usually catastrophic condition caused turning unintentional, bipolar, silicon-controlled rectifier (SCR). latchup formed regions layout integrated circuit, which collector, base, emitters unintentional, parasitic transistors. Bulk resistance silicon wells substrate resistors circuit. Application voltages above below VSS, conjunction with enough current develop voltage drops across parasitic resistors unintentional circuit, cause turn Once this turned normally only turned removing power from integrated circuit. on-impedance overheat destroy integrated circuit. Improvements layout processing techniques have made newer HCMOS devices, such MC68HC11A8, much less likely suffer damage from latchup. Because destructive nature these mechanisms, impossible test every device latchup limits timing drive levels tested. assure product reliability, sample groups devices destructively tested. 2.4.2 Protective Interface Circuits applications where pins might exposed detrimental conditions, protective interfaces needed protect from damage. main goals protective interface prevent high currents from flowing prevent illegal voltage levels pin. low-pass filter often satisfy both goals. less common situations, also necessary provide diode clamps prevent high voltages some pins. pins M68HC11 have internal inherent diode clamps VSS, only some pins include clamps VDD. following subsections discuss internal circuits each type note special considerations protection these types. Usually, only pins needing protection those that exposed signals from outside system. example, automobile engine controller, sensors fuel flow connected engine control module ultimately inputs. These signals prime candidates protective interfaces because noise illegal levels could accidentally applied through interface wiring. other hand, buses signals wholly contained within control module probably require sort protective interface because there little chance that these signals would exposed illegal levels. cases, protective interface even MOTOROLA 2-24 PINS CONNECTIONS M68HC11 REFERENCE MANUAL interfere with normal operation signal. example, low-pass filter address data line expanded system would introduce significant delays these signals, dramatically limiting maximum operating speed system. 2.4.3 Internal Circuitry Digital Input-Only Figure 2-15 shows circuitry digital input-only pin. gates input buffer very high impedance voltages that would ever applied pin. thick-field protection device normally prevents voltage from reaching levels that could damage gates input buffer. exact circuitry input buffer different different digital inputs (e.g., provide hysteresis, etc.), only device gates will connected directly pin. Allowing float driven) midsupply level result both P-channel devices input buffer simultaneously being partially which causes excess current noise VDD/VSS power supply. Port inputs exceptions because they specifically designed driven analog levels. THICK FIELD PROTECTION INPUT BUFFER Figure 2-15 Internal Circuitry Digital Input-Only digital input (see Figure 2-15) driven with voltages below VSS, thick-field protection device forms inherent diode junction VSS, which conducts when voltage gets more than diode drop below VSS. voltage driven more negative with respect VSS, current increases. These currents have tendency influence substrate area around protection device, thus affecting electrical characteristics devices vicinity. When current increased very high levels (typically more than specified limit mA), physical damage result. voltage driven above VDD, protection device will begin conduct tend clamp input voltage protect input buffer [3]. voltage which this condition will occur varies significantly from over operating temperature range. room temperature, typically does draw current until approximately 125°, start conducting slightly lower level. this point, appears function normally will return logic read. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-25 voltage increases, thick-field protection device begins conduct more current substrate, which VSS. There should some external series impedance between input voltage source will used detrimental environment. input voltage increased even further, protection device will avalanche, voltage will eventually fold back (typically about Under these conditions, parasitic bipolar transistor, which obvious from schematic, turned holding 7-volt level. This avalanche still normally destructive pin. Since foldback clamp level relatively impedance, voltage cannot raised further without supplying large current. offending voltage source increased increase current, circuitry will damaged (specified limit typically takes more than mA). Gate oxides these inputs intended exposed voltages above significant amount time. With HCMOS processing used MC68HC11A8, latchup failure unlikely unless legal drive limits grossly exceeded. 2.4.4 Internal Circuitry Analog Input-Only Figure 2-16 shows circuitry associated with analog input-only pin. This logic similar that digital input-only except addition analog multiplexer extra N-channel device below buffer. N-channel device acts analog multiplexer affects behavior analog input when exposed negative voltages. N-channel device allows analog input pins driven intermediate levels without causing noise current normally associated with input buffer when input midsupply level. This device only turned half E-clock cycle during digital read port Since analog input pins (including VREF pins) only connected N-channel devices highimpedance gates, these pins driven with levels above without usual fear latchup. This aspect important because analog reference supply typically independent supply noise isolation reasons. analog input (see Figure 2-16) responds very much like digital input illegal levels except that negative levels affect operations. analog functions associated with these pins also present some special challenges protective interface circuits. Although N-channel devices eliminates need external pull-up pulldown resistors unused port pins, conservative designer would still terminate these pins help prevent static damage. MOTOROLA 2-26 PINS CONNECTIONS M68HC11 REFERENCE MANUAL ANALOG MULTIPLEXER THICK FIELD PROTECTION INPUT BUFFER Figure 2-16 Internal Circuitry Analog Input-Only voltage driven enough relative gate voltage analog multiplexer device, this N-channel device turn conductive path between negative capacitor array discharge capacitors disrupt conversion progress. thick-field protection device other circuit layout measures around N-channel multiplexer device intended prevent voltage from becoming negative enough turn multiplexer device. Even with these internal protective measures, cautious user should avoid negative levels because large negative transient could still disrupt conversion. conversion disrupted this manner experiences serious negative transient; transient need associated with conversion. External diode clamps necessarily good idea analog inputs. Leakage through external diode would significant relationship leakage current; thus, this extra leakage could affect accuracy analog conversion results. Analog input pins usually protected low-pass filter with enough series impedance limit voltage. amount series resistance trade-off between high enough value limit voltage enough value prevent leakage current from adversely affecting conversion results. Conversion accuracy specified maximum external series resistance worst-case specified leakage current room temperature, leakage typically much less). acting through causes absolute conversion error minus one-fifth least significant (LSB) when VREF 5.12 leaving only about one-quarter actual circuit errors before results would specified limits. Using larger external resistance series with cause some inaccuracy leakage current acting through this resistance, will still respond predictable manner. There valid system design reasons choosing high external series resistance (e.g., minimize power consumption M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-27 battery-based system). additional detailed information concerning input pins, 12.3 Connection Considerations. 2.4.5 Internal Circuitry Digital Figure 2-17 shows circuitry capable operating input output. Even when configured disable output driver circuitry, transistors still affect reacts illegal levels. P-channel device output driver forms inherent diode VDD, N-channel device forms inherent diode VSS, which parallel with inherent diode thickfield protection device. OUTPUT BUFFER THICK FIELD PROTECTION INPUT BUFFER Figure 2-17 Internal Circuitry Digital When configured high-impedance input, input signals clamped within diode drop power-supply rails. When configured output, N-channel device provides low-impedance path VSS, respectively. current into should limited prevent damage. specified current limit although these pins typically withstand transients more than nominal room temperature. port port pins M68HC11 configured open-drain-type outputs. This configuration disables gate signal P-channel device output buffer cannot driven active-high logic level, P-channel device still physically present forms inherent diode VDD. applications, situation will arise where more pins tied same point. Software would arranged that more than these pins configured output time avoid output driver contention. these applications, pins should configured open-drain mode output drivers prevented from high-current contention. MOTOROLA 2-28 PINS CONNECTIONS M68HC11 REFERENCE MANUAL 2.4.6 Internal Circuitry Input/Open-Drain-Output pins M68HC11 (RESET MODA/LIR) have high-impedance input functions well open-drain output functions (see Figure 2-18). These pins similar pins except that there P-channel device output driver. Since Pchannel output device present, there inherent diode VDD. terms negative illegal levels these pins, there diodes clamping diode drop below ground. terms positive levels above VDD, N-channel output device starts conduct before thick-field protection device; thus, clamp level these pins will typically lower than that digital input-only pin. pin, current should limited prevent damage. N-CHANNEL ONLY OUTPUT BUFFER THICK FIELD PROTECTION INPUT BUFFER Figure 2-18 Internal Circuitry Input/Open-Drain-Output 2.4.7 Internal Circuitry Digital Output-Only Output-only pins react illegal levels exactly like pins. Figure 2-19 shows circuitry digital output-only pin. OUTPUT BUFFER THICK FIELD PROTECTION Figure 2-19 Internal Circuitry Output-Only M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-29 2.4.8 Internal Circuitry MODB/VSTBY MODB/VSTBY unusual because serves standby voltage source addition acting mode select input (see Figure 2-20). switch automatically connects internal power supply higher VSTBY. illegal high level applied MODB/VSTBY pin, this illegal voltage passed internal system. minor elevation VSTBY relative tolerated during operation, significant elevation result incorrect reads data. When battery other standby voltage source will used maintain contents absence VDD, MODB/VSTBY should driven (rather than standby source) during normal operation. MODB/VSTBY should driven higher level than VDD, except during standby periods; during these periods, RESET should driven low. MODB/V STBY THICK FIELD PROTECTION INPUT BUFFER POWER POWER SWITCH Figure 2-20 Internal Circuitry MODB/VSTBY MOTOROLA 2-30 PINS CONNECTIONS M68HC11 REFERENCE MANUAL 2.4.9 Internal Circuitry IRQ/VPPBULK used high-voltage power source during factory testing. This high-voltage source supplies power bulk programming operations because internal charge pump designed provide enough current these bulk programming operations. Figure 2-21 shows circuitry IRQ/VPPBULK pin. IRQ/VPPBULK essentially reacts like input-only illegal levels. IRQ/V PPBULK THICK FIELD PROTECTION INPUT BUFFER Figure 2-21 Internal Circuitry IRQ/VPPBULK normal level used during testing very near level where thick-field protection device begins conduct. important limit current power supply into IRQ/VPPBULK with external series resistor (typically because noise overshoot trigger low-impedance foldback mechanism protection device. Without current-limiting resistor, small metal line connecting bonding input circuitry will instantly vaporize. Normal users would encounter this potential problem since function IRQ/VPPBULK only intended Motorola. current-limiting resistor adverse affect bulk programming process since current requirements EEPROM programming very small. Typical Single-Chip-Mode System Connections Figure 2-22 schematic simple single-chip-mode system, which operated normal single-chip special bootstrap mode. This circuit used basis single-chip-mode application. most cases, circuitry power supply, oscillator, mode selects used exactly shown this system. Only specialized circuitry specific application needs designed from scratch. unused inputs terminated appropriate manner. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-31 MC68HC11A8 PA0/IC3 PA1/IC2 PA2/IC0 SYSTEM POWER PA3/OC5/OC1 PA4/OC4/OC1 PA5/OC3/OC1 PA6/OC2/OC1 PA7/PAI/OC1 EXTAL XTAL STRB STRA RESET MC34064 4.7K RESET 4.7K XIRQ 4.7K CONNECT JUMPER BOOTSTRAP MODE 4.7K MODB/V STBY MODA/LIR PD0/RxD PD1/TxD PD2/MISO PD3/MOSI PD4/SCK PD5/SS PE0/AN0 PE1/AN1 PE2/AN2 PE3/AN3 PE4/AN4 PE5/AN5 PE6/AN6 PE7/AN7 Figure 2-22 Basic Single-Chip-Mode Connections MOTOROLA 2-32 PINS CONNECTIONS M68HC11 REFERENCE MANUAL Typical Expanded-Mode-System Connections schematic shown Figure 2-23 fairly straightforward expanded-mode system, which operated normal expanded mode special test mode. This circuitry used basis expanded-mode application. most cases, circuitry power supply, oscillator, mode selects used exactly shown this system. additional memory peripheral functions added address data buses, loading should reviewed determine whether additional buffering required. Loading generally limited load capacitance before drive capabilities drivers reached. frequencies lower than MHz, more capacitance driven before buffers required. applications where heavy loading occurs, necessary increase power-supply bypass capacitors provide these higher switching demands VDD. address decoding used this example system unusual that external EPROM decoded appear either memory areas. Some commonly used terms describe this type decoding partial decode, redundant mapping, mirroring. this system, external EPROM appears $E000-$FFFF $A000-$BFFF that reset vector fetched this EPROM whether operating normal expanded mode special test mode. This mapping also allows come reset special test mode, check contents EEPROM-based CONFIG register (change CONFIG necessary), then change operating mode normal expanded mode. There several potential advantages starting system this (see 3.5.3 Special Test Mode). 74HC138 decoder provides address-qualified read enable write enable signals 8-Kbyte static RAMs. other four outputs this 74HC138 provide additional chip selects additional peripheral devices. Since signal drives address selects 74HC138, there four active-low read enable outputs four active-low write enable outputs. timing these outputs controlled clock propagation delay through 74HC138 decoder. Address stable long before rising edge clock. decoding EPROM done with sections quad NAND gate. Address valid time controls chip select access time EPROM. This chip select decode provides longer access time than chip select arrangement RAMs because EPROMs typically slower than static RAMS. clock controls output enable EPROM, which typically much shorter setup time requirement than chip-select input EPROM. Since address line (ADDR14) included decode EPROM, EPROM will appear twice memory map: $A000-$BFFF where ADDR14 $E000-$FFFF where ADDR14 high. potential address conflicts occur this system. on-chip and/or on-chip EEPROM conflict with external EPROM. purposes this example, assumed that internal will used will disabled ROMON control CONFIG register. potential conflict with EEPROM poses concern normal expanded mode because external data high impedance ignored during reads internal EEPROM. special M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-33 test mode, there potential undesirable conflict EEPROM read while function enabled (see 2.7.2 Internal Read Visibility (IRV). Although this conflict would typically destructive, would increase power consumption generated noise. this example system, special test mode would only effect short time after reset, reads internal EEPROM could easily avoided during this time. MOTOROLA 2-34 PINS CONNECTIONS M68HC11 REFERENCE MANUAL MC68HC11A8 PA0/IC3 PA1/IC2 SYSTEM POWER 0.01 PA2/IC0 PA3/OC5/OC1 PA4/OC4/OC1 PA5/OC3/OC1 PA6/OC2/OC1 PA7/PAI/OC1 DATA EXTAL XTAL 74HC373 RESET MC34064 4.7K RESET 4.7K XIRQ 4.7K PD0/RxD PD1/TxD 4.7K PD2/MISO MODA/LIR 4.7K MODB/V STBY PD3/MOSI PD4/SCK PD5/SS CONTROL ADDRESS CONNECT JUMPER TEST MODE PE0/AN0 PE1/AN1 PE2/AN2 PE3/AN3 PE4/AN4 PE5/AN5 PE6/AN6 PE7/AN7 Figure 2-23 Basic Expanded Mode Connections (Sheet M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-35 DATA EPROM 74HC138 ADDRESS CONTROL Figure 2-24 Basic Expanded Mode Connections (Sheet MOTOROLA 2-36 PINS CONNECTIONS M68HC11 REFERENCE MANUAL System Development Debug Features designers M68HC11 carefully considered system development needs user. Since smaller users cannot afford thousands dollars development system, M68HC11 specifically designed accommodate low-cost development tools. M68HC11 evaluation board M68HC11 evaluation module examples such low-cost tools. Several customers have also built small plug-in modules that emulate MC68HC11A8 product development purposes. small size these plug-in emulators possible because development features designed into M68HC11. 2.7.1 Load Instruction Register (LIR) signal intended debugging aid. This signal driven active first cycle each instruction, making easy reverse assemble (disassemble) instructions from display logic analyzer. 2.7.2 Internal Read Visibility (IRV) During debugging application, useful what being read from internal registers memory locations. feature provides this capability. This feature should usually disabled during normal operation system possibility conflicts. feature controlled HPRIO register. When one, data from read internal register memory location driven data monitored logic analyzer. zero, function disabled, data undriven during reads internal address. Special restrictions apply function. When reset normal modes, initially zero. newest derivatives M68HC11 Family, written normal modes. special test bootstrap modes, initially written zero after which becomes read-only bit. Care should used function enabled. During reads internal address, data driven even though line indicates that direction toward MCU. Some external device also trying drive data lines, which leads undesirable contention. test debugging situation, special address decode logic used prevent such contention. would expensive inappropriate have this additional decode logic normal mode systems; thus, function only provided special test bootstrap modes. several customer requests function normal modes, logic changed allow function enabled normal modes versions M68HC11. default condition normal modes still equals zero, which disables function. user specifically wants function, written one, user becomes responsible avoiding contentions. written time unless previously been written zero. written zero, function becomes disabled until next reset sequence. M68HC11 REFERENCE MANUAL PINS CONNECTIONS MOTOROLA 2-37 2.7.3 MC68HC24 Port Replacement Unit MC68HC24 gate array that emulates single-chip mode functions ports which lost expansion function when operated expanded modes. expanded mode permits program development external EPROM. system consisting M68HC11 expanded mode, MC68HC24, HC373 octal latch, external EPROM performs like MC68HC11A8 operating single-chip modes, thus allowing application program developed tested before masked pattern ordered. logic M68HC11 specifically designed permit emulation single-chip functions with MC68HC24. First, addresses associated with ports their handshake functions treated external addresses when operating expanded modes. Next, interrupts associated with handshake system vectored same address interrupts. Thus, interrupt output MC68HC24 connected interrupt input MCU, handshake interrupts will treated same internal handshake functions. M68HC11 allows registers and/or internal remapped 4-Kbyte boundary. MC68HC24 copies this logic that registers MC68HC24 will automatically track internal remapping logic. Software written expanded system, including MC68HC24, will operate exactly would internal MC68HC11A8 single-chip mode. MOTOROLA 2-38 PINS CONNECTIONS M68HC11 REFERENCE MANUAL SECTION CONFIGURATION MODES OPERATION This section discusses mechanisms that allow MC68HC11A8 conform wide variety applications. These mechanisms include hardware mode selection circuitry, nonvolatile EEPROM-based configuration register, protected control register bits. majority control bits MC68HC11A8 accessible time software will discussed throughout this manual. term mode used more than context discussing microcontroller unit (MCU). example, serial peripheral interface (SPI) said either master slave mode, parallel system said simple strobed mode, full-input handshake mode, full-output handshake mode. most cases, there confusion about what term mode refers however, term mode conjunction with STOP WAIT often misunderstood. STOP WAIT actually modes operation central processing unit (CPU) opposed single-chip expanded modes, which modes operation integrated circuit. this section, operating modes other mechanisms controlling basic configuration discussed. Very functions influenced mode operation. example, timers, analog-to-digital converter (A/D), serial functions work same expanded modes they single-chip modes. parallel functions pins lost expanded modes regained with special, external, port-replacement chip called MC68HC24. special modes operation, some special testing functions become accessible, including ability software change mode. Hardware Mode Selection There only fundamental modes operation MC68HC11A8 MCU: single chip expanded. Each mode normal variation special variation. These four mode variations selected levels mode (MODA) mode (MODB) pins during reset. special variation single-chip mode called special bootstrap mode; special variation expanded mode called special test mode. special bootstrap mode allows programs downloaded through on-chip serial communications interface (SCI) into internal random-access memory (RAM) executed. bootloaded program used variety tasks such loading calibration values into internal electrically erasable programmable readonly memory (EEPROM) performing diagnostics finished module. bootstrap mode special user's mode, factory test mode. special test mode, which intended primarily factory testing, seldom used user except emulation, development, other rare circumstances. M68HC11 REFERENCE MANUAL CONFIGURATION MODES OPERATION MOTOROLA 3.1.1 Hardware Mode Select Pins hardware mode select mechanism starts with logic levels MODA MODB pins while reset state. logic levels MODA MODB pins into clocked pipeline path. levels captured those that were present part clock cycle before RESET rose, which assures there will zero hold-time requirement mode select pins relative rising edge RESET pin. captured levels determine logic state special mode (SMOD) mode select (MDA) control bits highest priority interrupt (HPRIO) register. These control bits actually control logic circuits involved hardware mode selection. Table summarizes operation mode pins mode control bits. Table Hardware Mode Select Summary Inputs MODB MODA Mode Description Normal Single Chip Normal Expanded Special Bootstrap Special Test Control Bits HPRIO (Latched Reset) RBOOT SMOD After RESET rises, mode select pins longer influence operating mode. MODA serves alternate function load instruction register (LIR) when reset. open-drain active-low output drives during first E-clock cycle each instruction. MODB serves alternate function standby power supply (VSTBY) maintain contents when present. power-saving mode, STOP, alternate save contents, which does require separate standby power source. 3.1.2 Mode Control Bits HPRIO Register following register paragraphs show HPRIO register. four low-order bits (PSEL[3:0]) related mode select logic will discussed SECTION RESETS INTERRUPTS. HPRIO register read time, four high-order bits only written under special circumstances. Usually, control bits unrelated on-chip systems would mixed same register. HPRIO Highest Priority I-Bit Interrupt Miscellaneous RBOOT RESET: SMOD PSEL3 (Refer Table 3-1) PSEL2 PSEL1 PSEL0 $103C RBOOT Read Bootstrap written only while SMOD equals Bootstrap enabled $BF40-$BFFF Bootstrap disabled present memory RBOOT control enables disables special bootstrap control ROM. This MOTOROLA CONFIGURATION MODES OPERATION M68HC11 REFERENCE MANUAL 192-byte, mask-programmed contains firmware required load user's program through into internal jump loaded program. modes other than special bootstrap mode, this disabled does occupy space Kbyte memory map. Although zero when comes reset test mode, RBOOT written while special test mode. SMOD Special Mode written zero back Special mode variation effect Normal mode variation effect Mode Select written only while SMOD equals Normal expanded special test mode effect Normal single-chip special bootstrap mode effect Internal Read Visibility written only while SMOD equals one; forced zero SMOD equals zero Data driven onto external during internal reads Data from internal reads visible expansion (levels ignored) control used during factory testing sometimes during emulation allow internal read accesses visible external data bus. Care required avoid data contention while active because bidirectional data driven during reads internal addresses, even though line suggests data high-impedance read mode. normal modes, this function disabled; thus, complex decode logic required protect against accidental conflicts. EEPROM-Based CONFIG Register nonvolatile configuration (CONFIG) register allows additional flexibility that would otherwise provided more complex hardware mode select structure. using EEPROM implement CONFIG register, these system controls retained even when power applied MCU. functions controlled this register characteristics that must inherently known system comes reset state. Ordinary software-accessible control bits would effectively regulate these controls. 3.2.1 Operation CONFIG Mechanism CONFIG register actually consists EEPROM byte (separate from 512byte EEPROM array), static register that holds configuration information during operation, associated logic, which controls transfer information from EEPROM byte working static register. Programming erasure this register same logic used programming erasure 512-byte EEPROM array. Reads this register return contents static working register, EEPROM byte. During reset, contents EEPROM byte transferred working static register over data bus. this mechanism, changes EEPROM CONFIG location visible alter operation until M68HC11 REFERENCE MANUAL CONFIGURATION MODES OPERATION MOTOROLA after subsequent reset. Some versions M68HC11 Family allow CONFIG working register written directly normal control register while operating special mode variations. This capability included primarily accelerate product testing could useful user some applications. versions that have this ability, could reset special modes. CONFIG register could checked written desired value; then mode could written normal mode re-enable systemprotection mechanisms. This procedure independent EEPROM byte transfer during reset. Only some versions M68HC11 offer this capability. Risk factors associated with operating special mode; therefore, keep time between reset writing mode control bits back normal mode short possible minimize these risks. 3.2.2 CONFIG Register CONFIG register unusual control register used enable disable ROM, EEPROM, computer operating properly (COP) watchdog system, and, optionally, EEPROM security feature MCU. Unlike ordinary control registers, CONFIG retains contents even when there power applied MCU. contents retained when completely removed from system (e.g., when shipped from Motorola factory). this way, control bits CONFIG register like mask-programmed options. Unlike mask options, contents this register altered after manufactured meet customer's specific requirements. CONFIG register read like other memory location. contents working static register returned such reads previously described. CONFIG register erased programmed like EEPROM location rather than being written other registers. programming erase operations alter EEPROM byte, which does alter operation until after subsequent reset operation. programming erase procedures, which same those used program EEPROM locations, PPROG register discussed EEPROM. following register paragraphs describe CONFIG register control bits MC68HC11A8. specific information about CONFIG register other M68HC11 Family members, refer technical summary that member. CONFIG System Configuration NOSEC NOCOP ROMON EEON 3.2.1 Operation CONFIG Mechanism $103F RESET: NOSEC EEPROM Security Disabled special security feature available MC68HC11A8 requested time user submits mask pattern. Once this feature enabled mask-programming level, user activates programming NOSEC zero. While NOSEC zero, only reset single-chip modes (normal single chip MOTOROLA CONFIGURATION MODES OPERATION M68HC11 REFERENCE MANUAL special bootstrap). This restriction accomplished forcing control zero rather than allowing follow MODA level rising edge RESET. disallowing expanded modes, software pirate prevented from seeing data EEPROM because there external address/data single-chip modes. software pirate what on-chip disabling security option, which only accomplished after contents EEPROM have been erased. When secured part reset bootstrap mode, firmware small bootloader program will proceed with bootloading until EEPROM, RAM, CONFIG register have been successfully erased. When secured part operated normal single-chip mode, user's program responsible keeping secured. CONFIG register current versions MC68HC11A8 cannot altered except special bootstrap special test modes. NOCOP Watchdog System Disabled default erased state this corresponds system off. system disabled does generate system resets. system enabled comes reset. software service mechanism must periodically completed prior time-out avoid system reset. This service will only occur proper repeating rate software executing expected, orderly fashion. software failure occurs, watchdog will time will generate system reset force return proper operation. watchdog mechanism discussed detail SECTION RESETS INTERRUPTS. ROMON Enable On-Chip default erased state this corresponds enabled. 8-Kbyte on-chip program memory enabled. 8-Kbyte disabled takes space memory map. normal single-chip operating mode, this control overridden that always enabled. expanded modes, turning with this allows reset interrupt vectors fetched from external memories; therefore, user need know where vectors should point time manufactured. EEON Enable On-Chip EEPROM default erased state this corresponds EEPROM enabled. 512-byte on-chip EEPROM memory enabled locations $B600-$B7FF. 512-byte EEPROM disabled takes space memory map. Some versions M68HC11 Family have additional control bits this register. example, MC68HC811A2 uses upper four bits remap 2-Kbyte EEPROM upper half 4-Kbyte page memory. This reference manual based primarily MC68HC11A8; specific information about other family members found technical summaries. erased state CONFIG MC68HC11A8. MC68HC11A1 same MC68HC11A8 comes from factory with CONFIG disable internal 8-Kbyte masked ROM. Similarly, MC68HC11A0 version part comes with CONFIG disable both 8-Kbyte 512-byte EEPROM. CONFIG byte part 512-byte EEPROM. CONFIG register M68HC11 REFERENCE MANUAL CONFIGURATION MODES OPERATION MOTOROLA MC68HC11A1 MC68HC11A0 device erased $0F, internal EEPROM memories become enabled necessarily useful. MC68HC11A1 MC68HC11A0 part contain customer's program (with their permission) defective program. EEPROM MC68HC11A0 part could partially/completely broken should used because error could related temperature voltage. Therefore, EEPROM might check flawless later fail when least expected. upper four bits implemented working static register always read zero. Although corresponding bits EEPROM byte implemented, they visible user. erased state CONFIG register MC68HC811A2 version $FF, which means 2-Kbyte EEPROM enabled area from $F800-$FFFF when part comes from Motorola factory. part, user must have meaningful reset vector $FFFE,FFFF must connect mode pins system will come reset special modes. reset vector programmed into internal EEPROM before installing part into finished system, EEPROM moved programming CONFIG register) external memory system provide reset vector. Protected Control Register Bits MC68HC11A8, several sensitive control registers bits protected against writes except under special circumstances. protect mechanisms include ability write these bits only within first cycles after reset and/or ability write them only time after each reset. These bits control basic configuration where accidental write could cause serious system problems that these protections make practical include software-controlled features that might otherwise excluded. members M68HC11 Family developed, additional control bits could fall into this category, MC68HC11A8, only three control registers involved (INIT, TMSK2, OPTION). Some users have expressed concern about being able write these control bits within cycles, which will problem since only three writes required. Because these protect mechanisms overridden special operating modes, these bits changed repeatedly during testing without going through reset sequence. going changed normal mode variation after being reset special mode, write protected registers before writing SMOD control zero. 3.3.1 Mapping Register (INIT) INIT Mapping Register RAM3 RAM2 RAM1 RAM0 REG3 REG2 REG1 REG0 $103D RESET: RAM[3:0] Position These four bits, which specify upper hexadecimal digit address, control MOTOROLA CONFIGURATION MODES OPERATION M68HC11 REFERENCE MANUAL position memory map. changing these bits, repositioned beginning 4-Kbyte page memory map. After reset, these bits zeros ($0); thus, initially positioned from $0000-$00FF. these four bits written ones ($F), moves $F000-$F0FF. following explanation INIT register discusses what happens when registers mapped same area memory some other internal resource. REG[3:0] 64-Byte Register Block Position These four bits, which specify upper hexadecimal digit address 64byte block internal registers, control position these registers memory map. changing these bits, register block repositioned beginning 4-Kbyte page memory map. After reset, these bits 0001 ($1); therefore, registers initially positioned from $1000-$103F. these four bits written ones ($F), registers move $F000-$F03F. following explanation discusses what happens when registers mapped same area memory some other internal resource. INIT register allows software reposition internal 256-byte and/or 64byte register space 4-Kbyte page boundary 64-Kbyte memory map. There main reasons user might want this capability. First, this capability allows user position RAM, registers, both direct addressing mode range ($0000-$00FF). Instructions that direct addressing mode assume upper eight bits address $00; thus, these instructions take less program memory space operate faster than equivalent extended addressing mode instructions. second reason remapping registers would make compatible with memory existing system. example, MC6801 compatible with Motorola EXORciserTM. MDOSdiskoperating system software requires exist from $0000-$7FFF, routines exist from $E800-$EBFF, system devices exist from $EC00-$F000. Because MC6801 internal registers $0000-$00FF that cannot disabled moved, cannot made compatible with EXORciser. However, MC68HC11A8 disable internal with CONFIG register, registers remapped $D000 $C000, respectively, writing INIT register. This procedure makes MC68HC11A8 compatible with EXORciser system without requiring changes existing MDOS software. variation this second reason remapping registers would make maximum external 32-Kbyte lower half memory map. Users needing this capability leave registers their default locations ($0000-$00FF $1000-$103F registers). Since INIT register becomes write protected shortly after reset, user need worry about accidental changes software error. internal address decode circuitry automatically protects against conflicts among internal resources between internal external resource. When internal resource read, external data ignored (even some external device tries drive data bus) will read valid data. internal and/or register spaces remapped overlap occurs between RAM, register space, ROM, priority logic disables highest priority resource. example, consider M68HC11 REFERENCE MANUAL CONFIGURATION MODES OPERATION MOTOROLA case expanded mode system where enabled both registers have been remapped $F000. accesses from $F000-$F03F, disabled, registers have highest access priority. From $F040-$F0FF, disabled, access priority. Some users have questions about priority access unused register locations 64-byte register space priority registers external MC68HC24. previous example, $F035 would correspond unused location 64-byte register space (the register block moved from usual position $1000-$103F such that overlaps $F000). Reads this address access undriven internal data bus, data present data pins ignored. locations 64-byte register space become external accesses when MC68HC11A8 operating expanded mode. This process allows MC68HC24 properly emulate internal parallel functions associated with pins, which dedicated multiplexed expansion bus. Again referring earlier example, Other recent searchesSN74ALVC162831 - SN74ALVC162831 SN74ALVC162831 Datasheet Si7462DP - Si7462DP Si7462DP Datasheet HHBA-5220 - HHBA-5220 HHBA-5220 Datasheet HHBA-5221 - HHBA-5221 HHBA-5221 Datasheet EP93XX - EP93XX EP93XX Datasheet EN50082-2 - EN50082-2 EN50082-2 Datasheet D7880ZOV181RA250 - D7880ZOV181RA250 D7880ZOV181RA250 Datasheet 1072210000 - 1072210000 1072210000 Datasheet
Privacy Policy | Disclaimer |