background image
Order this document
by MC68332TS/D Rev. 2
© MOTOROLA INC., 1993, 1996
This document contains information on a new product. Specifications and information herein are subject to change without notice.
MOTOROLA
SEMICONDUCTOR
TECHNICAL DATA
MC68332
Technical Summary
32-Bit Modular Microcontroller
1 Introduction
The MC68332, a highly-integrated 32-bit microcontroller, combines high-performance data manipula-
tion capabilities with powerful peripheral subsystems. The MCU is built up from standard modules that
interface through a common intermodule bus (IMB). Standardization facilitates rapid development of
devices tailored for specific applications.
The MCU incorporates a 32-bit CPU (CPU32), a system integration module (SIM), a time processor unit
(TPU), a queued serial module (QSM), and a 2-Kbyte static RAM module with TPU emulation capability
(TPURAM).
The MCU can either synthesize an internal clock signal from an external reference or use an external
clock input directly. Operation with a 32.768-kHz reference frequency is standard. The maximum sys-
tem clock speed is 20.97 MHz. System hardware and software allow changes in clock rate during op-
eration. Because MCU operation is fully static, register and memory contents are not affected by clock
rate changes.
High-density complementary metal-oxide semiconductor (HCMOS) architecture makes the basic power
consumption of the MCU low. Power consumption can be minimized by stopping the system clock. The
CPU32 instruction set includes a low-power stop (LPSTOP) command that efficiently implements this
capability.
background image
MOTOROLA
MC68332
2
MC68332TS/D
Table 1 Ordering Information
Package Type
TPU Type
Temperature
Frequency
(MHz)
Package
Order
Quantity
Order Number
132-Pin PQFP
Motion Control
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332GCFC16
36 pc tray
MC68332GCFC16
20 MHz
2 pc tray
SPAKMC332GCFC20
36 pc tray
MC68332GCFC20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332GVFC16
36 pc tray
MC68332GVFC16
20 MHz
2 pc tray
SPAKMC332GVFC20
36 pc tray
MC68332GVFC20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332GMFC16
36 pc tray
MC68332GMFC16
20 MHz
2 pc tray
SPAKMC332GMFC20
36 pc tray
MC68332GMFC20
Standard
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332CFC16
36 pc tray
MC68332CFC16
20 MHz
2 pc tray
SPAKMC332CFC20
36 pc tray
MC68332CFC20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332VFC16
36 pc tray
MC68332VFC16
20 MHz
2 pc tray
SPAKMC332VFC20
36 pc tray
MC68332VFC20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332MFC16
36 pc tray
MC68332MFC16
20 MHz
2 pc tray
SPAKMC332MFC20
36 pc tray
MC68332MFC20
Std w/enhanced
PPWA
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332ACFC16
36 pc tray
MC68332ACFC16
20 MHz
2 pc tray
SPAKMC332ACFC20
36 pc tray
MC68332ACFC20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332AVFC16
36 pc tray
MC68332AVFC16
20 MHz
2 pc tray
SPAKMC332AVFC20
36 pc tray
MC68332AVFC20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332AMFC16
36 pc tray
MC68332AMFC16
20 MHz
2 pc tray
SPAKMC332AMFC20
36 pc tray
MC68332AMFC20
background image
MC68332
MOTOROLA
MC68332TS/D
3
144-Pin QFP
Motion Control
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332GCFV16
44 pc tray
MC68332GCFVV16
20 MHz
2 pc tray
SPAKMC332GCFV20
44 pc tray
MC68332GCFV20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332GVFV16
44 pc tray
MC68332GVFV16
20 MHz
2 pc tray
SPAKMC332GVFV20
44 pc tray
MC68332GVFV20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332GMFV16
44 pc tray
MC68332GMFV16
20 MHz
2 pc tray
SPAKMC332GMFV20
44 pc tray
MC68332GMFVV20
Standard
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332CFV16
44 pc tray
MC68332CFV16
20 MHz
2 pc tray
SPAKMC332CFVV20
44 pc tray
MC68332CFV20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332VFV16
44 pc tray
MC68332VFV16
20 MHz
2 pc tray
SPAKMC332VFV20
44 pc tray
MC68332VFV20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332MFV16
44 pc tray
MC68332MFV16
20 MHz
2 pc tray
SPAKMC332MFV20
44 pc tray
MC68332MFV20
Std w/enhanced
PPWA
–40 to +85
°
C
16 MHz
2 pc tray
SPAKMC332ACFV16
44 pc tray
MC68332ACFV16
20 MHz
2 pc tray
SPAKMC332ACFV20
44 pc tray
MC68332ACFV20
–40 to +105
°
C
16 MHz
2 pc tray
SPAKMC332AVFV16
44 pc tray
MC68332AVFV16
20 MHz
2 pc tray
SPAKMC332AVFC20
44 pc tray
MC68332AVFV20
–40 to +125
°
C
16 MHz
2 pc tray
SPAKMC332AMFV16
44 pc tray
MC68332AMFV16
20 MHz
2 pc tray
SPAKMC332AMFV20
44 pc tray
MC68332AMFV20
Table 1 Ordering Information (Continued)
Package Type
TPU Type
Temperature
Frequency
(MHz)
Package
Order
Quantity
Order Number
background image
Section
Page
TABLE OF CONTENTS
MOTOROLA
MC68332
4
MC68332TS/D
1
Introduction
1
1.1
Features ...................................................................................................................................... 5
1.2
Block Diagram ............................................................................................................................. 6
1.3
Pin Assignments .......................................................................................................................... 7
1.4
Address Map ............................................................................................................................... 9
1.5
Intermodule Bus .......................................................................................................................... 9
2
Signal Descriptions
10
2.1
Pin Characteristics .................................................................................................................... 10
2.2
MCU Power Connections .......................................................................................................... 11
2.3
MCU Driver Types ..................................................................................................................... 11
2.4
Signal Characteristics ................................................................................................................ 12
2.5
Signal Function .......................................................................................................................... 13
3
System Integration Module
15
3.1
Overview ................................................................................................................................... 15
3.2
System Configuration and Protection ........................................................................................ 17
3.3
System Clock ............................................................................................................................ 23
3.4
External Bus Interface ............................................................................................................... 26
3.5
Chip Selects .............................................................................................................................. 29
3.6
General-Purpose Input/Output .................................................................................................. 36
3.7
Resets ....................................................................................................................................... 38
3.8
Interrupts ................................................................................................................................... 41
3.9
Factory Test Block ..................................................................................................................... 43
4
Central Processor Unit
44
4.1
Overview ................................................................................................................................... 44
4.2
Programming Model .................................................................................................................. 44
4.3
Status Register .......................................................................................................................... 46
4.4
Data Types ................................................................................................................................ 46
4.5
Addressing Modes ..................................................................................................................... 46
4.6
Instruction Set Summary ........................................................................................................... 47
4.7
Background Debugging Mode ................................................................................................... 51
5
Time Processor Unit
52
5.1
MC68332 and MC68332A Time Functions ............................................................................... 52
5.2
MC68332G Time Functions ...................................................................................................... 55
5.3
Programmer's Model ................................................................................................................. 57
5.4
Parameter RAM ......................................................................................................................... 58
5.5
TPU Registers ........................................................................................................................... 58
6
Queued Serial Module
64
6.1
Overview ................................................................................................................................... 64
6.2
Address Map ............................................................................................................................. 65
6.3
Pin Function .............................................................................................................................. 66
6.4
QSM Registers .......................................................................................................................... 66
6.5
QSPI Submodule ....................................................................................................................... 71
6.6
SCI Submodule ......................................................................................................................... 79
7
Standby RAM with TPU Emulation RAM
84
7.1
Overview ................................................................................................................................... 84
7.2
TPURAM Register Block ........................................................................................................... 84
7.3
TPURAM Registers ................................................................................................................... 84
7.4
TPURAM Operation .................................................................................................................. 85
8
Summary of Changes
86
background image
MC68332
MOTOROLA
MC68332TS/D
5
1.1 Features
• Central Processing Unit (CPU32)
— 32-Bit Architecture
— Virtual Memory Implementation
— Table Lookup and Interpolate Instruction
— Improved Exception Handling for Controller Applications
— High-Level Language Support
— Background Debugging Mode
— Fully Static Operation
• System Integration Module (SIM)
— External Bus Support
— Programmable Chip-Select Outputs
— System Protection Logic
— Watchdog Timer, Clock Monitor, and Bus Monitor
— Two 8-Bit Dual Function Input/Output Ports
— One 7-Bit Dual Function Output Port
— Phase-Locked Loop (PLL) Clock System
• Time Processor Unit (TPU)
— Dedicated Microengine Operating Independently of CPU32
— 16 Independent, Programmable Channels and Pins
— Any Channel can Perform any Time Function
— Two Timer Count Registers with Programmable Prescalers
— Selectable Channel Priority Levels
• Queued Serial Module (QSM)
— Enhanced Serial Communication Interface
— Queued Serial Peripheral Interface
— One 8-Bit Dual Function Port
• Static RAM Module with TPU Emulation Capability (TPURAM)
— 2-Kbytes of Static RAM
— May be Used as Normal RAM or TPU Microcode Emulation RAM
background image
MOTOROLA
MC68332
6
MC68332TS/D
1.2 Block Diagram
Figure 1 MCU Block Diagram
332 BLOCK
QS5/PCS2
PQS7/TXD
PQS4/PCS1
PQS6/PCS3
CPU 32
QSM
IMB
TPU
PQS0/MISO
PQS1/MOSI
PQS2/SCK
PORT QS
TXD
PCS2
SCK
MISO
MOSI
CONTROL
PCS1
PQS3/PCS0/SS
PCS0/SS
RXD
PCS3
BKPT/DSCLK
IFETCH/DSI
IPIPE/DSO
DSI
DSO
IPIPE
IFETCH
BKPT
IRQ[7:1]
ADDR[23:0]
CONTROL
PORT F
PORT C
FC2
FC1
FC0
BG
BR
BGACK
MODCLK
ADDR[23:19]
CLOCK
EBI
CS[10:0]
BR/CS0
BG/CS1
BGACK/CS2
R/W
RESET
HALT
BERR
CLKOUT
XTAL
EXTAL
CHIP
SELECTS
CSBOOT
ADDR[18:0]
DATA[15:0]
DATA[15:0]
QUOT
TEST
FREEZE/QUOT
TSC
CONTROL
TSC
PC0/FC0/CS3
PC1/FC1/CS4
PC2/FC2/CS5
PC3/ADDR19/CS6
PC4/ADDR20/CS7
PC5/ADDR21/CS8
PC6/ADDR22/CS9
ADDR23/CS10
PF7/IRQ7
PF6/IRQ6
PF5/IRQ5
PF4/IRQ4
PF3/IRQ3
PF2/IRQ2
PF1/IRQ1
PF0/MODCLK
CONTROL
PORT E
SIZ1
PE7/SIZ1
SIZ0
PE6/SIZ0
DSACK0
PE0/DSACK0
DSACK1
PE1/DSACK1
AVEC
PE2/AVEC
PE3/RMC
DS
PE5/DS
RMC
PE4/AS
T2CLK
T2CLK
TPUCH[15:0]
TPUCH[15:0]
XFC
VDDSYN
2 KBYTES
RAM
VSTBY
CONTROL
AS
CONTROL
DSCLK
FREEZE
background image
MC68332
MOTOROLA
MC68332TS/D
7
1.3 Pin Assignments
Figure 2 MC68332 132-Pin QFP Pin Assignments
332 132-PIN QFP
MC68332
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
116
115
114
113
112
111
110
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
DATA9
DATA10
DATA11
DATA12
DATA13
DATA14
DATA15
ADDR0
ADDR1
ADDR2
ADDR3
ADDR4
ADDR5
ADDR6
ADDR7
ADDR8
ADDR9
ADDR10
ADDR11
ADDR12
ADDR13
ADDR14
ADDR15
ADDR16
ADDR17
ADDR18
PQS0/MISO
PQS1/MOSI
PQS2/SCK
PQS3/PCS0/SS
PQS4/PCS1
PQS5/PCS2
PQS6/PCS3
DATA0
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
DATA8
VDD
VSS
VDD
PE1/DSACK1
PE0/DSACK0
PE2/AVEC
PE3/RMC
PE5/DS
CSBOOT
BGACK/CS2
BG/CS1
BR/CS0
VSTBY
51
17
117
16
15
14
13
12
11
10
9
8
7
6
5
4
3
131
130
129
128
127
126
125
124
123
122
121
120
119
118
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
PQS7/TXD
RXD
IPIPE
/DSO
FREEZE/QUOT
XTAL
EXTAL
XFC
CLKOUT
PF0/MODCLK
PE7/SIZ1
PE6/SIZ0
TPUCH0
TPUCH1
TPUCH2
TPUCH3
TPUCH4
TPUCH5
TPUCH6
TPUCH7
TPUCH8
TPUCH9
TPUCH10
TPUCH11
TPUCH13
TPUCH14
TPUCH15
T2CLK
TPUCH12
V
SS
V
DD
V
SS
PC0/FC0/CS3
PC1/FC1/CS4
PC2/FC2/CS5
PC3/ADDR19/CS6
PC4/ADDR20/CS7
PC5/ADDR21/CS8
PC6/ADDR22/CS9
ADDR23/CS10
AS
R/W
PF1/IRQ1
PF2/IRQ2
PF3/IRQ3
PF4/IRQ4
PF5/IRQ5
PF6/IRQ6
PF7/IRQ7
BERR
HALT
RESET
TSC
BKPT
/DSCLK
IFETCH
/DSI
2
1
132
V
DDSYN
V
SS
V
SS
V
DD
V
SS
V
DD
V
SS
VDD
VSS
VSS
VDD
VDD
V
SS
V
DD
V
DD
V
SS
V
SS
VDD
VSS
VSS
VSS
VDD
VDD
background image
MOTOROLA
MC68332
8
MC68332TS/D
Figure 3 MC68332 144-Pin QFP Pin Assignments
332 144-PIN QFP
VSS
NC
FC0/CS3
FC1/CS4
FC2/CS5
ADDR19/CS6
ADDR20/CS7
ADDR21/CS8
ADDR22/CS9
ADDR23/CS10
VDD
T2CLK
TPUCH15
TPUCH14
TPUCH13
TPUCH12
NC
TPUCH11
TPUCH10
TPUCH9
TPUCH8
VDDE
VSSE
TPUCH7
TPUCH6
TPUCH5
TPUCH4
MC68332
NC
PE4/AS
PE6/SIZ0
PE7/SIZ1
R/W
PF0/MODCLK
PF1/IRQ1
PF2/IRQ2
PF3/IRQ3
PF4/IRQ4
PF5/IRQ5
PF6/IRQ6
PF7/IRQ7
BERR
HALT
RESET
CLKOUT
NC
XFC
EXTAL
VDD
XTAL
FREEZE/QUOT
TSC
BKPT/DSCLK
IFETCH/DSI
IPIPE/DSO
RXD
PQS7/TXD
VSS
NC
TPUCH3
TPUCH2
TPUCH1
TPUCH0
NC
2
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
107
108
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
31
32
33
34
35
36
BGACK
/CS2
BG/CS1
BR/CS0
CSBOOT
DATA0
DATA1
DATA2
DATA3
DATA4
DATA5
DATA6
DATA7
NC
DATA8
NC
DATA9
DATA10
NC
DATA11
V
SS
DATA12
DATA13
DATA14
DATA15
ADDR0
PE0/DSACK0
PE1/DSACK1
PE2/AVEC
PE3/RMC
PE5/DS
V
DD
V
STBY
ADDR1
ADDR2
ADDR3
ADDR4
ADDR5
ADDR6
ADDR7
ADDR8
V
DD V SS
ADDR9
ADDR10
ADDR11
ADDR12
NC
NC
ADDR13
ADDR14
ADDR15
NC
ADDR16
ADDR17
ADDR18