The MC68HC11A8, MC68HC11A1, and MC68HC11A0 high-performance microcontroller units (MCUs)
are based on the M68HC11 Family. These high speed, low power consumption chips have multiplexed
buses and a fully static design. The chips can operate at frequencies from 3 MHz to dc. The three MCUs
are created from the same masks; the only differences are the value stored in the CONFIG register, and
whether or not the ROM or EEPROM is tested and guaranteed.
For detailed information about specific characteristics of these MCUs, refer to the
Manual
(M68HC11RM/AD).
M68HC11 Reference
1.1 Features
• M68HC11 CPU
• Power Saving STOP and WAIT Modes
• 8 Kbytes ROM
• 512 Bytes of On-Chip EEPROM
• 256 Bytes of On-Chip RAM (All Saved During Standby)
1.1 Features ..........................................................................................................................................1
2 Operating Modes and Memory Maps.......................................................................................................6
6 Serial Communications Interface (SCI)..................................................................................................23
7 Serial Peripheral Interface (SPI).............................................................................................................29
8 Main Timer..............................................................................................................................................32
In single-chip operating mode, the MC68HC11A8 is a monolithic microcontroller without external address or data buses.
In expanded multiplexed operating mode, the MCU can access a 64 Kbyte address space. The space
includes the same on-chip memory addresses used for single-chip mode plus external peripheral and
memory devices. The expansion bus is made up of ports B and C and control signals AS and R/W
address, R/W, and AS signals are active and valid for all bus cycles including accesses to internal memory locations. The following figure illustrates a recommended method of demultiplexing low-order addresses from data at port C.
. The
MOTOROLAMC68HC11A8
6MC68HC11A8TS/D
MC68HC11A8
PB7
PB6
PB5
PB4
PB3
PB2
PB1
PB0
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
AS
R/W
A15
A14
A13
A12
A11
A10
A9
A8
MC54/74HC373
D1
D2
D3
D4
D5
D6
D7
D8
LE
E
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
OE
A7
A6
A5
A4
A3
A2
A1
A0
WE
D7
D6
D5
D4
D3
D2
D1
D0
Figure 4 Address/Data Demultiplexing
Special bootstrap mode allows special purpose programs to be entered into internal RAM. The bootloader program uses the SCI to read a 256-byte program into on-chip RAM at $0000 through $00FF.
After receiving the character for address $00FF, control passes to the loaded program at $0000.
Special test mode is used primarily for factory testing.
2.1 Memory Maps
Memory locations are the same for expanded multiplexed and single-chip modes. The on-board 256byte RAM is initially located at $0000 after reset. The 64-byte register block originates at $1000 after
reset. RAM and/or the register block can be placed at any other 4K boundary ($x000) after reset by writing an appropriate value to the INIT register. The 512-byte EEPROM is located at $B600 through $B7FF
after reset if it is enabled. The 8 Kbyte ROM is located at $E000 through $FFFF if it is enabled.
Hardware priority is built into the memory remapping. Registers have priority over RAM, and RAM has
priority over ROM. The higher priority resource covers the lower, making the underlying locations inaccessible.
In special bootstrap mode, a bootloader ROM is enabled at locations $BF40 through $BFFF.
In special test and special bootstrap modes, reset and interrupt vectors are located at $BFC0 through
$BFFF.
MC68HC11A8 MOTOROLA
MC68HC11A8TS/D7
$0000
$1000
$B600
$E000
$FFFF
SINGLE
CHIP
EXT
EXT
EXPANDED
MUX
SPECIAL
BOOTSTRAP
EXTEXT
EXT
EXT
SPECIAL
TEST
0000
256 BYTES RAM
(CAN BE REMAPPED TO ANY
4K PAGE BY THE INIT REGISTER)
00FF
1000
64 BYTE REGISTER BLOCK
(CAN BE REMAPPED TO ANY
4K PAGE BY THE INIT REGISTER)
103F
B600
512 BYTES EEPROM
B7FF
BF40
BOOT
ROM
BFFF
E000
8K ROM
FFFF
BFC0
BFFF
FFC0
FFFF
SPECIAL
MODE
INTERRUPT
VECTORS
NORMAL
MODE
INTERRUPT
VECTORS
Figure 5 Memory Map
MOTOROLAMC68HC11A8
8MC68HC11A8TS/D
Table 3 MC68HC11A8 Register and Control Bit Assignments (Sheet 1 of 2)
(The register block can be remapped to any 4K boundary.)
1 = Data from internal reads is driven out through the external data bus
PSEL3–PSEL0 — Priority Select Bits 3 through 0
Refer to 3 Resets and Interrupts .
INIT — RAM and I/O Mapping
Bit 7654321Bit 0
RAM3RAM2RAM1RAM0REG3REG2REG1REG0
RESET:00000001
$103D
RAM[3:0] —256-Byte Internal RAM Map Position
RAM[3:0] determine the upper four bits of the RAM address, positioning RAM at the selected 4K boundary.
REG[3:0] —64-Byte Register Block Map Position
REG[3:0] determine the upper four bits of the register address, positioning registers at the selected 4K
boundary. Register can be written only once in the first 64 cycles out of reset in normal modes, or any
time in special modes.
MC68HC11A8 MOTOROLA
MC68HC11A8TS/D11
TEST1 — Factory Test
Bit 7654321Bit 0
TILOP0OCCRCBYPDISRFCMFCOPTCON
RESET:0000—000
$103E
Test Modes Only
TILOP — Test Illegal Opcode
OCCR — Output Condition Code Register to Timer Port
CBYP — Timer Divider Chain Bypass
DISR — Disable Resets from COP and Clock Monitor
DISR is forced to one out of reset in special test and bootstrap modes.
FCM — Force Clock Monitor Failure
FCOP — Force COP Watchdog Failure
TCON — Test Configuration Register
CONFIG — COP, ROM, EEPROM Enables
Bit 7654321Bit 0
0000NOSEC NOCOP ROMONEEON
RESET:0000————
$103F
NOTE
The bits of this register are implemented with EEPROM cells. Programming and
erasing follow normal EEPROM procedures. The erased state of CONFIG is $0F.
A new value is not readable until after a subsequent reset sequence. CONFIG can
only be programmed or erased in special modes.
NOSEC — EEPROM Security Disable
Refer to 4 Electrically Erasable Programmable Read-Only Memory (EEPROM) .
NOCOP — COP System Disable
Refer to 3 Resets and Interrupts .
ROMON — ROM Enable
In single-chip mode, ROMON is forced to one out of reset.
0 = 8K ROM removed from the memory map
1 = 8K ROM present in the memory map
EEON — EEPROM Enable
0 = EEPROM is removed from the memory map
1 = EEPROM is present in the memory map
MOTOROLAMC68HC11A8
12MC68HC11A8TS/D
3 ResetsandInterrupts
The MC68HC11A8 has three reset vectors and 18 interrupt vectors. The reset vectors are as follows:
• RESET
• COP Clock Monitor Fail
• COP Failure
The eight interrupt vectors service 23 interrupt sources (three non-maskable, 20 maskable). The three
non-maskable interrupt vectors are as follows:
• Illegal Opcode Trap
• Software Interrupt
• XIRQ Pin (Pseudo Non-Maskable Interrupt)
The 20 maskable interrupt sources are subject to masking by a global interrupt mask, the I bit in the
condition code register (CCR). In addition to the global I bit, all of these sources except the external
interrupt (IRQ
M68HC11 have separate interrupt vectors. For this reason, there is usually no need for software to poll
control registers to determine the cause of an interrupt. The maskable interrupt sources respond to a
fixed priority relationship, except that any one source can be dynamically elevated to the highest priority
position of any maskable source. Refer to the table of interrupt and reset vector assignments.
On-chip peripheral systems generate maskable interrupts that are recognized only if the I bit in the CCR
is clear. Maskable interrupts are prioritized according to a default arrangement, but any one source can
be elevated to the highest maskable priority position by the HPRIO register. The HPRIO register can be
written at any time, provided the I bit in the CCR is set.
For some interrupt sources, such as the parallel I/O and SCI interrupts, the flags are automatically
cleared during the course of responding to the interrupt requests. For example, the RDRF flag in the
SCI system is cleared by the automatic clearing mechanism, which consists of a read of the SCI status
register while RDRF is set, followed by a read of the SCI data register. The normal response to an
RDRF interrupt request is to read the SCI status register to check for receive errors, then to read the
received data from the SCI data register. These two steps satisfy the automatic clearing mechanism
without requiring any special instructions.
, or Power-On
) pin are controlled by local enable bits in control registers. Most interrupt sources in the
The real-time interrupt (RTI) function generates hardware interrupts at a fixed periodic rate. These hard-
ware interrupts provide a time reference signal for routines that measure real time. The routine notes
the number of times a particular interrupt has occurred and multiplies that number by the predetermined
subroutine execution time.
There are four RTI signal rates available in the MC68HC11A8. The MCU oscillator frequency and the
value of two software-accessible control bits, RTR1 and RTR0, in the pulse accumulator control register
(PACTL) determine these signal rates. Refer to 8 Main Timer for more information about PACTL.
MC68HC11A8 MOTOROLA
MC68HC11A8TS/D13
•
•
•
•
•
Table 4 Interrupt and Reset Vector Assignments
Vector AddressInterrupt SourceCCR MaskLocal Mask
FFC0, C1 – FFD4, D5Reserved——
FFD6, D7SCI Serial SystemI Bit
SCI Transmit CompleteTCIE
SCI Transmit Data Register EmptyTIE
SCI Idle Line DetectILIE
SCI Receiver OverrunRIE
SCI Receive Data Register FullRIE