+ All Categories
Home > Documents > M68HC11RM/D: M68HC11 Reference Manual · M68HC11 — Rev. 6.1 Reference Manual. M68HC11. Reference...

M68HC11RM/D: M68HC11 Reference Manual · M68HC11 — Rev. 6.1 Reference Manual. M68HC11. Reference...

Date post: 27-Mar-2020
Category:
Upload: others
View: 38 times
Download: 0 times
Share this document with a friend
650
M68HC11 Microcontrollers M68HC11RM/D Rev. 6.1 M68HC11 Reference Manual
Transcript
  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11Microcontrollers

    M68HC11RM/DRev. 6.1

    M68HC11

    Reference Manual

    For More Information On This Product,

    Go to: www.freescale.com

    rcbt90Text BoxCopyright Freescale Semiconductor, Inc. 2002, 2007

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    For More Information On This Product,

    Go to: www.freescale.com

    rcbt90Text BoxThe original pdf version of this document has been modified to remove references to Motorola only, otherwise the original content has not been modified.

  • Fre

    esc

    ale

    Se

    mic

    on

    du

    cto

    r, I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11

    M68HC11 — Rev. 6.1 Reference Manual

    Reference Manual

    To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to:

    http://www.freescale.com

    The following revision history table summarizes changes contained in this document. For your convenience, the page number designators have been linked to the appropriate location.

    For More Information On This Product,

    Go to: www.freescale.com

    3

    http://www.motorola.com/semiconductors/

  • Revision History

    Revision History

    DateRevision

    LevelDescription

    PageNumber(s)

    Fre

    esc

    ale

    Se

    mic

    on

    du

    cto

    r, I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    June,2001

    4Reformatted to meet current publications standards

    Index — Updated 631

    February, 2002

    5Figure 9-4. Baud Rate Control Register (BAUD) — Address designation corrected to $102B

    327

    April,2002

    6

    ADD Instruction —Corrected table head from ADCA to ADDA 496

    AND Instruction — Corrected table head from ADCA to ANDA 498

    ASL Instruction —Corrected table heads ASLA (IMM) to ASLA (INH) and ASLB (DIR) to ASLB (INH)

    499

    ASR Instruction — Corrected table heads ASRA (IMM) to ASRA (INH) and ASRB (DIR) to ASRB (INH)

    501

    BIT Instruction — Corrected second table entry for Data under BITA (IND,Y) from AS to A5 and under BITB (IND,Y) from ES to E5

    510

    CLR Instruction — Corrected table head from CLRA (IMM) to CLRA (INH) and CLRB (DIR) to CLRB (INH)

    529

    STY Instruction — Corrected second table entry for Data under STY (IND,X) EE to EF

    584

    WAI Instruction — Changed I bit designation from 1 to — 598

    For More Information On This Product, Go to: www.freescale.com

    4

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    List of Sections

    Section 1. General Description . . . . . . . . . . . . . . . . . . . .27

    M68HC11 — Rev. 6.1 Reference Manual

    Section 2. Pins and Connections . . . . . . . . . . . . . . . . . .35

    Section 3. Configuration and Modes of Operation . . . .85

    Section 4. On-Chip Memory . . . . . . . . . . . . . . . . . . . . . .121

    Section 5. Resets and Interrupts . . . . . . . . . . . . . . . . . . 159

    Section 6. Central Processor Unit (CPU) . . . . . . . . . . . 197

    Section 7. Parallel Input/Output. . . . . . . . . . . . . . . . . . . 229

    Section 8. Synchronous Serial Peripheral Interface . . . . . . . . . . . . . . . . . . .291

    Section 9. Asynchronous Serial Communications Interface. . . . . . . . . . . . . . 317

    Section 10. Main Timer and Real-Time Interrupt . . . . . 367

    Section 11. Pulse Accumulator . . . . . . . . . . . . . . . . . . .443

    Section 12. Analog-to-Digital Converter System . . . . .459

    Appendix A. Instruction Set Details . . . . . . . . . . . . . . . 487

    Appendix B. Bootloader Listings . . . . . . . . . . . . . . . . . 603

    Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

    List of Sections For More Information On This Product,

    Go to: www.freescale.com

    5

  • List of Sections

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    List of Sections For More Information On This Product,

    Go to: www.freescale.com

    6

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    Table of Contents

    Section 1. General Description

    M68HC11 — Rev. 6.1 Reference Manual

    1.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

    1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

    1.3 General Description of the MC68HC11A8 . . . . . . . . . . . . . . . .28

    1.4 Programmer’s Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29

    1.5 Product Derivatives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32

    Section 2. Pins and Connections

    2.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35

    2.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36

    2.3 Packages and Pin Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .372.3.1 MC68HC11A8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .382.3.2 MC68HC11D3/MC68HC711D3 . . . . . . . . . . . . . . . . . . . . . .392.3.3 MC68HC11E9/MC68HC711E9 . . . . . . . . . . . . . . . . . . . . . .402.3.4 MC68HC811E2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .412.3.5 MC68HC11F1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .432.3.6 MC68HC24 Port Replacement Unit . . . . . . . . . . . . . . . . . . .44

    2.4 Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .442.4.1 Power-Supply Pins (VDD and VSS). . . . . . . . . . . . . . . . . . . .452.4.2 Mode Select Pins (MODB/VSTBY and MODA/LIR). . . . . . . .462.4.3 Crystal Oscillator and Clock Pins (EXTAL, XTAL, and E) . .502.4.4 Crystal Oscillator Application Information. . . . . . . . . . . . . . .552.4.4.1 Crystals for Parallel Resonance. . . . . . . . . . . . . . . . . . . .552.4.4.2 Using Crystal Oscillator Outputs . . . . . . . . . . . . . . . . . . .562.4.4.3 Using External Oscillator . . . . . . . . . . . . . . . . . . . . . . . . .562.4.4.4 AT-Strip versus AT-Cut Crystals . . . . . . . . . . . . . . . . . . .562.4.5 Reset Pin (RESET) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    7

  • Table of Contents

    2.4.6 Interrupt Pins (XIRQ and IRQ) . . . . . . . . . . . . . . . . . . . . . . .582.4.7 A/D Reference and Port E Pins

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    (VREFL, VREFH, and PE7–PE0) . . . . . . . . . . . . . . . . . . . .592.4.8 Timer Port A Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .612.4.9 Serial Port D Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .612.4.10 Ports B and C and STRA and STRB Pins . . . . . . . . . . . . . .62

    2.5 Termination of Unused Pins . . . . . . . . . . . . . . . . . . . . . . . . . . .64

    2.6 Avoidance of Pin Damage . . . . . . . . . . . . . . . . . . . . . . . . . . . .662.6.1 Zap and Latchup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .672.6.2 Protective Interface Circuits . . . . . . . . . . . . . . . . . . . . . . . . .682.6.3 Internal Circuitry — Digital Input-Only Pin . . . . . . . . . . . . . .682.6.4 Internal Circuitry — Analog Input-Only Pin. . . . . . . . . . . . . .702.6.5 Internal Circuitry — Digital I/O Pin . . . . . . . . . . . . . . . . . . . .722.6.6 Internal Circuitry — Input/Open-Drain-Output Pin . . . . . . . .732.6.7 Internal Circuitry — Digital Output-Only Pin . . . . . . . . . . . . .742.6.8 Internal Circuitry — MODB/VSTBY Pin . . . . . . . . . . . . . . . . .742.6.9 Internal Circuitry — IRQ/VPPBULK Pin . . . . . . . . . . . . . . . . .76

    2.7 Typical Expanded Mode System Connections . . . . . . . . . . . . .77

    2.8 Typical Single-Chip Mode System Connections. . . . . . . . . . . .81

    2.9 System Development and Debug Features . . . . . . . . . . . . . . .822.9.1 Load Instruction Register (LIR) . . . . . . . . . . . . . . . . . . . . . .822.9.2 Internal Read Visibility (IRV) . . . . . . . . . . . . . . . . . . . . . . . .822.9.3 MC68HC24 Port Replacement Unit (PRU) . . . . . . . . . . . . .83

    Section 3. Configuration and Modes of Operation

    3.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85

    3.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86

    3.3 Hardware Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . .863.3.1 Hardware Mode Select Pins. . . . . . . . . . . . . . . . . . . . . . . . .873.3.2 Mode Control Bits in the HPRIO Register . . . . . . . . . . . . . .88

    3.4 EEPROM-Based Configuration (CONFIG) Register. . . . . . . . .893.4.1 Operation of CONFIG Mechanism . . . . . . . . . . . . . . . . . . . .903.4.2 CONFIG Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    8

  • Table of Contents

    3.5 Protected Control Register Bits . . . . . . . . . . . . . . . . . . . . . . . .943.5.1 RAM and I/O Mapping Register (INIT) . . . . . . . . . . . . . . . . .95

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    3.5.2 Protected Control Bits in the TMSK2 Register . . . . . . . . . . .983.5.3 Protected Control Bits in the OPTION Register . . . . . . . . . .99

    3.6 Normal MCU Operating Modes . . . . . . . . . . . . . . . . . . . . . . .1013.6.1 Normal Single-Chip Mode . . . . . . . . . . . . . . . . . . . . . . . . .1013.6.2 Normal Expanded Mode. . . . . . . . . . . . . . . . . . . . . . . . . . .101

    3.7 Special MCU Operating Modes . . . . . . . . . . . . . . . . . . . . . . .1023.7.1 Testing Functions Control Register (TEST1) . . . . . . . . . . .1043.7.2 Test-Related Control Bits in the BAUD Register . . . . . . . .1073.7.3 Special Test Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1083.7.4 Special Bootstrap Mode . . . . . . . . . . . . . . . . . . . . . . . . . . .1093.7.4.1 Loading Programs in Bootstrap Mode . . . . . . . . . . . . . .1103.7.4.2 Executing User Programs in Bootstrap Mode . . . . . . . .1113.7.4.3 Using Interrupts in Bootstrap Mode . . . . . . . . . . . . . . . .1123.7.4.4 Bootloader Firmware Options . . . . . . . . . . . . . . . . . . . .113

    3.8 Test and Bootstrap Mode Applications . . . . . . . . . . . . . . . . . .114

    3.9 Example 3-1: Programming CONFIG (Uses Special Test Mode) . . . . . . . . . . . . . . . . . . . . . . . . .115

    Section 4. On-Chip Memory

    4.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121

    4.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122

    4.3 Read-Only Memory (ROM). . . . . . . . . . . . . . . . . . . . . . . . . . .122

    4.4 Random-Access Memory (RAM) . . . . . . . . . . . . . . . . . . . . . .1244.4.1 Remapping Using the INIT Register. . . . . . . . . . . . . . . . . .1244.4.2 RAM Standby . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125

    4.5 Electrically Erasable Programmable ROM (EEPROM) . . . . .1274.5.1 Logical and Physical Organization . . . . . . . . . . . . . . . . . . .1274.5.2 Basic Operation of the EEPROM . . . . . . . . . . . . . . . . . . . .1294.5.3 Systems Operating Below 2-MHz Bus

    Speed (E Clock) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1344.5.4 EEPROM Programming Register (PPROG) . . . . . . . . . . .134

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    9

  • Table of Contents

    4.5.5 Programming/Erasing Procedures . . . . . . . . . . . . . . . . . . .1374.5.5.1 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    4.5.5.2 Bulk Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1384.5.5.3 Row Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1394.5.5.4 Byte Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1394.5.5.5 CONFIG Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1394.5.6 Optional EEPROM Security Mode . . . . . . . . . . . . . . . . . . .140

    4.6 EEPROM Application Information. . . . . . . . . . . . . . . . . . . . . .1434.6.1 Conditions and Practices to Avoid . . . . . . . . . . . . . . . . . . .1444.6.2 Using EEPROM to Select Product Options . . . . . . . . . . . .1464.6.3 Using EEPROM for Setpoint

    and Calibration Information . . . . . . . . . . . . . . . . . . . . . .1464.6.4 Using EEPROM during Product Development . . . . . . . . . .1484.6.5 Logging Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1484.6.6 Self-Adjusting Systems Using EEPROM . . . . . . . . . . . . . .1494.6.7 Software Methods to Extend Life Expectancy . . . . . . . . . .150

    Section 5. Resets and Interrupts

    5.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .159

    5.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .160

    5.3 Initial Conditions Established During Reset . . . . . . . . . . . . . .1615.3.1 System Initial Conditions . . . . . . . . . . . . . . . . . . . . . . . . . .1625.3.1.1 Central Processor Unit (CPU) . . . . . . . . . . . . . . . . . . . .1625.3.1.2 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1625.3.1.3 Parallel Input/Output (I/O) . . . . . . . . . . . . . . . . . . . . . . .1625.3.1.4 Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1635.3.1.5 Real-Time Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . .1635.3.1.6 Pulse Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1635.3.1.7 Computer Operating Properly (COP) Watchdog . . . . . .1645.3.1.8 Serial Communications Interface (SCI) . . . . . . . . . . . . .1645.3.1.9 Serial Peripheral Interface (SPI) . . . . . . . . . . . . . . . . . .1645.3.1.10 Analog-to-Digital (A/D) Converter . . . . . . . . . . . . . . . . .1645.3.1.11 Other System Controls. . . . . . . . . . . . . . . . . . . . . . . . . .1655.3.2 CONFIG Register Allows Flexible Configuration . . . . . . . .1655.3.3 Mode of Operation Established . . . . . . . . . . . . . . . . . . . . .1665.3.4 Program Counter Loaded with Reset Vector . . . . . . . . . . .167

    10 Table of Contents For More Information On This Product,

    Go to: www.freescale.com

  • Table of Contents

    5.4 Causes of Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1675.4.1 Power-On Reset (POR) . . . . . . . . . . . . . . . . . . . . . . . . . . .169

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    5.4.2 COP Watchdog Timer Reset . . . . . . . . . . . . . . . . . . . . . . .1705.4.3 Clock Monitor Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1725.4.4 External Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174

    5.5 Interrupt Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1755.5.1 Interrupt Recognition and Stacking Registers . . . . . . . . . .1775.5.2 Selecting Interrupt Vectors . . . . . . . . . . . . . . . . . . . . . . . . .1785.5.3 Return from Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181

    5.6 Non-Maskable Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . .1815.6.1 Non-Maskable Interrupt Request (XIRQ) . . . . . . . . . . . . . .1865.6.2 Illegal Opcode Fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1885.6.3 Software Interrupt. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189

    5.7 Maskable Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1905.7.1 I Bit in the Condition Code Register . . . . . . . . . . . . . . . . . .1905.7.2 Special Considerations for I-Bit-Related Instructions . . . . .192

    5.8 Interrupt Request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1925.8.1 Selecting Edge Triggering or Level Triggering . . . . . . . . . .1935.8.2 Sharing Vector with Handshake I/O Interrupts . . . . . . . . . .194

    5.9 Interrupts from Internal Peripheral Subsystems . . . . . . . . . . .1955.9.1 Inhibiting Individual Sources. . . . . . . . . . . . . . . . . . . . . . . .1955.9.2 Clearing Interrupt Status Flag Bits . . . . . . . . . . . . . . . . . . .1955.9.3 Automatic Clearing Mechanisms on Some Flags. . . . . . . .196

    Section 6. Central Processor Unit (CPU)

    6.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197

    6.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198

    6.3 Programmer’s Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1996.3.1 Accumulators (A, B, and D) . . . . . . . . . . . . . . . . . . . . . . . .2006.3.2 Index Registers (X and Y) . . . . . . . . . . . . . . . . . . . . . . . . .2006.3.3 Stack Pointer (SP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2016.3.4 Program Counter (PC) . . . . . . . . . . . . . . . . . . . . . . . . . . . .2036.3.5 Condition Code Register (CCR) . . . . . . . . . . . . . . . . . . . . .203

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    11

  • Table of Contents

    6.4 Addressing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2066.4.1 Immediate (IMM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    6.4.2 Extended (EXT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2086.4.3 Direct (DIR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2086.4.4 Indexed (INDX and INDY) . . . . . . . . . . . . . . . . . . . . . . . . .2106.4.5 Inherent (INH). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2116.4.6 Relative (REL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212

    6.5 M68HC11 Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . .2136.5.1 Accumulator and Memory Instructions . . . . . . . . . . . . . . . .2146.5.1.1 Loads, Stores, and Transfers. . . . . . . . . . . . . . . . . . . . .2156.5.1.2 Arithmetic Operations . . . . . . . . . . . . . . . . . . . . . . . . . .2166.5.1.3 Multiply and Divide . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2176.5.1.4 Logical Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2186.5.1.5 Data Testing and Bit Manipulation . . . . . . . . . . . . . . . . .2196.5.1.6 Shifts and Rotates . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2206.5.2 Stack and Index Register Instructions . . . . . . . . . . . . . . . .2216.5.3 Condition Code Register Instructions. . . . . . . . . . . . . . . . .2236.5.4 Program Control Instructions . . . . . . . . . . . . . . . . . . . . . . .2246.5.4.1 Branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2256.5.4.2 Jumps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2266.5.4.3 Subroutine Calls and Returns

    (BSR, JSR, and RTS) . . . . . . . . . . . . . . . . . . . . . . . .2266.5.4.4 Interrupt Handling (RTI, SWI, and WAI). . . . . . . . . . . . .2276.5.4.5 Miscellaneous (NOP, STOP, and TEST) . . . . . . . . . . . .227

    Section 7. Parallel Input/Output

    7.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .229

    7.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .230

    7.3 Parallel I/O Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .231

    7.4 Parallel I/O Register and Control Bit Explanations . . . . . . . . .2347.4.1 Port Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2367.4.2 Data Direction Registers . . . . . . . . . . . . . . . . . . . . . . . . . .236

    12 Table of Contents For More Information On This Product,

    Go to: www.freescale.com

  • Table of Contents

    7.5 Detailed I/O Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . .2387.5.1 Port A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    7.5.1.1 PA2–PA0 (IC3–IC1) Pin Logic . . . . . . . . . . . . . . . . . . . .2387.5.1.2 PA6–PA3 (OC5–OC2) Pin Logic . . . . . . . . . . . . . . . . . .2407.5.1.3 PA7 (OC1 and PAI) Pin Logic . . . . . . . . . . . . . . . . . . . .2427.5.1.4 Port A Idealized Timing . . . . . . . . . . . . . . . . . . . . . . . . .2447.5.2 Port B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2457.5.2.1 Port B Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2457.5.2.2 Port B Idealized Timing . . . . . . . . . . . . . . . . . . . . . . . . .2467.5.2.3 Special Considerations for Port B

    on MC68HC24 PRU . . . . . . . . . . . . . . . . . . . . . . . . .2487.5.3 R/W (STRB) Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2487.5.3.1 R/W (STRB) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . .2487.5.3.2 Special Considerations for STRB

    on MC68HC24 PRU . . . . . . . . . . . . . . . . . . . . . . . . .2507.5.4 Port C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2517.5.4.1 Port C Pin Logic for Expanded Modes. . . . . . . . . . . . . .2517.5.4.2 Summary of Port C Idealized

    Expanded Mode Timing . . . . . . . . . . . . . . . . . . . . . .2527.5.4.3 Port C Single-Chip Mode Pin Logic . . . . . . . . . . . . . . . .2537.5.4.4 Port C Idealized Single-Chip Mode Timing . . . . . . . . . .2577.5.4.5 Special Considerations for Port C

    on MC68HC24 PRU . . . . . . . . . . . . . . . . . . . . . . . . .2597.5.5 AS (STRA) Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2597.5.5.1 AS (STRA) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . .2597.5.5.2 Special Considerations for STRA

    on MC68HC24 PRU . . . . . . . . . . . . . . . . . . . . . . . . .2617.5.6 Port D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2617.5.6.1 PD0 (RxD) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . .2627.5.6.2 PD1 (TxD) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . .2647.5.6.3 PD2 (MISO) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . .2667.5.6.4 PD3 (MOSI) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . .2697.5.6.5 PD4 (SCK) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . .2727.5.6.6 PD5 (SS) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . .2747.5.6.7 Idealized Port D Timing . . . . . . . . . . . . . . . . . . . . . . . . .2777.5.7 Port E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2787.5.7.1 Port E Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2787.5.7.2 Idealized Port E Timing . . . . . . . . . . . . . . . . . . . . . . . . .280

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    13

  • Table of Contents

    7.6 Handshake I/O Subsystem. . . . . . . . . . . . . . . . . . . . . . . . . . .2817.6.1 Simple Strobe Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .282

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    7.6.1.1 Port B Strobe Output . . . . . . . . . . . . . . . . . . . . . . . . . . .2837.6.1.2 Port C Simple Latching Input . . . . . . . . . . . . . . . . . . . . .2837.6.2 Full-Input Handshake Mode . . . . . . . . . . . . . . . . . . . . . . . .2837.6.3 Full-Output Handshake Mode . . . . . . . . . . . . . . . . . . . . . .2857.6.3.1 Normal Output Handshake . . . . . . . . . . . . . . . . . . . . . .2867.6.3.2 Three-State Variation of Output Handshake . . . . . . . . .2867.6.4 Parallel I/O Control Register (PIOC) . . . . . . . . . . . . . . . . .2867.6.5 Non-Handshake Uses of STRA and STRB Pins . . . . . . . .290

    Section 8. Synchronous Serial Peripheral Interface

    8.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .291

    8.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .292

    8.3 SPI Transfer Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2938.3.1 SPI Clock Phase and Polarity Controls . . . . . . . . . . . . . . .2938.3.2 CPHA Equals Zero Transfer Format . . . . . . . . . . . . . . . . .2938.3.3 CPHA Equals One Transfer Format. . . . . . . . . . . . . . . . . .294

    8.4 SPI Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295

    8.5 SPI Pin Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295

    8.6 SPI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2988.6.1 Port D Data Direction Control Register (DDRD). . . . . . . . .2988.6.2 SPI Control Register (SPCR) . . . . . . . . . . . . . . . . . . . . . . .3008.6.3 SPI Status Register (SPSR). . . . . . . . . . . . . . . . . . . . . . . .302

    8.7 SPI System Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3038.7.1 SPI Mode-Fault Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3038.7.2 SPI Write-Collision Errors. . . . . . . . . . . . . . . . . . . . . . . . . .304

    8.8 Beginning and Ending SPI Transfers . . . . . . . . . . . . . . . . . . .3058.8.1 Transfer Beginning Period (Initiation Delay). . . . . . . . . . . .3058.8.2 Transfer Ending Period . . . . . . . . . . . . . . . . . . . . . . . . . . .306

    8.9 Transfers to Peripherals with Odd Word Lengths. . . . . . . . . .3098.9.1 Example 8-1: On-Chip SPI Driving an MC144110 D/A . . .3118.9.2 Example 8-2: Software SPI Driving an MC144110 D/A . . .311

    14 Table of Contents For More Information On This Product,

    Go to: www.freescale.com

  • Table of Contents

    Section 9. Asynchronous Serial

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    Communications Interface

    9.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317

    9.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318

    9.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3189.3.1 Transmitter Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . .3199.3.2 Receiver Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . .321

    9.4 SCI Registers and Control Bits . . . . . . . . . . . . . . . . . . . . . . . .3239.4.1 Port D Related Registers and Control Bits

    (PORTD, DDRD, and SPCR) . . . . . . . . . . . . . . . . . . . .3259.4.2 Baud-Rate Control Register (BAUD) . . . . . . . . . . . . . . . . .3279.4.3 SCI Control Register 1 (SCCR1) . . . . . . . . . . . . . . . . . . . .3299.4.4 SCI Control Register 2 (SCCR2) . . . . . . . . . . . . . . . . . . . .3319.4.5 SCI Status Register (SCSR) . . . . . . . . . . . . . . . . . . . . . . .3339.4.6 SCI Data Register (SCDR). . . . . . . . . . . . . . . . . . . . . . . . .337

    9.5 SCI Transmitter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3389.5.1 8- and 9-Bit Data Modes . . . . . . . . . . . . . . . . . . . . . . . . . .3399.5.2 Interrupts and Status Flags . . . . . . . . . . . . . . . . . . . . . . . .3409.5.3 Send Break. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3419.5.4 Queued Idle Character . . . . . . . . . . . . . . . . . . . . . . . . . . . .3419.5.5 Disabling the SCI Transmitter . . . . . . . . . . . . . . . . . . . . . .3439.5.6 TxD Pin Buffer Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . .344

    9.6 SCI Receiver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3469.6.1 Data Sampling Technique . . . . . . . . . . . . . . . . . . . . . . . . .3469.6.2 Worst-Case Baud-Rate Mismatch . . . . . . . . . . . . . . . . . . .3539.6.3 Double-Buffered Operation . . . . . . . . . . . . . . . . . . . . . . . .3559.6.4 Receive Status Flags and Interrupts . . . . . . . . . . . . . . . . .3559.6.5 Receiver Wakeup Operation . . . . . . . . . . . . . . . . . . . . . . .3569.6.5.1 Idle-Line Wakeup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3569.6.5.2 Address-Mark Wakeup . . . . . . . . . . . . . . . . . . . . . . . . .357

    9.7 Baud-Rate Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3579.7.1 Timing Chain Block Diagram . . . . . . . . . . . . . . . . . . . . . . .3589.7.2 Baud Rates versus Crystal Frequency. . . . . . . . . . . . . . . .358

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    15

  • Table of Contents

    9.8 SCI Timing Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3599.8.1 Operation as Transmitter Is Enabled . . . . . . . . . . . . . . . . .361

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    9.8.2 TDRE and Transfers from SCDR to Transmit Shift Register . . . . . . . . . . . . . . . . . . . . . . .361

    9.8.3 TC versus Character Completion . . . . . . . . . . . . . . . . . . . .3639.8.4 RDRF Flag Setting versus End

    of a Received Character . . . . . . . . . . . . . . . . . . . . . . . .363

    Section 10. Main Timer and Real-Time Interrupt

    10.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .367

    10.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .368

    10.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36810.3.1 Overall Timer Block Diagram . . . . . . . . . . . . . . . . . . . . . . .36910.3.2 Input-Capture Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . .37110.3.3 Output-Compare Concept . . . . . . . . . . . . . . . . . . . . . . . . .372

    10.4 Free-Running Counter and Prescaler. . . . . . . . . . . . . . . . . . .37310.4.1 Overall Clock Divider Structure . . . . . . . . . . . . . . . . . . . . .37510.4.1.1 Prescaler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37810.4.1.2 Overflow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38010.4.1.3 Counter Bypass (Test Mode) . . . . . . . . . . . . . . . . . . . . .38210.4.2 Real-Time Interrupt (RTI) Function . . . . . . . . . . . . . . . . . .38210.4.3 Computer Operating Properly (COP)

    Watchdog Function . . . . . . . . . . . . . . . . . . . . . . . . . . . .38610.4.4 Tips for Clearing Timer Flags . . . . . . . . . . . . . . . . . . . . . . .387

    10.5 Input-Capture Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38910.5.1 Programmable Options . . . . . . . . . . . . . . . . . . . . . . . . . . .39210.5.2 Using Input Capture to Measure Period

    and Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39310.5.3 Using Input Capture to Measure Pulse Width . . . . . . . . . .39610.5.4 Measuring Very Short Time Periods . . . . . . . . . . . . . . . . .40110.5.5 Measuring Long Time Periods

    with Input Capture and Overflow . . . . . . . . . . . . . . . . . .40110.5.6 Establishing a Relationship between Software

    and an Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40510.5.7 Other Uses for Input-Capture Pins . . . . . . . . . . . . . . . . . . .406

    16 Table of Contents For More Information On This Product,

    Go to: www.freescale.com

  • Table of Contents

    10.6 Output-Compare Functions . . . . . . . . . . . . . . . . . . . . . . . . . .40610.6.1 Normal Input/Output Pin Control Using OC5–OC2 . . . . . .412

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    10.6.2 Advanced Input/Output Pin Control Using OC1 . . . . . . . . .41510.6.2.1 One Output Compare Controlling up to Five Pins . . . . .41610.6.2.2 Two Output Compares Controlling One Pin. . . . . . . . . .41710.6.3 Forced Output Compares. . . . . . . . . . . . . . . . . . . . . . . . . .420

    10.7 Timing Details for the Main Timer System . . . . . . . . . . . . . . .421

    10.8 Listing of Timer Examples . . . . . . . . . . . . . . . . . . . . . . . . . . .425

    Section 11. Pulse Accumulator

    11.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .443

    11.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .443

    11.3 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44411.3.1 Pulse Accumulator Block Diagram . . . . . . . . . . . . . . . . . . .44511.3.2 Pulse Accumulator Control and Status Registers . . . . . . .447

    11.4 Event Counting Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45011.4.1 Interrupting after N Events . . . . . . . . . . . . . . . . . . . . . . . . .45111.4.2 Counting More Than 256 Events . . . . . . . . . . . . . . . . . . . .451

    11.5 Gated Time Accumulation Mode . . . . . . . . . . . . . . . . . . . . . .45311.5.1 Measuring Times Longer Than the Range

    of the 8-Bit Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . .45411.5.2 Configuring for Interrupt after a Specified Time . . . . . . . . .455

    11.6 Other Uses for the PAI Pin . . . . . . . . . . . . . . . . . . . . . . . . . . .455

    11.7 Timing Details for the Pulse Accumulator. . . . . . . . . . . . . . . .455

    Section 12. Analog-to-Digital Converter System

    12.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .459

    12.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .459

    12.3 Charge-Redistribution A/D . . . . . . . . . . . . . . . . . . . . . . . . . . .460

    Table of Contents For More Information On This Product,

    Go to: www.freescale.com

    17

  • Table of Contents

    12.4 A/D Converter Implementation on MC68HC11A8 . . . . . . . . .47112.4.1 MC68HC11A8 Successive-Approximation

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    A/D Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47112.4.2 A/D Charge Pump and Resistor-Capacitor (RC)

    Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47212.4.3 MC68HC11A8 A/D System Control Logic . . . . . . . . . . . . .47412.4.4 A/D Control/Status Register (ADCTL) . . . . . . . . . . . . . . . .47612.4.5 A/D Result Registers (ADR4–AD1) . . . . . . . . . . . . . . . . . .478

    12.5 A/D Pin Connection Considerations . . . . . . . . . . . . . . . . . . . .478

    Appendix A. Instruction Set Details

    A.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .487

    A.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .487

    A.3 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .488

    A.4 M68HC11 Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . .491

    Appendix B. Bootloader Listings

    Bootloader Listings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .603

    Index

    Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

    18 Table of Contents For More Information On This Product,

    Go to: www.freescale.com

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    List of Figures

    Figure Title Page

    M68HC11 — Rev. 6.1 Reference Manual

    1-1 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301-2 M68HC11 Programmer’s Model . . . . . . . . . . . . . . . . . . . . . . . .311-3 Part Numbering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34

    2-1 MC68HC11A8 Pin Assignments. . . . . . . . . . . . . . . . . . . . . . . .382-2 MC68HC11D3/711D3 Pin Assignments . . . . . . . . . . . . . . . . . .392-3 MC68HC11E9/711E9 Pin Assignments (52-Pin PLCC) . . . . . .412-4 MC68HC811E2 Pin Assignments (48-Pin DIP) . . . . . . . . . . . .422-5 MC68HC11F1 Pin Assignments (68-Pin PLCC). . . . . . . . . . . .432-6 MC68HC24 Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . .442-7 Reduced IDD MODA/LIR Connections . . . . . . . . . . . . . . . . . . .482-8 RAM Standby MODB/VSTBY Connections . . . . . . . . . . . . . . . .492-9 High-Frequency Crystal Connections . . . . . . . . . . . . . . . . . . . .512-10 Low-Frequency Crystal Connections . . . . . . . . . . . . . . . . . . . .522-11 Crystal Layout Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .532-12 Reset Circuit Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .572-13 Low-Pass Filter for A/D Reference Pins . . . . . . . . . . . . . . . . . .602-14 CMOS Inverter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .642-15 Internal Circuitry — Digital Input-Only Pin . . . . . . . . . . . . . . . .692-16 Internal Circuitry — Analog Input-Only Pin . . . . . . . . . . . . . . . .712-17 Internal Circuitry — Digital I/O Pin . . . . . . . . . . . . . . . . . . . . . .722-18 Internal Circuitry — Input/Open-Drain-Output Pin . . . . . . . . . .742-19 Internal Circuitry — Output-Only Pin . . . . . . . . . . . . . . . . . . . .742-20 Internal Circuitry — MODB/VSTBY Pin . . . . . . . . . . . . . . . . . . .752-21 Internal Circuitry — IRQ/VPPBULK Pin. . . . . . . . . . . . . . . . . . . .762-22 Basic Expanded Mode Connections. . . . . . . . . . . . . . . . . . . . .782-23 Basic Single-Chip Mode Connections . . . . . . . . . . . . . . . . . . .80

    List of Figures For More Information On This Product,

    Go to: www.freescale.com

    19

  • List of Figures

    Figure Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    3-1 Highest Priority I-Bit Interruptand Miscellaneous Register (HPRIO) . . . . . . . . . . . . . . . . .88

    3-2 System Configuration Register (CONFIG) . . . . . . . . . . . . . . . .913-3 RAM and I/O Mapping Register (INIT) . . . . . . . . . . . . . . . . . . .953-4 Timer Mask Register 2 (TMSK2) . . . . . . . . . . . . . . . . . . . . . . .983-5 System Configuration Option Register (OPTION) . . . . . . . . . .993-6 Testing Functions Control Register (TEST1) . . . . . . . . . . . . .1043-7 Testing Functions Control Register (BAUD) . . . . . . . . . . . . . .1073-8 Schematic for Figure 3-9 . . . . . . . . . . . . . . . . . . . . . . . . . . . .1173-9 Program to Check/Change CONFIG . . . . . . . . . . . . . . . . . . .119

    4-1 Topological Arrangement of EEPROM Bytes (MC68HC11A8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .128

    4-2 Topological Arrangement of Bits in an EEPROM Byte . . . . . .1284-3 Condensed Schematic of EEPROM Array . . . . . . . . . . . . . . .1294-4 EEPROM Cell Terminology . . . . . . . . . . . . . . . . . . . . . . . . . .1304-5 Erasing an EEPROM Byte . . . . . . . . . . . . . . . . . . . . . . . . . . .1314-6 Programming an EEPROM Byte . . . . . . . . . . . . . . . . . . . . . .1324-7 Reading an EEPROM Byte. . . . . . . . . . . . . . . . . . . . . . . . . . .1334-8 EEPROM Programming Register (PPROG). . . . . . . . . . . . . .1364-9 Erase-Before-Write Programming Method . . . . . . . . . . . . . . .1544-10 Program-More-Zeros Programming Method. . . . . . . . . . . . . .1554-11 Selective-Write Programming Method . . . . . . . . . . . . . . . . . .1554-12 Composite Programming Method . . . . . . . . . . . . . . . . . . . . . .156

    5-1 Typical External Reset Circuit. . . . . . . . . . . . . . . . . . . . . . . . .1755-2 Highest Priority I-Bit Interrupt

    and Miscellaneous Register (HPRIO) . . . . . . . . . . . . . . . .1795-3 Processing Flow Out of Resets . . . . . . . . . . . . . . . . . . . . . . .1825-4 Interrupt Priority Resolution . . . . . . . . . . . . . . . . . . . . . . . . . .1845-5 Interrupt Source Resolution within SCI. . . . . . . . . . . . . . . . . .186

    6-1 M68HC11 Programmer’s Model . . . . . . . . . . . . . . . . . . . . . . .199

    7-1 Parallel I/O Registers and Control Bits . . . . . . . . . . . . . . . . . .2347-2 Pin Logic Registers and Control Bits . . . . . . . . . . . . . . . . . . .235

    20 List of Figures For More Information On This Product,

    Go to: www.freescale.com

  • List of Figures

    Figure Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    7-3 Special Symbols Used in Pin Logic Diagrams . . . . . . . . . . . .2397-4 PA2–PA0 (IC3–IC1) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . .2397-5 PA6–PA3 (OC5–OC2) Pin Logic . . . . . . . . . . . . . . . . . . . . . .2417-6 PA7 (OC1 and PAI) Pin Logic. . . . . . . . . . . . . . . . . . . . . . . . .2437-7 Idealized Port A Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2447-8 Port B Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2467-9 Idealized Port B Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2477-10 R/W (STRB) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2497-11 Port C Expanded Mode Pin Logic. . . . . . . . . . . . . . . . . . . . . .2527-12 Summary of Idealized Port C Expanded Mode Timing. . . . . .2547-13 Port C Single-Chip Mode Pin Logic . . . . . . . . . . . . . . . . . . . .2557-14 Idealized Port C Single-Chip Mode Timing. . . . . . . . . . . . . . .2587-15 AS (STRA) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2607-16 PD0 (RxD) Pin Logic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2627-17 PD1 (TxD) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2647-18 PD2 (MISO) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2677-19 PD3 (MOSI) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2707-20 PD4 (SCK) Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2727-21 PD5 (SS) Pin Logic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2757-22 Idealized Port D Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2777-23 Port E Pin Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2797-24 Idealized Port E Timing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2807-25 Idealized Timing for Simple Strobe Operations . . . . . . . . . . .2827-26 Idealized Timing for Full-Input Handshake . . . . . . . . . . . . . . .2847-27 Idealized Timing for Full-Output Handshake . . . . . . . . . . . . .2857-28 Parallel I/O Control Register (PIOC). . . . . . . . . . . . . . . . . . . .287

    8-1 CPHA Equals Zero SPI Transfer Format . . . . . . . . . . . . . . . .2948-2 CPHA Equals One SPI Transfer Format . . . . . . . . . . . . . . . .2948-3 SPI System Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . .2968-4 Port D Data Direction Register (DDRD) . . . . . . . . . . . . . . . . .2998-5 SPI Control Register (SPCR) . . . . . . . . . . . . . . . . . . . . . . . . .3008-6 SPI Status Register (SPSR) . . . . . . . . . . . . . . . . . . . . . . . . . .3028-7 Delay from Write SPDR to Transfer Start (Master). . . . . . . . .3078-8 Transfer Ending for an SPI Master . . . . . . . . . . . . . . . . . . . . .3088-9 Transfer Ending for an SPI Slave . . . . . . . . . . . . . . . . . . . . . .308

    List of Figures For More Information On This Product,

    Go to: www.freescale.com

    21

  • List of Figures

    Figure Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    8-10 Hardware Hookup for Examples 8-1 and 8-2 . . . . . . . . . . . . .3108-11 Register Definitions and RAM Variables

    for Examples 8-1 and 8-2 . . . . . . . . . . . . . . . . . . . . . . . . .3108-12 Example 8-1 Software Listing) . . . . . . . . . . . . . . . . . . . . . . . .3128-13 Timing Analysis for Example 8-1 . . . . . . . . . . . . . . . . . . . . . .3148-14 Example 8-2 Software Listing . . . . . . . . . . . . . . . . . . . . . . . . .3158-15 Timing Analysis for Example 8-2 . . . . . . . . . . . . . . . . . . . . . .316

    9-1 SCI Transmitter Block Diagram . . . . . . . . . . . . . . . . . . . . . . .3209-2 SCI Receiver Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . .3229-3 Port D Related Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . .3259-4 Baud Rate Control Register (BAUD) . . . . . . . . . . . . . . . . . . .3279-5 SCI Control Register 1 (SCCR1) . . . . . . . . . . . . . . . . . . . . . .3299-6 SCI Control Register 2 (SCCR2) . . . . . . . . . . . . . . . . . . . . . .3319-7 SCI Status Register (SCSR). . . . . . . . . . . . . . . . . . . . . . . . . .3349-8 SCI Data Register (SCDR) . . . . . . . . . . . . . . . . . . . . . . . . . . .3379-9 TxD Pin Logic Block Diagram. . . . . . . . . . . . . . . . . . . . . . . . .3459-10 Start Bit — Ideal Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3489-11 Start Bit — Noise Case One. . . . . . . . . . . . . . . . . . . . . . . . . .3499-12 Start Bit — Noise Case Two. . . . . . . . . . . . . . . . . . . . . . . . . .3499-13 Start Bit — Noise Case Three . . . . . . . . . . . . . . . . . . . . . . . .3509-14 Start Bit — Noise Case Four . . . . . . . . . . . . . . . . . . . . . . . . .3509-15 Start Bit — Noise Case Five . . . . . . . . . . . . . . . . . . . . . . . . . .3519-16 Start Bit — Noise Case Six. . . . . . . . . . . . . . . . . . . . . . . . . . .3519-17 Baud-Rate Frequency Tolerance . . . . . . . . . . . . . . . . . . . . . .3539-18 Baud-Rate Generator Block Diagram. . . . . . . . . . . . . . . . . . .3599-19 Transmitter Enable Timing Details . . . . . . . . . . . . . . . . . . . . .3619-20 Write SCDR to Serial Data Start. . . . . . . . . . . . . . . . . . . . . . .3629-21 Ending Details of Transmission . . . . . . . . . . . . . . . . . . . . . . .3649-22 RDRF Flag-Setting Details . . . . . . . . . . . . . . . . . . . . . . . . . . .365

    10-1 Main Timer System Block Diagram . . . . . . . . . . . . . . . . . . . .37010-2 Timer Counter (TCNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37410-3 Timing Summary for Oscillator Divider Signals . . . . . . . . . . .37610-4 Major Clock Divider Chains in the MC68HC11A8 . . . . . . . . .37710-5 Prescaler Select Bits (PR1 and PR0) . . . . . . . . . . . . . . . . . . .379

    22 List of Figures For More Information On This Product,

    Go to: www.freescale.com

  • List of Figures

    Figure Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    10-6 Timer Overflow Interrupt Enable Bit (TOI) . . . . . . . . . . . . . . .38110-7 Timer Overflow Flag Bit (TOF) . . . . . . . . . . . . . . . . . . . . . . . .38110-8 Real-Time Interrupt Enable Bit (RTII) . . . . . . . . . . . . . . . . . . .38410-9 Real-Time Interrupt Flag (RTIF) . . . . . . . . . . . . . . . . . . . . . . .38410-10 Real-Time Interrupt Rate Select Bits (RTR1 and RTR0) . . . .38510-11 COP Timer Rate Select Bits (CR1 and CR0) . . . . . . . . . . . . .38610-12 Input-Capture Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39010-13 Input Capture Interrupt Enable Bits (ICxI). . . . . . . . . . . . . . . .39110-14 Input Capture Flags (ICxF) . . . . . . . . . . . . . . . . . . . . . . . . . . .39110-15 Timer Control Register (TCTL2) . . . . . . . . . . . . . . . . . . . . . . .39210-16 Measuring a Period with Input Capture . . . . . . . . . . . . . . . . .39410-17 Timing Analysis for Example 10-1 . . . . . . . . . . . . . . . . . . . . .39410-18 Measuring a Pulse Width with Input Capture . . . . . . . . . . . . .39810-19 Timing Analysis for Example 10-2 . . . . . . . . . . . . . . . . . . . . .39910-20 Measuring Long Periods with Input Capture and TOF . . . . . .40410-21 Output-Capture Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . .40810-22 Output Capture Interrupt Enable Bits (OCxI) . . . . . . . . . . . . .41010-23 Output Capture Flags (OCxF). . . . . . . . . . . . . . . . . . . . . . . . .41010-24 Simple Output-Compare Example . . . . . . . . . . . . . . . . . . . . .41210-25 Timer Control Register 1 (TCTL1) . . . . . . . . . . . . . . . . . . . . .41210-26 Generating a Square Wave with Output Compare . . . . . . . . .41310-27 Timing Analysis for Example 10-5 . . . . . . . . . . . . . . . . . . . . .41410-28 Output Compare 1 Mask Register (OC1M) . . . . . . . . . . . . . .41610-29 Output Compare 1 Data Register (OC1D) . . . . . . . . . . . . . . .41610-30 Producing Two PWM Outputs with OC1, OC2, and OC3. . . .41910-31 Output Compare Force Register (CFORC) . . . . . . . . . . . . . .42110-32 Timer Counter as MCU Leaves Reset . . . . . . . . . . . . . . . . . .42210-33 Timer Counter Read — Cycle-by-Cycle Analysis . . . . . . . . . .42210-34 Input-Capture Timing Details . . . . . . . . . . . . . . . . . . . . . . . . .42310-35 Output-Compare Timing Details . . . . . . . . . . . . . . . . . . . . . . .424

    11-1 Pulse Accumulator Operating Modes . . . . . . . . . . . . . . . . . . .44411-2 Block Diagram of Pulse Accumulator Subsystem. . . . . . . . . .44611-3 Timer Interrupt Mask 2 Register (TMSK2) . . . . . . . . . . . . . . .44711-4 Timer Interrupt Flag 2 Register (TFLG2) . . . . . . . . . . . . . . . .44711-5 Pulse Accumulator Control Register (PACTL) . . . . . . . . . . . .447

    List of Figures For More Information On This Product,

    Go to: www.freescale.com

    23

  • List of Figures

    Figure Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    11-6 Pulse Accumulator Count Register (PACNT) . . . . . . . . . . . . .44711-7 Pulse Accumulator-Related Bits in PACTL. . . . . . . . . . . . . . .44811-8 Pulse Accumulator Interrupt Enable Bits . . . . . . . . . . . . . . . .44911-9 Pulse Accumulator Interrupt Flags . . . . . . . . . . . . . . . . . . . . .44911-10 PAI Pin Edge-Detection Timing . . . . . . . . . . . . . . . . . . . . . . .45611-11 Pin Enable versus Counting (Gated Accumulation Mode) . . .45711-12 Timing Details for Pulse Accumulator Counter Overflow . . . .45711-13 PACNT Read and Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . .458

    12-1 Basic Charge-Redistribution A/D . . . . . . . . . . . . . . . . . . . . . .46112-2 Charge-Redistribution A/D

    with ±1/2 LSB Quantization Error . . . . . . . . . . . . . . . . . . .46812-3 MC68HC11A8 A/D in Sample Mode. . . . . . . . . . . . . . . . . . . .47112-4 System Configuration Options Register (OPTION) . . . . . . . .47312-5 Timing Diagram for a Sequence of Four A/D Conversions. . .47512-6 A/D Control/Status Register (ADCTL) . . . . . . . . . . . . . . . . . .47612-7 Electrical Model of an A/D Input Pin (Sample Mode) . . . . . . .47912-8 Graphic Estimation of Analog Sample Level (Case 2) . . . . . .482

    24 List of Figures For More Information On This Product,

    Go to: www.freescale.com

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    List of Tables

    Table Title Page

    M68HC11 — Rev. 6.1 Reference Manual

    1-1 M68HC11 Family Members . . . . . . . . . . . . . . . . . . . . . . . . . . .32

    2-1 Hardware Mode Select Summary. . . . . . . . . . . . . . . . . . . . . . .472-2 Ports B and C and STRA and STRB Pins . . . . . . . . . . . . . . . .62

    3-1 Hardware Mode Select Summary. . . . . . . . . . . . . . . . . . . . . . .873-2 Watchdog Rates versus Crystal Frequency . . . . . . . . . . . . . .1003-3 Bootstrap Mode Pseudo-Vectors . . . . . . . . . . . . . . . . . . . . . .113

    5-1 Hardware Mode Select Summary. . . . . . . . . . . . . . . . . . . . . .1675-2 Reset Vector versus Cause and MCU Mode . . . . . . . . . . . . .1685-3 Watchdog Rates versus Crystal Frequency . . . . . . . . . . . . . .1715-4 Highest Priority I Interrupt versus PSEL3–PSEL0 . . . . . . . . .180

    6-1 Load, Store, and Transfer Instructions . . . . . . . . . . . . . . . . . .2156-2 Arithmetic Operation Instructions . . . . . . . . . . . . . . . . . . . . . .2166-3 Multiply and Divide Instructions . . . . . . . . . . . . . . . . . . . . . . .2176-4 Logical Operation Instructions . . . . . . . . . . . . . . . . . . . . . . . .2186-5 Data Testing and Bit Manipulation Instructions . . . . . . . . . . .2196-6 Shift and Rotate Instructions. . . . . . . . . . . . . . . . . . . . . . . . . .2206-7 Stack and Index Register Instructions . . . . . . . . . . . . . . . . . .2216-8 Condition Code Register Instructions . . . . . . . . . . . . . . . . . . .2236-9 Branch Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2256-10 Jump Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2266-11 Subroutine Call and Return Instructions . . . . . . . . . . . . . . . . .2266-12 Interrupt Handling Instructions . . . . . . . . . . . . . . . . . . . . . . . .2276-13 Miscellaneous Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . .227

    List of Tables For More Information On This Product,

    Go to: www.freescale.com

    25

  • List of Tables

    Table Title Page

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    9-1 Baud Rate Prescale Selects . . . . . . . . . . . . . . . . . . . . . . . . . .3289-2 Baud Rate Selects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3299-3 Baud Rates by Crystal Frequency, SCP1, SCP0,

    and SCR2–SCR0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .360

    10-1 Crystal Frequency versus PR1 and PR0 Values . . . . . . . . . .38010-2 RTI Rates versus RTR1 and RTR0

    for Various Crystal Frequencies . . . . . . . . . . . . . . . . . . . .38510-3 COP Timeout versus CR1 and CR0 Values . . . . . . . . . . . . . .38710-4 Instruction Sequences to Clear TOF . . . . . . . . . . . . . . . . . . .38810-5 EDGxB and EDGxA Encoding . . . . . . . . . . . . . . . . . . . . . . . .39310-6 OMx and OLx Encoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . .413

    11-1 Pulse Accumulator Timing Periods versus Crystal Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .444

    12-1 A/D Channel Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . .477

    26 List of Tables For More Information On This Product,

    Go to: www.freescale.com

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    Section 1. General Description

    1.1 Contents

    M68HC11 — Rev. 6.1 Reference Manual

    1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

    1.3 General Description of the MC68HC11A8 . . . . . . . . . . . . . . . .28

    1.4 Programmer’s Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29

    1.5 Product Derivatives. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32

    1.2 Introduction

    This reference manual is a valuable aid in the development of M68HC11 applications. Detailed descriptions of all internal subsystems and functions have been developed and carefully checked against internal Freescale design documentation, making this manual the most comprehensive reference available for the M68HC11 Family of microcontroller units (MCU).

    Practical applications are included to demonstrate the operation of each subsystem. These applications are treated as complete systems, including hardware/software interactions and tradeoffs. Interfacing techniques to prevent component damage are discussed to aid the hardware designer. For software programmers, Section 6. Central Processor Unit (CPU) and Appendix A. Instruction Set Details contain examples demonstrating efficient use of the instruction set.

    This manual is intended to complement Freescales’s official data sheet, not replace it. The information in the data sheet is current and is guaranteed by production testing. Although the information in this manual was checked against parts and design documentation, the accuracy is not guaranteed like the data sheet is guaranteed. This manual assumes the reader has some basic knowledge of MCUs and

    General Description For More Information On This Product, Go to: www.freescale.com

    27

  • General Description

    assembly-language programming; it may not be appropriate as an instruction manual for a first-time MCU user.

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    The information in this manual is much more detailed than would usually be required for normal use of the MCU, but a user who is familiar with the detailed operation of the part is more likely to find a solution to an unexpected system problem. In many cases, a trick based on software or on-chip resources can be used rather than building expensive external circuitry. Data sheets are geared toward customary, straightforward use of the on-chip peripherals; whereas, an experienced MCU user often uses these on-chip systems in very unexpected ways. The level of detail in this manual will help the normal user to better understand the on-chip systems and will allow the more advanced user to make maximum use of the subtleties of these systems.

    In addition to this manual, the data sheet(s) or technical data is needed for the specific version(s) of the M68HC11 being used. A pocket reference guide is another beneficial source.

    1.3 General Description of the MC68HC11A8

    The high-density complementary metal-oxide semiconductor (HCMOS) MC68HC11A8 is an advanced 8-bit MCU with highly sophisticated, on-chip peripheral capabilities. New design techniques were used to achieve a nominal bus speed of 2 MHz. In addition, the fully static design allows operation at frequencies down to dc, further reducing power consumption.

    The HCMOS technology used on the MC68HC11A8 combines smaller size and higher speeds with the low-power and high-noise immunity of CMOS. On-chip memory systems include:

    • 8 Kbytes of read-only memory (ROM)

    • 512 bytes of electrically erasable programmable ROM (EEPROM)

    • 256 bytes of random-access memory (RAM)

    Major peripheral functions are provided on-chip. An 8-channel analog-to-digital (A/D) converter is included with eight bits of resolution. An asynchronous serial communications interface (SCI) and a separate

    28 General Description For More Information On This Product,

    Go to: www.freescale.com

  • General DescriptionProgrammer’s Model

    synchronous serial peripheral interface (SPI) are included. The main 16-bit, free-running timer system has three input-capture lines, five

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    output-compare lines, and a real-time interrupt function. An 8-bit pulse accumulator subsystem can count external events or measure external periods.

    Self-monitoring circuitry is included on-chip to protect against system errors. A computer operating properly (COP) watchdog system protects against software failures. A clock monitor system generates a system reset in case the clock is lost or runs too slow. An illegal opcode detection circuit provides a non-maskable interrupt if an illegal opcode is detected.

    Two software-controlled power-saving modes, wait and stop, are available to conserve additional power. These modes make the M68HC11 Family especially attractive for automotive and battery-driven applications.

    Figure 1-1 is a block diagram of the MC68HC11A8 MCU. This diagram shows the major subsystems and how they relate to the pins of the MCU. In the lower right-hand corner of this diagram, the parallel input/output (I/O) subsystem is shown inside a dashed box. The functions of this subsystem are lost when the MCU is operated in expanded modes, but the MC68HC24 port replacement unit can be used to regain the functions that were lost. The functions are restored in such a way that the software programmer is unable to tell any difference between a single-chip system or an expanded system containing the MC68HC24. By using an expanded system containing an MC68HC24 and an external EPROM, the user can develop software intended for a single-chip application.

    1.4 Programmer’s Model

    In addition to executing all M6800 and M6801 instructions, the M68HC11 instruction set includes 91 new opcodes. The nomenclature M68xx is used in conjunction with a specific CPU architecture and instruction set as opposed to the MC68HC11xx nomenclature, which is a reference to a specific member of the M68HC11 Family of MCUs.

    General Description 29 For More Information On This Product,

    Go to: www.freescale.com

  • General Description

    PULSE ACCUMULATOR PA7PAI

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    Figure 1-1. Block Diagram

    POWERMODA

    OSCILLATOR

    MODESELECT

    INTERRUPTS

    A/DCONVERTER

    SCI

    M68HC11 CPU

    SPIEEPROM — 512 BYTES

    RAM — 256 BYTES

    ROM — 8K BYTES

    TIMER

    PERIODIC INTERRUPT

    COP WATCHDOG

    ADDRESS/DATA BUS

    HANDSHAKE I/O

    DATA DIRECTION C

    PORT CPORT B

    DAT

    A D

    IREC

    TIO

    N D

    POR

    T A

    POR

    T D

    POR

    T E

    MODB

    E

    EXTAL

    XTAL

    IRQ

    XIRQ

    REFL

    REFH

    RESET

    PE0

    PE1

    PE2

    PE3

    PE4

    PE5

    PE6

    PE7

    (V )PPBULK

    (LIR)

    (V ) STBY

    PA0

    PA1

    PA2

    PA3

    PA4

    PA5

    PA6

    PD0

    PD1

    PD2

    PD3

    PD4

    PD5

    IC3

    IC2

    IC1

    OC5

    OC4

    OC3

    OC2

    RxD

    TxD

    MISO

    MOSI

    SCK

    SS

    OC

    1

    DD SS

    V V

    PB7

    PB6

    PB5

    PB4

    PB3

    PB2

    PB1

    PB0

    PC7

    PC6

    PC5

    PC4

    PC3

    PC2

    PC1

    PC0

    STR

    B

    STR

    A

    A15

    A14

    A13

    A12

    A11

    A10 A9 A8

    AD7

    AD6

    AD5

    AD4

    AD3

    AD2

    AD1

    AD0

    R/W AS

    SINGLECHIP

    EXPANDED

    PAR

    ALLE

    L I/O

    EQU

    IVAL

    ENT

    TO M

    C68

    HC

    24

    V

    V

    30 General Description For More Information On This Product,

    Go to: www.freescale.com

  • General DescriptionProgrammer’s Model

    Figure 1-2 shows the seven CPU registers available to the programmer. The two 8-bit accumulators (A and B) can be used by some instructions

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    as a single 16-bit accumulator called the D register, which allows a set of 16-bit operations even though the CPU is technically an 8-bit processor.

    The largest group of instructions added involve the Y index register. Twelve bit manipulation instructions that can operate on any memory or register location were added. The exchange D with X and exchange D with Y instructions can be used to quickly get index values into the double accumulator (D) where 16-bit arithmetic can be used. Two 16-bit by 16-bit divide instructions are also included.

    Figure 1-2. M68HC11 Programmer’s Model

    CARRY

    OVERFLOW

    ZERO

    NEGATIVE

    I INTERRUPT MASK

    HALF-CARRY (FROM BIT 3)

    X INTERRUPT MASK

    STOP DISABLE

    CCR

    PC

    SP

    IY

    IX

    D

    A:B

    S

    PROGRAM COUNTER

    STACK POINTER

    INDEX REGISTER Y

    INDEX REGISTER X

    DOUBLE ACCUMULATOR D

    ACCUMULATOR B

    CONDITION CODE REGISTER X H I N Z V C

    7 0

    ACCUMULATOR A 7 07 0

    015

    015

    015

    015

    015

    General Description For More Information On This Product,

    Go to: www.freescale.com

    31

  • General Description

    1.5 Product Derivatives

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    The M68HC11 Family of MCUs is composed of the product members listed in Table 1-1. Figure 1-3 explains how the product part numbers are constructed.

    Table 1-1. M68HC11 Family Members

    ProductROM

    (KBytes)RAM

    (Bytes)EPROM/OTP

    (KBytes)EEPROM(Bytes) Timer

    (1) Serial A/D PWMOperatingVoltage

    (V)

    BusFrequency

    (Max) (MHz)

    MC68HC11D0 — 192 — —3/4 IC4/5 OC

    SCISPI

    — — 3.0, 5.0 3

    MC68HC11D3 4 192 — —3/4 IC4/5 OC

    SCISPI

    — — 3.0, 5.0 3

    MC68HC11E0 — 512 — —3/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 3.0, 5.0 3

    MC68HC11E1 — 512 — 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 3.0, 5.0 3

    MC68HC11E2 — 256 — 20483/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 5.0 2

    MC68HC11E9 12 512 — 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 3.0, 5.0 3

    MC68HC11E20 20 768 — 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 5.0 3

    MC68HC11F1 — 1 — 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 3.0, 5.0 5

    MC68HC11K0 — 768 — —3/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    4-CH8-bitor

    2-CH16-bit

    3.0, 5.0 4

    MC68HC11K1 — 768 — 6403/4 IC4/5 OC

    SCI+SPI

    8-CH8-bit

    4-CH8-bitor

    2-CH16-bit

    3.0, 5.0 4

    MC68HC11K4 24 768 — 6403/4 IC4/5 OC

    SCI+SPI

    8-CH8-bit

    4-CH8-bitor

    2-CH16-bit

    3.0, 5.0 4

    32 General Description For More Information On This Product,

    Go to: www.freescale.com

  • General DescriptionProduct Derivatives

    Table 1-1. M68HC11 Family Members (Continued)

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    MC68HC11KS2 — 1 32 6403/4 IC4/5 OC

    SCI+SPI

    8-CH8-bit

    — 5.0 4

    MC68HC11KW1 — 768 — 6403/4 IC4/5 OC

    SCI+SPI

    10-CH10-bit

    4-CH8-bitor

    2-CH16-bit

    5.0 4

    MC68HC11P1 — 1 — 6403/4 IC4/5 OC

    TripleSCISPI

    8-CH8-bit

    4-CH8-bitor

    2-CH16-bit

    5.0 4

    MC68HC11P2 32 1 — 6403/4 IC4/5 OC

    TripleSCISPI

    8-CH8-bit

    4-CH8-bitor

    2-CH16-bit

    5.0 4

    MC68HC711D3 — 192 4 —3/4 IC4/5 OC

    SCISPI

    — — 5.0 3

    MC68HC711E9 — 512 12 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 3.0, 5.0 4

    MC68HC711E20 — 768 20 5123/4 IC4/5 OC

    SCISPI

    8-CH8-bit

    — 5.0 4

    MC68HC711KS2 — 1 32 6403/4 IC4/5 OC

    SCI+SPI

    8-CH8-bit

    — 5.0 4

    1. All M68HC11s include an 8-channel 16-bit timer with real-time interrupt and pulse accumulator. All timers have three input captures, four output compares, and an eighth channel that can be configured as a fourth input capture or a fifth output compare.

    ProductROM

    (KBytes)RAM

    (Bytes)EPROM/OTP

    (KBytes)EEPROM(Bytes) Timer

    (1) Serial A/D PWMOperatingVoltage

    (V)

    BusFrequency

    (Max) (MHz)

    General Description For More Information On This Product,

    Go to: www.freescale.com

    33

  • General Description

    MC 68 HC P 7 11XX B C FN 3 R2

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    Figure 1-3. Part Numbering

    QUALIFICATION LEVELMC — FULLY SPECIFIED AND QUALIFIEDXC — PILOT PRODUCTION DEVICEPC — ENGINEERING SAMPLE

    NUMERIC DESIGNATOR (OPTIONAL)

    OPERATING TEMPERATURE RANGEHC — HCMOS (VDD = 5.0 VDC ± 10%)

    L — HCMOS (VDD = 3.0 VDC TO 5.5 VDC)

    COP OPTION (ONLY ON A-SERIES DEVICES)NONE — COP DISABLEDP — COP ENABLED

    MEMORY TYPEBLANK — MASKED ROM OR NO ROM7 — EPROM/OTPROM8 — EEPROM

    BASE PART NUMBER11A8, 11D3, 11E9, 11K4, ETC.

    MONITOR MASKNONE — BLANKB — BUFFALO

    TEMPERATURE RANGENONE — 0°C TO 70°CC — –40°C TO 85°CV — –40°C TO 105°CM — –40°C TO 125°C

    PACKAGE TYPEFN — 44/52/68/84-PIN PLCCFS — 44/52/68/84-PIN CLCCFU — 64/80-PIN CFPFB — 44-PIN CFPPV — 122-PIN TCFPPU — 80/100-PIN TCFPPB — 52-PIN TCFPP — 40/48-PIN DIPS — 48-PIN SDIP

    MAXIMUM SPECIFIED CLOCK SPEED2 — 2.0 MHz3 — 3.0 MHz4 — 4.0 MHz

    TAPE AND REEL OPTIONNONE — STANDARD PACKAGINGR2 — TAPE AND REEL PACKAGING

    34 General Description For More Information On This Product,

    Go to: www.freescale.com

  • F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    IFreescale Semiconductor, Inc.

    nc

    ...

    Reference Manual — M68HC11

    Section 2. Pins and Connections

    2.1 Contents

    M68HC11 — Rev. 6.1 Reference Manual

    2.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36

    2.3 Packages and Pin Names . . . . . . . . . . . . . . . . . . . . . . . . . . . .372.3.1 MC68HC11A8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .382.3.2 MC68HC11D3/MC68HC711D3 . . . . . . . . . . . . . . . . . . . . . .392.3.3 MC68HC11E9/MC68HC711E9 . . . . . . . . . . . . . . . . . . . . . .402.3.4 MC68HC811E2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .412.3.5 MC68HC11F1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .432.3.6 MC68HC24 Port Replacement Unit . . . . . . . . . . . . . . . . . . .44

    2.4 Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .442.4.1 Power-Supply Pins (VDD and VSS). . . . . . . . . . . . . . . . . . . .452.4.2 Mode Select Pins (MODB/VSTBY and MODA/LIR). . . . . . . .462.4.3 Crystal Oscillator and Clock Pins

    (EXTAL, XTAL, and E) . . . . . . . . . . . . . . . . . . . . . . . . . .502.4.4 Crystal Oscillator Application Information. . . . . . . . . . . . . . .552.4.4.1 Crystals for Parallel Resonance. . . . . . . . . . . . . . . . . . . .552.4.4.2 Using Crystal Oscillator Outputs . . . . . . . . . . . . . . . . . . .562.4.4.3 Using External Oscillator . . . . . . . . . . . . . . . . . . . . . . . . .562.4.4.4 AT-Strip versus AT-Cut Crystals . . . . . . . . . . . . . . . . . . .562.4.5 Reset Pin (RESET) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .562.4.6 Interrupt Pins (XIRQ and IRQ) . . . . . . . . . . . . . . . . . . . . . . .582.4.7 A/D Reference and Port E Pins

    (VREFL, VREFH, and PE7–PE0) . . . . . . . . . . . . . . . . . . . .592.4.8 Timer Port A Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .612.4.9 Serial Port D Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .612.4.10 Ports B and C and STRA and STRB Pins . . . . . . . . . . . . . .62

    2.5 Termination of Unused Pins . . . . . . . . . . . . . . . . . . . . . . . . . . .64

    Pins and Connections For More Information On This Product,

    Go to: www.freescale.com

    35

  • Pins and Connections

    2.6 Avoidance of Pin Damage . . . . . . . . . . . . . . . . . . . . . . . . . . . .662.6.1 Zap and Latchup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .67

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    2.6.2 Protective Interface Circuits . . . . . . . . . . . . . . . . . . . . . . . . .682.6.3 Internal Circuitry — Digital Input-Only Pin . . . . . . . . . . . . . .682.6.4 Internal Circuitry — Analog Input-Only Pin. . . . . . . . . . . . . .702.6.5 Internal Circuitry — Digital I/O Pin . . . . . . . . . . . . . . . . . . . .722.6.6 Internal Circuitry — Input/Open-Drain-Output Pin . . . . . . . .732.6.7 Internal Circuitry — Digital Output-Only Pin . . . . . . . . . . . . .742.6.8 Internal Circuitry — MODB/VSTBY Pin . . . . . . . . . . . . . . . . .742.6.9 Internal Circuitry — IRQ/VPPBULK Pin . . . . . . . . . . . . . . . . .76

    2.7 Typical Expanded Mode System Connections . . . . . . . . . . . . .77

    2.8 Typical Single-Chip Mode System Connections. . . . . . . . . . . .81

    2.9 System Development and Debug Features . . . . . . . . . . . . . . .822.9.1 Load Instruction Register (LIR) . . . . . . . . . . . . . . . . . . . . . .822.9.2 Internal Read Visibility (IRV) . . . . . . . . . . . . . . . . . . . . . . . .822.9.3 MC68HC24 Port Replacement Unit (PRU) . . . . . . . . . . . . .83

    2.2 Introduction

    This section discusses the functions of each pin on the MC68HC11A8, a typical example of an M68HC11 Family part. Most pins on this microcontroller unit (MCU) serve two or more functions. Information about the practical use of each pin is presented in these pin descriptions. This section also includes information concerning pins that are exposed to illegal levels or conditions. The most common source of illegal levels or conditions is transient noise; however, a designer may want to take precautions against potential misapplication of a product or failures of other system components such as power supplies. Consideration of these factors can influence end-product reliability.

    The basic connections for single-chip mode and expanded mode applications are presented in 2.8 Typical Single-Chip Mode System Connections and 2.7 Typical Expanded Mode System Connections. These basic systems can be used as the starting point for any user application and can minimize the time required to achieve a working prototype system. The explanation of these basic systems includes

    36 Pins and Connections For More Information On This Product,

    Go to: www.freescale.com

  • Pins and ConnectionsPackages and Pin Names

    information concerning additions, such as additional memory on the expanded system.

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    System noise generation and susceptibility primarily depend on each system and its environment. The MC68HC11A8 is designed for higher bus speeds than earlier MCUs. Since it is high-density complementary metal-oxide semiconductor (HCMOS), signals drive from rail to rail, unlike earlier N-channel metal-oxide semiconductor (NMOS) processors. Since these factors can significantly affect noise issues, the system designer should consider these changes.

    2.3 Packages and Pin Names

    Figure 2-1 through Figure 2-6 show pin assignments for several members of the M68HC11 Family. The pin assignments for the MC68HC24 port replacement unit (PRU) are also presented for reference although the PRU is not discussed in detail in this manual.

    Detailed mechanical data for packages are located in the data sheets or technical summaries for individual parts. Ordering information, which relates part number suffixes to package types and operating temperature range, are also found in the data sheets or technical summaries.

    Pins and Connections7 For More Information On This Product,

    Go to: www.freescale.com

    37

  • Pins and Connections

    2.3.1 MC68HC11A8

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    The MC68HC11A8 is available in either a 52-pin plastic leaded chip carrier (PLCC) package or a 48-pin dual-in-line package (DIP). The silicon die is identical for both packages, but four of the analog-to-digital (A/D) converter inputs are not bonded out to pins in the 48-pin DIP. The MC68HC11A1 and MC68HC11A0 devices also use the same die as the MC68HC11A8, except that the contents of the nonvolatile configuration (CONFIG) register determine whether internal read-only memory (ROM) and/or electrically erasable programmable ROM (EEPROM) are disabled. These downgraded device versions have identical pin assignments as the MC68HC11A8.

    Figure 2-1 shows the pin assignments for the MC68HC11A8 in the 52-pin PLCC package and the 48-pin DIP package.

    Figure 2-1. MC68HC11A8 Pin Assignments

    XTAL

    PC0/A0/D0

    PC1/A1/D1

    PC2/A2/D2

    PC3/A3/D3

    PC4/A4/D4

    PC5/A5/D5

    PC6/A6/D6

    PC7/A7/D7RESET

    XIRQ

    IRQPD0/RxD

    PE4/AN4

    PE0/AN0

    PB0/A8

    PB1/A9

    PB2/A10

    PB3/A11

    PB4/A12

    PB5/A13

    PB6/A14

    PB7/A15

    PA0/IC3

    EXTA

    L

    STR

    B/R

    /W

    E STR

    A/AS

    MO

    DA/

    LIR

    MO

    DB/

    V STB

    Y

    V SS

    V RH

    V RL

    PE7/

    AN7

    PE3/

    AN3

    PD1/

    TxD

    PD2/

    MIS

    O

    PD3/

    MO

    SI

    PD4/

    SCK

    PD5/

    SS V DD

    PA7/

    PAI/O

    C1

    PA6/

    OC2

    /OC

    1

    PA5/

    OC3

    /OC

    1

    PA4/

    OC4

    /OC

    1

    PA3/

    OC5

    /OC

    1

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    44

    43

    42

    41

    40

    39

    38

    37

    36

    35

    34

    21 22 23 24 25 26 27 28 29 30 31

    7 6 5 4 3

    1

    2 52 51 50 49

    18

    19

    PA2/

    IC1

    32

    PA1/

    IC2

    33

    PE6/

    AN6

    48

    PE2/

    AN2

    47

    PE1/AN145PE5/AN546

    20

    MC68HC11A8PB7/A15

    PB6/A14

    PB5/A13

    PB4/A12

    PB3/A11

    PB2/A10

    PB1/A9

    PB0/A8

    PE0/AN0

    PE1/AN1

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    PE2/AN2 19

    PE3/AN3 20

    21

    VRH 22

    VSS 23

    MODB 24

    PA0/IC3 8

    PA1/IC2 7

    PA2/IC1 6

    PA3/OC5/OC1 5

    PA4/OC4/OC1 4

    PA5/OC3/OC1 3

    PA6/OC2/OC1 2

    PA7/PAI/OC1 1

    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

    38

    37

    36

    35

    34

    33

    32

    31

    30

    29

    28

    RESET39

    XIRQ40

    E27

    STRA/AS26

    MODA/LIR25

    IRQ41

    PD0/RxD42

    PD1/TxD43

    PD2/MISO44

    PD3/MOSI45

    PD4/SCK46

    PD5/SS47

    VDD48

    VRL

    MC68HC11A8

    38 Pins and Connections For More Information On This Product,

    Go to: www.freescale.com

  • Pins and ConnectionsPackages and Pin Names

    2.3.2 MC68HC11D3/MC68HC711D3

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    M68HC11 — Rev. 6.1 Reference Manual

    The MC68HC11D3 is available in either a 44-pin PLCC package or a 40-pin DIP package. The silicon die is identical for both packages, but the PLCC version has two additional output compare pins bonded out and an extra VSS pin named EVSS. The MC68HC711D3 is functionally equivalent to the MC68HC11D3 but has four Kbytes of erasable programmable ROM (EPROM) instead of mask programmed ROM. The MC68HC711D3 is available as a one-time-programmable (OTP) MCU in an opaque plastic package or in a ceramic windowed package for development applications.

    Figure 2-2 shows the pin assignments for the MC68HC11D3/ MC68HC711D3 in the 44-pin PLCC package and the 40-pin DIP package.

    Figure 2-2. MC68HC11D3/711D3 Pin Assignments

    PC4/A4/D4

    PC5/A5/D5

    PC6/A6/D6

    PC7/A7/D7

    XIRQ/VPPPD7/R/W

    PD6/AS

    RESET

    IRQ

    PD0/RxD

    PD1/TxD

    PB2/A10

    PB3/A11

    PB4/A12

    PB5/A13

    PB6/A14

    PB7/A15

    NC

    PA0/IC3

    PA1/IC2

    PC3/

    A3/D

    3

    PC2/

    A2/D

    2

    PC1/

    A1/D

    1

    PC0/

    A0/D

    0

    V SS

    EVSS

    XTAL

    EXTA

    L

    E MO

    DA/

    LIR

    MO

    DB/

    V STB

    Y

    PD2/

    MIS

    O

    PD3/

    MO

    SI

    PD4/

    SCK

    PD5/

    SS V DD

    PA7/

    PAI/O

    C1

    PA6/

    OC

    3/O

    C1

    PA5/

    OC

    3/O

    C1

    PA4/

    OC

    4/O

    C1

    PA3/

    IC4/

    OC

    5/O

    C1

    PA2/

    IC1

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    37

    36

    35

    34

    33

    32

    31

    30

    29

    18 19 20 21 22 23 24 25 26 27 28

    6 5 4 3 2

    1

    44 43 42 41 40

    17

    PB1/A938

    PB0/A839

    MC68HC(7)11D3

    PC7/A7/D7

    XIRQ/VPPPD7/R/W

    PD6/AS

    RESET

    IRQ

    PD0/RxD

    PD1/TxD

    PD2/MISO

    PD3/MOSI

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    PD4/SCK 19

    PD5/SS 20

    PC6/A6/D6 8

    PC5/A5/D5 7

    PC4/A4/D4 6

    PC3/A3/D3 5

    PC2/A2/D2 4

    PC1/A1/D1 3

    PC0/A0/D0 2

    VSS 1

    PB5/A13

    PB6/A14

    PB7/A15

    PA0/IC3

    PA1/IC2

    PA2/IC1

    PA3/IC4/OC5/OC1

    PA5/OC3/OC1

    PA7/PAI/OC1

    VDD

    30

    29

    28

    27

    26

    25

    24

    23

    22

    21

    PB4/A1231

    PB3/A1132

    PB2/A1033

    PB1/A934

    PB0/A835

    MODB/VSTBY36

    MODA/LIR37

    E38

    EXTAL39

    XTAL40

    MC68HC(7)11D3

    Pins and Connections For More Information On This Product,

    Go to: www.freescale.com

    39

  • Pins and Connections

    2.3.3 MC68HC11E9/MC68HC711E9

    F

    ree

    sca

    le S

    em

    ico

    nd

    uc

    tor,

    I

    Freescale Semiconductor, Inc.n

    c..

    .

    Reference Manual M68HC11 — Rev. 6.1

    The MC68HC11E9 is available in a 52-pin PLCC package only. The MC68HC11E1 and MC68HC11E0 devices also use the same die as the MC68HC11E9, except that the contents of


Recommended