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.
This reference manual will be 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 Motorola design documentation, making
this manual the most comprehensive reference available for the M68HC11 Family of
microcontroller units (MCUs).
Practical applications are included to demonstrate the operation of each subsystem.
These applications are treated as complete systems, including hardware/software interactions and trade-offs. Interfacing techniques to prevent component damage are
discussed to aid the hardware designer. For software programmers,
CENTRAL PROCESSING UNIT
contain examples demonstrating efficient use of the instruction set.
and APPENDIX A INSTRUCTION SET DETAILS
SECTION 6
This manual is intended to complement Motorola’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 assembly-language
programming; it may not be appropriate as an instruction manual for a first-time MCU
user.
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 summary is needed for the
specific version(s) of the M68HC11 being used. A pocket reference guide is another
beneficial source.
1
1.1 General Description of the MC68HC11A8
The HCMOS MC68HC11A8 is an advanced 8-bit MCU with highly sophisticated, onchip 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 sys-
M68HC11
REFERENCE MANUAL1-1
GENERAL DESCRIPTION
MOTOROLA
tems include 8 Kbytes of read-only memory (ROM), 512 bytes of electrically erasable
programmable ROM (EEPROM), and 256 bytes of random-access memory (RAM).
Major peripheral functions are provided on-chip. An eight-channel analog-to-digital (A/
D) converter is included with eight bits of resolution. An asynchronous serial communications interface (SCI) and a separate synchronous serial peripheral interface (SPI)
are included. The main 16-bit, free-running timer system has three input-capture lines,
five 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.
1
Figure 1-1 is a block diagram of the MC68HC11A8 MCU. This diagram shows the ma-
jor subsystems and how they relate to the pins of the MCU. In the lower right-hand corner of this diagram, the parallel 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.2 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.
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 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.
MOTOROLA
1-2REFERENCE MANUAL
GENERAL DESCRIPTION
M68HC11
MODA/
LIR
COPPULSE ACCUMULATOR
PA7/PAI/OC1
PA6/OC2/OC1
CIRCUITRY ENCLOSED BY DOTTED LINE IS EQUIVALENT TO MC68HC24.
MODB/
V
MODE
CONTROL
TIMER
SYSTEM
PORT A
PA5/OC3/OC1
PA4/OC4/OC1
PA3/OC5/OC1
STBY
OSCILLATOR
PERIODIC INTERRUPT
PA2/IC1
PA1/IC2
PA0/IC3
EXTALXTAL
CLOCK LOGIC
BUS EXPANSION
ADDRESS
STROBE AND HANDSHAKE
PORT B
PB7
PB6
PB5
PB4
PB3
PB2
A15
A14
A13
A12
A11
A10
E
CPU
PARALLEL I/O
PB1
PB0
SINGLE CHIP MODE
A9
EXPANDED MODE
PC7
A8
A7/D7
IRQ/
XIRQ
INTERRUPT LOGIC
ADDRESS/DATA
CONTROL
PORT C
PC6
PC5
PC4
PC3
A6/D6
A5/D5
A4/D4
A3/D3
PC2
PC1
A2/D2
A1/D1
RESET
PC0
A0/D0
R/W
AS
STRA
STRB
AS
R/W
8 KBYTES ROM
512 BYTES EEPROM
256 BYTES RAM
SPIA/D CONVERTERSCI
SS
SCK
MOSI
MISO
CONTROL
PORT D
PD5/SS
PD4/SCK
PD3/MOSI
PD2/MISO
TxD
RxD
PD1/TxD
PD0/RxD
PORT E
PE7/AN7
PE6/AN6
PE5/AN5
PE4/AN4
PE3/AN3
V
V
V
V
PE2/AN2
PE1/AN1
PE0/AN0
DD
SS
RH
RL
1
Figure 1-1 Block Diagram
M68HC11
GENERAL DESCRIPTION
MOTOROLA
REFERENCE MANUAL1-3
1
7070
150
AB
D
IX
IY
SP
PC
70
8-BIT ACCUMULATORS A & B
OR 16-BIT DOUBLE ACCUMULATOR D
INDEX REGISTER X
INDEX REGISTER Y
STACK POINTER
PROGRAM COUNTER
CONDITION CODES
CVZNIHXS
CARRY/BORROW FROM MSB
OVERFLOW
ZERO
NEGATIVE
I-INTERRUPT MASK
HALF CARRY (FROM BIT 3)
X-INTERRUPT MASK
STOP DISABLE
Figure 1-2 M68HC11 Programmer’s Model
1.3 Product Derivatives
The M68HC11 Family of MCUs is composed of several members (see Table 1-1), and
new members are being developed.
Figure 1-3 explains how the product part num-
bers are constructed.
MOTOROLA
1-4REFERENCE MANUAL
GENERAL DESCRIPTION
M68HC11
QUALIFICATION LEVEL
MC — FULLY SPECIFIED AND QUALIFIED
XC — PILOT PRODUCTION DEVICE
PC — ENGINEERING SAMPLE
MC68HC11A8——512256$0FFamily Built Around This Device
MC68HC11A1——512256$0D’A8 with ROM Disabled
MC68HC11A0———256$0C’A8 with ROM and EEPROM Disabled
MC68HC811A8——8K + 512256$0FEEPROM Emulator for ’A8
MC68HC11E9—12K512512$0FFour Input Capture/Bigger RAM 12K ROM
MC68HC11E1——512512$0D’E9 with ROM Disabled
MC68HC11E0———512$0C’E9 with ROM and EEPROM Disabled
1
MC68HC811E2——
MC68HC711E912K—512512$0FOne-Time Programmable Version of ’E9
MC68HC11D3—4K—192N/ALow-Cost 40-Pin Version
MC68HC711D94K——192N/AOne-Time Programmable Version of ’D3
MC68HC11F1——
MC68HC11K4—24K640768$FF> 1 Mbyte memory space, PWM, C
MC68HC711K424K—640768$FFOne-Time Programmable Version of ’K4
MC68HC11L6—16K512512$0FLike ’E9 with more ROM and more I/O, 64/68
MC68HC711L616K—512512$0FOne-Time Programmable Version of ’L4
2K
512
256
1
1K
1. The EEPROM is relocatable to the top of any 4 Kbyte memory page. Relocation is done with the upper four bits of
the CONFIG register.
2. CONFIG register values in this table reflect the value programmed prior to shipment from Motorola.
3. At the time of this printing a change was being considered that would make this value $0F.
MOTOROLA
1-6REFERENCE MANUAL
GENERAL DESCRIPTION
M68HC11
SECTION 2 PINS AND CONNECTIONS
This section discusses the functions of each pin on the MC68HC11A8. 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 wish 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
panded-Mode-System Connections
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 information concerning additions, such as additional memory on the expanded system.
2.5 Typical Single-Chip-Mode System Connections and 2.6 Typical Ex-
. These basic systems can be used as the
2
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.1 Packages And Pin Names
The following figures show pin assignments for several members of the M68HC11
MCU 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 may be found in the data sheets or technical
summaries. Ordering information, which relates part number suffixes to package types
and operating temperature range, are also found in the data sheets or technical summaries.
2.1.1 MC68HC11A8
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 CONFIG
register determine whether or not 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.
M68HC11
REFERENCE MANUAL2-1
PINS AND CONNECTIONS
MOTOROLA
Figure 2-1 shows the pin assignments for the MC68HC11A8 in the 52-pin PLCC pack-
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 V
pin named E
SS
VSS
. The
MC68HC711D3 is functionally equivalent to the MC68HC11D3 but has 4 Kbytes of
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/711D3 in the 44-pin
PLCC package and the 40-pin DIP package.
MOTOROLA
2-2REFERENCE MANUAL
PINS AND CONNECTIONS
M68HC11
PC4/ADDR4
PC5/ADDR5
PC6/ADDR6
PC7/ADDR7
XIRQ/V
PD7/R/W
PD6/AS
RESET
IRQ
PD0/RxD
PD1/TxD
V
1
STBY
EXTAL
STRB/R/WESTRA/AS
6
5
7
8
9
10
11
PP
12
13
14
15
16
17
1819202122
PD2/MISO
PD3/MOSI
MODA/LIR
4
3
2
MC68HC(7)11D3
DD
V
PD4/SCK
PA7/PAI/OC1
MODB/V
VSSVRHVRLPE7/AN7
44
434241
1
2324252627
PA6/OC3/OC1
PA5/OC3/OC1
PA5/OC3/OC1
PA4/OC4/OC1
PE3/AN3
40
39
PB0/ADDR8
PB1/ADDR9
38
37
PB2/ADDR10
36
PB3/ADDR11
35
PB4/ADDR12
PB5/ADDR13
34
33
PB6/ADDR14
PB7/ADDR15
32
NC
31
30
PA0/IC3
29
PA1/IC2
28
PA2/IC1
PA3/IC4/OC5/OC1
PC0/ADDR0
PC1/ADDR1
PC2/ADDR2
PC3/ADDR3
PC4/ADDR4
PC5/ADDR5
PC6/ADDR6
PC7/ADDR7
XIRQ
/V
PD7/R/W
PD6/AS
RESET
IRQ
PD0/RxD
PD1/TxD
PD2/MISO
PD3/MOSI
PD4/SCK
PD5/SS
SS
2
3
4
5
6
7
MC68HC(7)11D3
8
9
PP
10
11
12
13
14
15
16
17
18
19
20
XTAL
40
EXTAL
39
E
38
MODA/LIR
37
MODB/V
36
PB0/ADDR8
35
PB1/ADDR9
34
PB2/ADDR10
33
PB4/ADDR12
32
PB5/ADDR13
31
PB6/ADDR14
30
PB7/ADDR15
29
PA0/IC3
28
PA1/IC2
27
PA1/IC2
26
PA2/IC1
25
PA3/IC4/OC5/OC1
24
PA5/OC3/OC1
23
PA7/PAI/OC1
22
V
21
DD
STBY
2
Figure 2-2 MC68HC11D3/711D3 Pin Assignments
2.1.3 MC68HC11E9/711E9
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 the nonvolatile CONFIG register determine whether or not internal
ROM and/or EEPROM are disabled. These downgraded device versions have identical pin assignments as the MC68HC11E9.
The MC68HC11E9 is an upgrade of the MC68HC11A8. The MC68HC11E9 has 12
Kbytes of mask ROM, 512 bytes of EEPROM, and 512 bytes of RAM. The timer system allows one output-compare channel to be reconfigured as a fourth input-capture
channel.
The MC68HC711E9 is functionally equivalent to the MC68HC11E9 but has 12 Kbytes
of EPROM instead of mask programmed ROM. The MC68HC711E9 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-3 shows the pin assignments for the MC68HC11E9 in the 52-pin PLCC pack-
ages. These pin assignments are the same as the MC68HC11A8, except for the pin
name for the PA3/OC5/IC4/OC1 pin.
The MC68HC811E2 is very similar to the MC68HC11E9 version, except in the on-chip
memory. The MC68HC811E2 includes 2 Kbytes of EEPROM, which can be remapped
to the upper half of any 4 Kbyte page in the 64 Kbyte map. There is no masked ROM
memory in the MC68HC811E2. The MC68HC811E2 is available in either a 52-pin
PLCC package or a 48-pin DIP. The silicon die used is the same for both packages,
but four of the A/D converter inputs are not bonded out to pins in the 48-pin package.
The MC68HC811E2 version replaces an earlier version called the MC68HC811A2.
The only significant difference between the MC68HC811E2 and MC68HC811A2 is
that the MC68HC811E2 has a slightly more flexible timer system, which allows one
output-compare channel to be reconfigured as a fourth input-capture channel.
The 52-pin PLCC package version of the MC68HC811E2 has identical pin assignments to the MC68HC11E9 pin assignments shown in
Figure 2-3. Figure 2-4 illus-
trates the pin assignments for the MC68HC811E2 in the 48-pin DIP.
The MC68HC11F1 is available in a 68-pin PLCC package only. The MC68HC11F1 is
the first non-multiplexed address/data bus version of the M68HC11 family. In addition
to the non-multiplexed bus, this MCU includes 1 Kbyte of on-chip RAM and intelligent
chip selects for simple connection to external program memory without the need for
any external logic chips. Other on-chip peripherals are similar to the MC68HC11E9.
Figure 2-5 shows the pin assignments for the MC68HC11F1 in the 68-pin PLCC pack-
The MC68HC24 is available in either a 44-pin PLCC package or a 40-pin DIP. Figure
shows the pin assignments for the MC68HC24 in the 44-pin PLCC package and
2-6
the 40-pin DIP package.
MOTOROLA
2-6REFERENCE MANUAL
PINS AND CONNECTIONS
M68HC11
)
STRA
PC0
PC1
PC2
PC3
NC
PC4
PC5
PC6
PC7
V
I/O TEST
A12
A13
A14
A15
I/O TESTNCCS
6
5
4
3
2
7
8
9
10
11
12
13
14
15
16
17
DD
18
STRB
19
PB7
MC68HC24
202122
PB6
PB5
PB4NCPB3
MODEASE
44
434241
1
2324252627
PB2
PB1
PB0
R/W
40
28
IRQ
39
RESET
AD0
38
37
AD1
36
AD2
35
AD3
NC
34
33
AD4
AD5
32
AD6
31
30
AD7
29
V
SS
A15
A14
A13
A12
STRA
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
V
STRB
PB7
PB6
PB5
PB4
1
2
3
4
5
6
7
MC68HC24
8
9
10
11
12
13
14
15
DD
16
17
18
19
20
CS
40
MODE
39
AS
38
E
37
R/W
36
RESET
35
AD0
34
AD1
33
AD2
32
AD3
31
AD4
30
AD5
29
AD6
28
AD7
27
V
26
SS
IRQ
25
PB0
24
PB1
23
PB2
22
PB3
21
2
Figure 2-6 MC68HC24 Pin Assignments
2.2 Pin Descriptions
This section provides a pin-by-pin description of the MCU. In general, a designer
should consider all possible functions of each pin when designing the MCU into an application system.
schematics of the logic associated with each of the I/O pins.
discusses the pins that operate as a multiplexed address/data bus in expanded modes of operation as well as the functions of
other pins related to mode selection and bus control. The reset and interrupt pins are
presented again in
SECTION 5 RESETS AND INTERRUPTS. Sections 8 through 12
discuss pins related to the on-chip peripherals presented in those sections.
Figure 1-1 is a pin-function-oriented block diagram of the MC68HC11A8, which is a
good reference for development and verification of application designs.
2.2.1 Power-Supply Pins (V
Power is supplied to the MCU by using these pins. V
is ground. The MC68HC11A8 MCU uses a single power supply, but in some ap-
V
SS
and V
DD
SS
is the positive power input, and
DD
plications, there may also be optional power supplies for A/D reference and/or for battery backup of on-chip random-access memory (RAM). These additional power
sources are optional, and the MCU, including RAM and A/D, can operate from a single
5-V (nominal) power supply.
M68HC11
PINS AND CONNECTIONS
MOTOROLA
REFERENCE MANUAL2-7
2
µ
µ
µ
µ
µ
Although the MC68HC11A8 is a CMOS device, very fast signal transitions are present
on many of the pins. Even when the MCU is operating at slow clock rates, short rise
and fall times are present. Depending upon the loading on these fast signals, significant short-duration current demands can be placed on the MCU power supply. Special
care must be taken to provide good power-supply bypassing at the MCU.
The faster edge times in the MC68HC11A8 generally place greater demands on bypassing than earlier NMOS MCU designs. A typical expanded-mode system should include a 1be as close (physically and electrically) as possible to the MC68HC11A8 and should
have good high-frequency characteristics (i.e., not old-technology dipped ceramic
disc). The 1low-impedance path (minimum-length runners). Without this bypass, there could be
very large voltage drops in the circuit board runners to the MCU due to the very high
(although very short duration) current spike caused by several MCU pins simultaneously switching from one level to the other. The separate 0.01cluded because the larger 1high-frequency (low energy) noise. These are only general recommendations. Some
lightly loaded single-chip systems may work quite well with a single 0.1pacitor; whereas, more heavily loaded expanded-mode systems may require more
elaborate bypassing measures.
F capacitor and a separate 0.01-µF capacitor. Both these capacitors should
F capacitor primarily supplies charge for bus switching through a very
F capacitor is in-
F capacitor is typically not as good at snubbing very
F bypass ca-
It is easier and less expensive to approach power-supply layout and bypassing as a
preventive measure from the beginning of a design than to locate and correct a noise
problem in a marginal design. Problems related to inadequate power-supply layout
and bypassing are very difficult to locate and correct, but, if reasonable care is taken
from the start of a design, noise should not arise as a problem.
2.2.2 Mode Select Pins (MODB/V
The mode B/standby RAM supply (MODB/V
input pin and a standby power-supply pin. The mode A/load instruction register (MODA/LIR
it operates as a diagnostic output signal while the MCU is executing instructions.
The hardware mode select mechanism starts with the logic levels on the MODA and
MODB pins while the MCU is in the reset state. The logic levels on the MODA and
MODB pins are fed into the MCU via a clocked pipeline path. The levels captured are
those that were present part of a clock cycle before the RESET
sures there will be a zero hold-time requirement on the mode select pins relative to the
rising edge at the RESET pin. The captured levels determine the logic state of the special mode (SMOD) and mode A select (MDA) control bits in the highest priority interrupt (HPRIO) register. These two control bits actually control the logic circuits involved
in hardware mode selection. Mode A selects between single-chip modes and expanded modes; mode B selects between the normal variation and the special variation of
the chosen operating mode. Bootstrap mode is the special variation of single-chip
mode, and special test is the special variation of expanded mode.
rizes the operation of the mode pins and mode control bits.
) pin is used to select the MCU operating mode while the MCU is in reset, and
and MODA/LIR)
STBY
) pin functions as both a mode select
STBY
pin rose, which as-
Table 2-1 summa-
MOTOROLA
2-8REFERENCE MANUAL
PINS AND CONNECTIONS
M68HC11
Loading...
+ 480 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.