Xem mẫu

MC68HC11A8 HCMOS Single-Chip Microcontroller Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different applications. All operating parameters, including "Typicals" must be validated for each customer application by customer`s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. MOTOROLA and the Motorola logo are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. © MOTOROLA, INC. 1996 Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters can and do vary in different applications. All operating parameters, including "Typicals" must be validated for each customer application by customer`s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. MOTOROLA and the Motorola logo are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. © MOTOROLA, INC. 1996 Paragraph Number TABLE OF CONTENTS Page Title Number 1 INTRODUCTION 1.1 Features ....................................................................................................1-1 1.1.1 Hardware Features ............................................................................1-1 1.1.2 Software Features .............................................................................1-1 1.2 General Description ...................................................................................1-1 1.3 Programmer’s Model .................................................................................1-2 1.4 Summary of M68HC11 Family ..................................................................1-3 2 SIGNAL DESCRIPTIONS AND OPERATING MODES 2.1 Signal Pin Descriptions .............................................................................2-1 2.1.1 Input Power (VDD) and Ground (VSS) ................................................2-1 2.1.2 Reset (RESET) ..................................................................................2-1 2.1.3 Crystal Driver and External Clock Input (XTAL, EXTAL) ...................2-1 2.1.4 E Clock Output (E) ............................................................................2-3 2.1.5 Interrupt Request (IRQ) .....................................................................2-3 2.1.6 Non-Maskable Interrupt (XIRQ) .........................................................2-3 2.1.7 Mode A/Load Instruction Register and Mode B/Standby Voltage (MODA/ LIR, MODB/VSTBY) 2-3 2.1.8 A/D Converter Reference Voltages (VRL, VRH) .................................2-4 2.1.9 Strobe B and Read/Write (STRB/R/W) .............................................2-4 2.1.10 Strobe A and Address Strobe (STRA/AS) .........................................2-4 2.1.11 Port Signals .......................................................................................2-4 2.1.11.1 Port A ........................................................................................2-5 2.1.11.2 Port B ........................................................................................2-5 2.1.11.3 Port C ........................................................................................2-5 2.1.11.4 Port D ........................................................................................2-5 2.1.11.5 Port E ........................................................................................2-6 2.2 Operating Modes .......................................................................................2-6 2.2.1 Single-Chip Operating Mode .............................................................2-6 2.2.2 Expanded Multiplexed Operating Mode ............................................2-6 2.2.3 Special Bootstrap Operating Mode ...................................................2-8 2.2.4 Additional Boot Loader Program Options ........................................2-10 2.2.5 Special Test Operating Mode ..........................................................2-10 3 ON-CHIP MEMORY 3.1 Memory Maps ............................................................................................3-1 3.2 RAM and I/O Mapping Register (INIT) ......................................................3-4 3.3 ROM ..........................................................................................................3-5 3.4 RAM ..........................................................................................................3-5 3.5 EEPROM ...................................................................................................3-5 3.5.1 EEPROM Programming Control Register (PPROG) .........................3-6 MC68HC11A8 TECHNICAL DATA MOTOROLA iii 3.5.2 3.5.2.1 3.5.2.2 3.5.2.3 3.5.2.4 3.5.2.5 3.5.3 3.5.3.1 3.5.3.2 Programming/Erasing Internal EEPROM ..........................................3-7 Read ..........................................................................................3-7 Programming .............................................................................3-7 Bulk Erase .................................................................................3-8 Row Erase .................................................................................3-8 Byte Erase .................................................................................3-9 System Configuration Register (CONFIG) ........................................3-9 Programming and Erasure of the CONFIG Register ...............3-10 Operation of the Configuration Mechanism .............................3-12 4 PARALLEL I/O 4.1 General-Purpose I/O (Ports C and D) .......................................................4-1 4.2 Fixed Direction I/O (Ports A, B, and E) ......................................................4-1 4.3 Simple Strobed I/O ....................................................................................4-2 4.3.1 Strobed Input Port C ..........................................................................4-2 4.3.2 Strobed Output Port B .......................................................................4-2 4.4 Full Handshake I/O ....................................................................................4-2 4.4.1 Input Handshake Protocol .................................................................4-3 4.4.2 Output Handshake Protocol ..............................................................4-3 4.5 Parallel I/O Control Register (PIOC) .........................................................4-4 5 SERIAL COMMUNICATIONS INTERFACE 5.1 Overview and Features .............................................................................5-1 5.1.1 SCI Two-Wire System Features ........................................................5-1 5.1.2 SCI Receiver Features ......................................................................5-1 5.1.3 SCI Transmitter Features ..................................................................5-1 5.2 Data Format ..............................................................................................5-1 5.3 Wake-Up Feature ......................................................................................5-2 5.4 Receive Data (RxD) ..................................................................................5-2 5.5 Start Bit Detection .....................................................................................5-3 5.6 Transmit Data (TxD) ..................................................................................5-5 5.7 Functional Description ...............................................................................5-5 5.8 SCI Registers ............................................................................................5-5 5.8.1 Serial Communications Data Register (SCDR) .................................5-6 5.8.2 Serial Communications Control Register 1 (SCCR1) ........................5-8 5.8.3 Serial Communications Control Register 2 (SCCR2) ........................5-8 5.8.4 Serial Communications Status Register (SCSR) ............................5-10 5.8.5 Baud Rate Register (BAUD) ............................................................5-11 6 SERIAL PERIPHERAL INTERFACE 6.1 Overview and Features .............................................................................6-1 6.2 SPI Signal Descriptions .............................................................................6-1 6.2.1 Master In Slave Out (MISO) ..............................................................6-1 6.2.2 Master Out Slave In (MOSI) ..............................................................6-1 6.2.3 Serial Clock (SCK) ............................................................................6-2 MOTOROLA iv MC68HC11A8 TECHNICAL DATA 6.2.4 Slave Select (SS) ..............................................................................6-2 6.3 Functional Description ...............................................................................6-3 6.4 SPI Registers ............................................................................................6-4 6.4.1 Serial Peripheral Control Register (SPCR) .......................................6-4 6.4.2 Serial Peripheral Status Register (SPSR) .........................................6-5 6.4.3 Serial Peripheral Data l/O Register (SPDR) ......................................6-6 7 ANALOG-TO-DIGITAL CONVERTER 7.1 Conversion Process ..................................................................................7-1 7.2 Channel Assignments ...............................................................................7-1 7.3 Single-Channel Operation .........................................................................7-2 7.4 Multiple-Channel Operation .......................................................................7-2 7.5 Operation in STOP and WAIT Modes .......................................................7-3 7.6 A/D Control/Status Register (ADCTL) .......................................................7-3 7.7 A/D Result Registers 1, 2, 3, and 4 (ADR1, ADR2, ADR3, and ADR4) ....7-5 7.8 A/D Power-Up and Clock Select ...............................................................7-5 8 PROGRAMMABLE TIMER, RTI, AND PULSE ACCUMULATOR 8.1 Programmable Timer .................................................................................8-1 8.1.1 Counter ..............................................................................................8-1 8.1.2 Input Capture .....................................................................................8-1 8.1.3 Output Compare ................................................................................8-2 8.1.4 Output Compare 1 I/O Pin Control ....................................................8-2 8.1.5 Timer Compare Force Register (CFORC) .........................................8-3 8.1.6 Output Compare 1 Mask Register (OC1M) .......................................8-3 8.1.7 Output Compare 1 Data Register (OC1D) ........................................8-4 8.1.8 Timer Control Register 1 (TCTL1) .....................................................8-4 8.1.9 Timer Control Register 2 (TCTL2) .....................................................8-5 8.1.10 Timer Interrupt Mask Register 1 (TMSK1) ........................................8-5 8.1.11 Timer Interrupt Flag Register 1 (TFLG1) ...........................................8-5 8.1.12 Timer Interrupt Mask Register 2 (TMSK2) ........................................8-6 8.1.13 Timer Interrupt Flag Register 2 (TFLG2) ...........................................8-7 8.2 Real-Time Interrupt ...................................................................................8-8 8.3 Pulse Accumulator ....................................................................................8-8 8.3.1 Pulse Accumulator Control Register (PACTL) ..................................8-8 9 RESETS, INTERRUPTS, AND LOW POWER MODES 9.1 9.1.1 9.1.2 9.1.2.1 9.1.2.2 9.1.2.3 9.1.2.4 9.1.2.5 Resets .......................................................................................................9-1 External RESET Pin ..........................................................................9-1 Power-On Reset ................................................................................9-1 CPU ...........................................................................................9-2 Memory Map .............................................................................9-3 Parallel l/O .................................................................................9-3 Timer .........................................................................................9-3 Real-Time Interrupt ...................................................................9-4 MC68HC11A8 TECHNICAL DATA MOTOROLA v ... - tailieumienphi.vn
nguon tai.lieu . vn