Professional Documents
Culture Documents
Rev. 1.0
MC68HC908JK1
MC68HRC908JK1
MC68HC908JK3
MC68HRC908JK3
MC68HC908JL3
MC68HRC908JL3
HCMOS Microcontroller Unit
TECHNICAL DATA
List of Sections
Section 1. General Description . . . . . . . . . . . . . . . . . . . .21
Section 2. Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Section 3. Random-Access Memory (RAM) . . . . . . . . . .37
Section 4. FLASH Memory (FLASH) . . . . . . . . . . . . . . . .39
Section 5. Configuration Register (CONFIG) . . . . . . . . .47
Section 6. Central Processor Unit (CPU) . . . . . . . . . . . .51
Section 7. System Integration Module (SIM) . . . . . . . . .71
Section 8. Oscillator (OSC) . . . . . . . . . . . . . . . . . . . . . . .95
Section 9. Monitor ROM (MON) . . . . . . . . . . . . . . . . . . .101
Section 10. Timer Interface Module (TIM) . . . . . . . . . . .115
Section 11. Analog-to-Digital Converter (ADC) . . . . . .137
Section 12. I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . .147
Section 13. External Interrupt (IRQ) . . . . . . . . . . . . . . .159
Section 14. Keyboard Interrupt Module (KBI). . . . . . . .165
Section 15. Computer Operating Properly (COP) . . . .173
Section 16. Low Voltage Inhibit (LVI) . . . . . . . . . . . . . .179
Section 17. Break Module (BREAK) . . . . . . . . . . . . . . .183
Section 18. Electrical Specifications . . . . . . . . . . . . . . .191
Section 19. Mechanical Specifications . . . . . . . . . . . . .203
Section 20. Ordering Information . . . . . . . . . . . . . . . . .207
MC68H(R)C908JL3 Rev. 1.0
MOTOROLA
Technical Data
List of Sections
List of Sections
Technical Data
MOTOROLA
Table of Contents
Section 1. General Description
1.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.4
1.5
Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.6
Pin Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Section 2. Memory
2.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.3
I/O Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.4
Monitor ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Technical Data
Table of Contents
Table of Contents
4.4
4.5
4.6
4.7
4.8
FLASH Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.9
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.4
CPU Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.4.1
Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.4.2
Index Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.4.3
Stack Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.4.4
Program Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.4.5
Condition Code Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.5
6.6
Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.6.1
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.6.2
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.7
6.8
6.9
Opcode Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Technical Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
MOTOROLA
Table of Contents
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.3
SIM Bus Clock Control and Generation . . . . . . . . . . . . . . . . . . 75
7.3.1
Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.3.2
Clock Start-Up from POR . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.3.3
Clocks in Stop Mode and Wait Mode . . . . . . . . . . . . . . . . . . 75
7.4
Reset and System Initialization. . . . . . . . . . . . . . . . . . . . . . . . . 76
7.4.1
External Pin Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
7.4.2
Active Resets from Internal Sources . . . . . . . . . . . . . . . . . . 77
7.4.2.1
Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.4.2.2
Computer Operating Properly (COP) Reset . . . . . . . . . . 79
7.4.2.3
Illegal Opcode Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.4.2.4
Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.4.2.5
LVI Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.5
SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.5.1
SIM Counter During Power-On Reset . . . . . . . . . . . . . . . . . 80
7.5.2
SIM Counter During Stop Mode Recovery . . . . . . . . . . . . . . 80
7.5.3
SIM Counter and Reset States. . . . . . . . . . . . . . . . . . . . . . . 81
7.6
Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.6.1
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.6.1.1
Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.6.1.2
SWI Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.6.2
Interrupt Status Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.6.2.1
Interrupt Status Register 1 . . . . . . . . . . . . . . . . . . . . . . . 86
7.6.2.2
Interrupt Status Register 2 . . . . . . . . . . . . . . . . . . . . . . . . 86
7.6.2.3
Interrupt Status Register 3 . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.3
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.4
Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.5
Status Flag Protection in Break Mode . . . . . . . . . . . . . . . . . 87
7.7
Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
7.7.1
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
7.7.2
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
7.8
SIM Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Technical Data
Table of Contents
Table of Contents
7.8.1
7.8.2
7.8.3
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.3
8.4
RC Oscillator (MC68HRC908xxx) . . . . . . . . . . . . . . . . . . . . . . 97
8.5
I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.5.1
Crystal Amplifier Input Pin (OSC1). . . . . . . . . . . . . . . . . . . . 98
8.5.2
Crystal Amplifier Output Pin (OSC2/PTA6/RCCLK). . . . . . . 98
8.5.3
Oscillator Enable Signal (SIMOSCEN). . . . . . . . . . . . . . . . . 98
8.5.4
X-tal Oscillator Clock (XTALCLK). . . . . . . . . . . . . . . . . . . . . 98
8.5.5
RC Oscillator Clock (RCCLK). . . . . . . . . . . . . . . . . . . . . . . . 99
8.5.6
Oscillator Out 2 (2OSCOUT) . . . . . . . . . . . . . . . . . . . . . . . . 99
8.5.7
Oscillator Out (OSCOUT). . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6.1
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6.2
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.7
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.4
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.4.1
Entering Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.4.2
Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
9.4.3
Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.4.4
Echoing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.4.5
Break Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Technical Data
MOTOROLA
Table of Contents
9.4.6
9.5
Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
10.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
10.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
10.4
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
10.7
10.8
10.9
Technical Data
Table of Contents
Table of Contents
Section 11. Analog-to-Digital Converter (ADC)
11.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.3
Port A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Technical Data
10
MOTOROLA
Table of Contents
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
13.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
13.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
13.6
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
14.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
14.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
14.6
14.7
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
15.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
15.3
Technical Data
Table of Contents
11
Table of Contents
15.4 I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
15.4.1 2OSCOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
15.4.2 COPCTL Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
15.4.3 Power-On Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
15.4.4 Internal Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
15.4.5 Reset Vector Fetch. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
15.4.6 COPD (COP Disable). . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
15.4.7 COPRS (COP Rate Select) . . . . . . . . . . . . . . . . . . . . . . . . 176
15.5
15.6
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
15.7
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
16.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
16.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
16.4
16.5
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
17.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
17.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Technical Data
12
MOTOROLA
Table of Contents
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
18.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
18.3
18.4
18.5
18.6
18.7
18.8
18.9
Technical Data
Table of Contents
13
Table of Contents
Section 19. Mechanical Specifications
19.1
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
19.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
19.3
19.4
19.5
19.6
Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
20.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
20.3
Technical Data
14
MOTOROLA
List of Figures
Figure
Title
Page
1-1
1-2
2-1
2-2
Memory Map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Control, Status, and Data Registers . . . . . . . . . . . . . . . . . . . . . 30
4-1
4-2
4-3
5-1
5-2
6-1
6-2
6-3
6-4
6-5
6-6
CPU Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Accumulator (A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Index Register (H:X) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Stack Pointer (SP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Program Counter (PC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Condition Code Register (CCR) . . . . . . . . . . . . . . . . . . . . . . . . 56
7-1
7-2
7-3
7-4
7-5
7-6
7-7
7-8
7-9
7-10
Technical Data
List of Figures
15
List of Figures
Figure
Title
Page
7-11
7-12
7-13
7-14
7-15
7-16
7-17
7-18
7-19
7-20
7-21
7-22
8-1
8-2
9-1
9-2
9-3
9-4
9-5
9-6
9-7
10-1
10-2
10-3
10-4
10-5
10-6
10-7
10-8
10-9
11-1
11-2
11-3
Technical Data
16
MOTOROLA
List of Figures
Figure
Title
Page
11-4
11-5
12-1
12-2
12-3
12-4
12-5
12-6
12-7
12-8
12-9
12-10
12-11
12-12
13-1
13-2
13-3
13-4
14-1
14-2
14-3
14-4
15-1
15-2
15-3
16-1
16-2
16-3
17-1
17-2
17-3
Technical Data
List of Figures
17
List of Figures
Figure
Title
Page
17-4
17-5
17-6
17-7
18-1
18-2
18-3
18-4
18-5
19-1
19-2
19-3
19-4
Technical Data
18
MOTOROLA
List of Tables
Table
Title
Page
1-1
1-2
2-1
Vector Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6-1
6-2
7-1
7-2
7-3
7-4
9-1
9-2
9-3
9-4
9-5
9-6
9-7
9-8
9-9
10-1
10-2
10-3
11-1
11-2
Technical Data
List of Tables
19
List of Tables
Table
Title
Page
12-1
12-2
12-3
18-1
18-2
18-3
18-4
18-5
18-6
18-7
18-8
18-9
18-10
18-11
20-1
Technical Data
20
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.4
1.5
Pin Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.6
Pin Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.2 Introduction
The MC68H(R)C908JL3 is a member of the low-cost, high-performance
M68HC08 Family of 8-bit microcontroller units (MCUs). The M68HC08
Family is based on the customer-specified integrated circuit (CSIC)
design strategy. All MCUs in the family use the enhanced M68HC08
central processor unit (CPU08) and are available with a variety of
modules, memory sizes and types, and package types.
Table 1-1. Summary of Device Variations
Device
Pin Count
MC68H(R)C908JL3
4096 bytes
28 pins
MC68H(R)C908JK3
4096 bytes
20 pins
MC68H(R)C908JK1
1536 bytes
20 pins
Technical Data
General Description
21
General Description
1.3 Features
Features of the MC68H(R)C908JL3 include the following:
FLASH security1
Technical Data
22
MOTOROLA
General Description
MCU Block Diagram
Technical Data
General Description
23
PTB[0:7]
DDRA
PTA
PTB
DDRD
PTA/KBI[0:6]
PTD
VDD
DDRB
CPU CONTROL
ALU
X-TAL OSCILLATOR
OR
RC-OSCILLATOR
VSS
OSC2/RCCLK/PTA6
OSC1
68HC08 CPU
ACCUM
CPU REGISTERS
INDEX REG
SYSTEM INTEGRATION
MODULE
RST
MODE SELECT
MODULE
IRQ1
General Description
STK PNTR
8-BIT ADC
ADC[0:7]/
PTB[0:7]
ADC[11:8]/
PTD[0:3]
POWER SUPPLY
AND
VOLTAGE REGULATOR
PROGRAM COUNTER
COND CODE REG
V 1 1 H I N Z C
BREAK
MODULE
POWER-ON RESET
MODULE
TCH0/PTD4
16-BIT
TIMER MODULE
MOTOROLA
COP
MODULE
MONITOR ROM
960 BYTES
TCH1/PTD5
General Description
Technical Data
24
PTD[0:7]
General Description
Pin Assignments
IRQ1
28
RST
PTA0
27
PTA5
VSS
26
PTD4
OSC1
25
PTD5
OSC2/PTA6
24
PTD2
IRQ1
20
RST
PTA1
23
PTA4
VSS
19
PTD4
VDD
22
PTD3
OSC1
18
PTD5
PTA2
21
PTB0
OSC2/PTA6
17
PTD2
PTA3
20
PTB1
VDD
16
PTD3
PTB7
10
19
PTD1
PTB7
15
PTB0
PTB6
11
18
PTB2
PTB6
14
PTB1
PTB5
12
17
PTB3
PTB5
13
PTB2
PTD7
13
16
PTD0
PTD7
12
PTB3
PTD6
14
15
PTB4
10
11
PTB4
28-PIN ASSIGNMENT
MC68H(R)C908JL3
PTD6
20-PIN ASSIGNMENT
MC68H(R)C908JK3/JK1
Pins not bonded out on 20-pin package:
PTA0, PTA1, PTA2, PTA3, PTA4, PTA5,
PTD0, PTD1.
Technical Data
General Description
25
General Description
1.6 Pin Functions
Description of the pin functions are provided in Table 1-2.
Table 1-2. Pin Functions
PIN NAME
PIN DESCRIPTION
IN/OUT
VOLTAGE LEVEL
In
5V or 3V
Out
0V
VDD
Power supply.
VSS
RST
Input
VDD
IRQ1
Input
VDD to VDD+VHI
OSC1
In
Analog
Out
Analog
In/Out
VDD
In/Out
VDD
In
VDD
In
VDD
In/Out
VDD
In
Analog
In/Out
VDD
Input
Analog
In/Out
VDD
In/Out
VDD
PTA[0:6]
PTD[0:7]
NOTE:
Technical Data
26
MOTOROLA
Section 2. Memory
2.1 Contents
2.2
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.3
I/O Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.4
Monitor ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.2 Introduction
The CPU08 can address 64 Kbytes of memory space. The memory
map, shown in Figure 2-1, includes:
Technical Data
Memory
27
Memory
$0000
$003F
I/O REGISTERS
64 BYTES
$0040
$007F
RESERVED
64 BYTES
$0080
$00FF
RAM
128 BYTES
$0100
$EBFF
UNIMPLEMENTED
60160 BYTES
$EC00
$FBFF
FLASH MEMORY
MC68H(R)C908JL3/JK3
4096 BYTES
$FC00
$FDFF
MONITOR ROM
512 BYTES
$FE00
$FE01
$FE02
RESERVED (UBAR)
$FE03
$FE04
$FE05
$FE06
$FE07
RESERVED
$FE08
$FE09
$FE0A
RESERVED
$FE0B
RESERVED
$FE0C
$FE0D
$FE0E
$FE0F
RESERVED
$FE10
$FFCF
MONITOR ROM
448 BYTES
$FFD0
$FFFF
USER VECTORS
48 BYTES
UNIMPLEMENTED
62720 BYTES
$0100
$F5FF
FLASH MEMORY
MC68H(R)C908JK1
1536 BYTES
$F600
$FBFF
28
MOTOROLA
Memory
I/O Section
$FE07 (Reserved)
$FE0A (Reserved)
$FE0B (Reserved)
$FE0F (Reserved)
Technical Data
Memory
29
Memory
Addr.
Register Name
$0000
Read:
Port A Data Register
Write:
(PTA)
Reset:
$0001
Bit 7
Read:
Port B Data Register
Write:
(PTB)
Reset:
Bit 0
PTA6
PTA5
PTA4
PTA3
PTA2
PTA1
PTA0
PTB2
PTB1
PTB0
PTD2
PTD1
PTD0
Unaffected by reset
PTB7
PTB6
PTB5
PTB4
PTB3
Unaffected by reset
Read:
$0002
Unimplemented Write:
$0003
Read:
Port D Data Register
Write:
(PTD)
Reset:
Read:
Data Direction Register A
$0004
Write:
(DDRA)
Reset:
PTD7
PTD6
PTD5
PTD4
PTD3
Unaffected by reset
0
DDRA6
DDRA5
DDRA4
DDRA3
DDRA2
DDRA1
DDRA0
DDRB6
DDRB5
DDRB4
DDRB3
DDRB2
DDRB1
DDRB0
DDRD6
DDRD5
DDRD4
DDRD3
DDRD2
DDRD1
DDRD0
Read:
DDRB7
Data Direction Register B
$0005
Write:
(DDRB)
Reset:
0
Read:
$0006
Unimplemented Write:
Read:
DDRD7
Data Direction Register D
$0007
Write:
(DDRD)
Reset:
0
Read:
$0008
$0009
Unimplemented Write:
$000A
Read:
Port D Control Register
Write:
(PDCR)
Reset:
= Unimplemented
PTDPU6
0
= Reserved
Technical Data
30
MOTOROLA
Memory
Monitor ROM
Addr.
Register Name
Bit 0
Read:
$000B
$000C
Unimplemented Write:
Read:
Port A Input Pull-up
PTA6EN PTAPUE6 PTAPUE5 PTAPUE4 PTAPUE3 PTAPUE2 PTAPUE1 PTAPUE0
Enable Register Write:
(PTAPUE)
Reset:
0
0
0
0
0
0
0
0
$000D
$000E
$0019
$001A
Bit 7
Read:
Unimplemented Write:
Read:
Keyboard Status and
Control Register Write:
(KBSCR)
Reset:
Read:
Keyboard Interrupt
Enable Register Write:
(KBIER)
Reset:
$001B
KEYF
0
ACKK
IMASKK
MODEK
KBIE6
KBIE5
KBIE4
KBIE3
KBIE2
KBIE1
KBIE0
IRQF1
IMASK1
MODE1
Read:
$001C
$001D
$001E
$001F
Unimplemented Write:
Read:
IRQ Status and Control
Register Write:
(INTSCR)
Reset:
ACK1
0
Read:
IRQPUD
Configuration Register 2
Write:
(CONFIG2)
Reset:
0
Read:
COPRS
Configuration Register 1
Write:
(CONFIG1)
Reset:
0
LVIT1
LVIT0
0*
0*
LVID
SSREC
STOP
COPD
PS2
PS1
PS0
One-time writable register after each reset. * LVIT1 and LVIT0 reset to logic 0 by a power-on reset (POR) only.
$0020
Read:
TIM Status and Control
Register Write:
(TSC)
Reset:
TOF
0
0
TOIE
TSTOP
= Unimplemented
TRST
0
0
R
= Reserved
Technical Data
Memory
31
Memory
Addr.
Register Name
Bit 7
Bit 0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
$0021
Read:
TIM Counter Register
High Write:
(TCNTH)
Reset:
Read:
TIM Counter Register
Low Write:
(TCNTL)
Reset:
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
CH0IE
MS0B
MS0A
ELS0B
ELS0A
TOV0
CH0MAX
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit2
Bit1
Bit0
$0022
$0023
$0024
Read:
TIM Counter Modulo
Register High Write:
(TMODH)
Reset:
Read:
TIM Counter Modulo
Register Low Write:
(TMODL)
Reset:
Read:
TIM Channel 0 Status and
$0025
Control Register Write:
(TSC0)
Reset:
$0026
$0027
Read:
TIM Channel 0
Register High Write:
(TCH0H)
Reset:
Read:
TIM Channel 0
Register Low Write:
(TCH0L)
Reset:
Read:
TIM Channel 1 Status and
$0028
Control Register Write:
(TSC1)
Reset:
$0029
$002A
Read:
TIM Channel 1
Register High Write:
(TCH1H)
Reset:
Read:
TIM Channel 1
Register Low Write:
(TCH1L)
Reset:
CH0F
0
Bit6
Bit5
Bit4
Bit3
CH1IE
MS1A
ELS1B
ELS1A
TOV1
CH1MAX
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit2
Bit1
Bit0
Bit6
Bit5
Bit4
Bit3
= Reserved
Technical Data
32
MOTOROLA
Memory
Monitor ROM
Addr.
Register Name
$002B
$003B
$003C
Bit 7
Bit 0
AIEN
ADCO
CH4
CH3
CH2
CH1
CH0
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
Read:
Unimplemented Write:
Read:
ADC Status and Control
Register Write:
(ADSCR)
Reset:
Read:
ADC Data Register
Write:
(ADR)
Reset:
$003D
Read:
ADC Input Clock Register
$003E
Write:
(ADICLK)
Reset:
COCO
ADIV2
ADIV1
ADIV0
Read:
$003F
$FE00
Unimplemented Write:
Read:
Break Status Register
Write:
(BSR)
Reset:
SBSW
See note
$FE01
Read:
Reset Status Register
Write:
(RSR)
POR:
Read:
$FE02
Reserved Write:
$FE03
Read:
Break Flag Control
Register Write:
(BFCR)
Reset:
Read:
Interrupt Status Register 1
$FE04
Write:
(INT1)
Reset:
POR
PIN
COP
ILOP
ILAD
MODRST
LVI
BCFE
IF5
IF4
IF3
IF1
= Unimplemented
= Reserved
Technical Data
Memory
33
Memory
Addr.
Register Name
Bit 7
Bit 0
Read:
Interrupt Status Register 2
$FE05
Write:
(INT2)
Reset:
IF14
Read:
Interrupt Status Register 3
$FE06
Write:
(INT3)
Reset:
IF15
HVEN
MASS
ERASE
PGM
BPR7
BPR6
BPR5
BPR4
BPR3
BPR2
BPR1
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
BRKE
BRKA
Read:
$FE07
Reserved Write:
$FE08
Read:
FLASH Control Register
Write:
(FLCR)
Reset:
$FE09
Read:
FLASH Block Protect
Write:
Register (FLBPR)
Reset:
Read:
$FE0A
$FE0B
Reserved Write:
$FE0C
Read:
Break Address High
Register Write:
(BRKH)
Reset:
$FE0D
Read:
Break Address low
Register Write:
(BRKL)
Reset:
Read:
Break Status and Control
$FE0E
Register Write:
(BRKSCR)
Reset:
$FFFF
Read:
COP Control Register
Write:
(COPCTL)
Reset:
= Reserved
34
MOTOROLA
Memory
Monitor ROM
Vector
IF15
IF14
Address
Vector
$FFDE
$FFDF
$FFE0
$FFE1
IF13
to
IF6
IF5
IF4
IF3
$FFF2
$FFF3
$FFF4
$FFF5
$FFF6
$FFF7
IF2
IF1
Highest
Not Used
$FFFA
$FFFB
$FFFC
$FFFD
$FFFE
$FFFF
Not Used
Technical Data
Memory
35
Memory
Technical Data
36
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.2 Introduction
This section describes the 128 bytes of RAM.
NOTE:
For correct operation, the stack pointer must point only to RAM
locations.
Within page zero are 128 bytes of RAM. Because the location of the
stack RAM is programmable, all page zero RAM locations can be used
for I/O control and user data or code. When the stack pointer is moved
from its reset location at $00FF, direct addressing mode instructions can
access efficiently all page zero RAM locations. Page zero RAM,
therefore, provides ideal locations for frequently accessed global
variables.
Before processing an interrupt, the CPU uses five bytes of the stack to
save the contents of the CPU registers.
NOTE:
Technical Data
Random-Access Memory (RAM)
37
NOTE:
Be careful when using nested subroutines. The CPU may overwrite data
in the RAM during a subroutine or during the interrupt stacking
operation.
Technical Data
38
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
4.4
4.5
4.6
4.7
4.8
FLASH Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.9
4.2 Introduction
This section describes the operation of the embedded FLASH memory.
The FLASH memory can be read, programmed, and erased from a
single external supply. The program and erase operations are enabled
through the use of an internal charge pump.
MC68H(R)C908JL3/JK3: 4096 bytes user FLASH from $EC00 $FBFF.
MC68H(R)C908JK1: 1536 bytes user FLASH from $F600 $FBFF.
Technical Data
FLASH Memory (FLASH)
39
NOTE:
$FE08
Bit 7
Bit 0
HVEN
Read:
0
MASS
ERASE
PGM
Write:
Reset:
Technical Data
40
MOTOROLA
Technical Data
FLASH Memory (FLASH)
41
NOTE:
NOTE:
Technical Data
42
MOTOROLA
NOTE:
In order to avoid program disturbs, the row must be erased before any
byte on that row is programmed.
1. Set the PGM bit. This configures the memory for program
operation and enables the latching of address and data for
programming.
2. Write any data to any FLASH location within the address range of
the row to be programmed.
3. Wait for a time, tnvs (10s).
4. Set the HVEN bit.
5. Wait for a time, tpgs (5s).
6. Write data to the byte being programmed.
7. Wait for time, tPROG (30s).
8. Repeat step 6 and 7 until all the bytes within the row are
programmed.
9. Clear the PGM bit.
10. Wait for time, tnvh (5s).
11. Clear the HVEN bit.
12. After time, trcv (1s), the memory can be accessed in read mode
again.
This program sequence is repeated throughout the memory until all data
is programmed.
Technical Data
FLASH Memory (FLASH)
43
The time between each FLASH address change (step 6 to step 6), or the
time between the last FLASH addressed programmed to clearing the
PGM bit (step 6 to step 10), must not exceed the maximum programming
time, tPROG max.
NOTE:
Technical Data
44
MOTOROLA
Completed
programming
this row?
N
9
The time between each FLASH address change (step 6 to step 6), or
the time between the last FLASH address programmed
to clearing PGM bit (step 6 to step 9)
must not exceed the maximum programming
time, tPROG max.
10
11
12
NOTE:
End of Programming
Technical Data
FLASH Memory (FLASH)
45
$FE09
Bit 7
Bit 0
BPR7
BPR6
BPR5
BPR4
BPR3
BPR2
BPR1
Read:
Write:
Reset:
$00$60
and so on...
$DE (1101 1110)
$FF
Technical Data
46
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.3
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.2 Introduction
This section describes the configuration registers (CONFIG1 and
CONFIG2). The configuration registers enables or disables the following
options:
STOP instruction
Technical Data
Configuration Register (CONFIG)
47
NOTE:
The CONFIG registers are one-time writable by the user after each
reset. Upon a reset, the CONFIG registers default to predetermined
settings as shown in Figure 5-1 and Figure 5-2.
Address:
$001E
Bit 7
Bit 0
IRQPUD
LVIT1
LVIT0
Reset:
Not affected
Not affected
POR:
Read:
Write:
= Reserved
Technical Data
48
MOTOROLA
Address:
$001F
Bit 7
Bit 0
COPRS
LVID
SSREC
STOP
COPD
Read:
Write:
Reset:
= Reserved
NOTE:
Exiting stop mode by pulling reset will result in the long stop recovery.
If using an external crystal, do not set the SSREC bit.
STOP enables the STOP instruction.
1 = STOP instruction enabled
0 = STOP instruction treated as illegal opcode
COPD COP Disable Bit
COPD disables the COP module. (See Section 15. Computer
Operating Properly (COP).)
1 = COP module disabled
0 = COP module enabled
Technical Data
Configuration Register (CONFIG)
49
Technical Data
50
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
6.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.4
CPU Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.4.1
Accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
6.4.2
Index Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.4.3
Stack Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
6.4.4
Program Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.4.5
Condition Code Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
6.5
6.6
Low-Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.6.1
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.6.2
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.7
6.8
6.9
Opcode Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.2 Introduction
The M68HC08 CPU (central processor unit) is an enhanced and fully
object-code-compatible version of the M68HC05 CPU. The CPU08
Reference Manual (Motorola document order number CPU08RM/AD)
contains a description of the CPU instruction set, addressing modes,
and architecture.
Technical Data
Central Processor Unit (CPU)
51
16 addressing modes
Technical Data
52
MOTOROLA
ACCUMULATOR (A)
0
15
H
15
0
STACK POINTER (SP)
15
0
PROGRAM COUNTER (PC)
7
0
V 1 1 H I N Z C
CARRY/BORROW FLAG
ZERO FLAG
NEGATIVE FLAG
INTERRUPT MASK
HALF-CARRY FLAG
TWOS COMPLEMENT OVERFLOW FLAG
6.4.1 Accumulator
The accumulator is a general-purpose 8-bit register. The CPU uses the
accumulator to hold operands and the results of arithmetic/logic
operations.
Bit 7
Bit 0
Read:
Write:
Reset:
Unaffected by reset
Technical Data
Central Processor Unit (CPU)
53
14
13
12
11
10
Bit
0
Read:
Write:
Reset:
X = Indeterminate
Technical Data
54
MOTOROLA
Bit
15
14
13
12
11
10
Bit
0
Read:
Write:
Reset:
NOTE:
14
13
12
11
10
Bit
0
Read:
Write:
Reset:
Technical Data
Central Processor Unit (CPU)
55
Bit 0
Read:
Write:
Reset:
X = Indeterminate
Technical Data
56
MOTOROLA
I Interrupt Mask
When the interrupt mask is set, all maskable CPU interrupts are
disabled. CPU interrupts are enabled when the interrupt mask is
cleared. When a CPU interrupt occurs, the interrupt mask is set
automatically after the CPU registers are saved on the stack, but
before the interrupt vector is fetched.
1 = Interrupts disabled
0 = Interrupts enabled
NOTE:
Technical Data
Central Processor Unit (CPU)
57
Technical Data
58
MOTOROLA
After exiting stop mode, the CPU clock begins running after the oscillator
stabilization delay.
Technical Data
Central Processor Unit (CPU)
59
V H I N Z C
ADC #opr
ADC opr
ADC opr
ADC opr,X
ADC opr,X
ADC ,X
ADC opr,SP
ADC opr,SP
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
ii
dd
hh ll
ee ff
ff
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
A9
B9
C9
D9
E9
F9
9EE9
9ED9
AB
BB
CB
DB
EB
FB
9EEB
9EDB
ii
dd
hh ll
ee ff
ff
ADD #opr
ADD opr
ADD opr
ADD opr,X
ADD opr,X
ADD ,X
ADD opr,SP
ADD opr,SP
AIS #opr
SP (SP) + (16 M)
IMM
AIX #opr
AND #opr
AND opr
AND opr
AND opr,X
AND opr,X
AND ,X
AND opr,SP
AND opr,SP
ASL opr
ASLA
ASLX
ASL opr,X
ASL ,X
ASL opr,SP
ASR opr
ASRA
ASRX
ASR opr,X
ASR opr,X
ASR opr,SP
0
b7
b0
BCC rel
BCLR n, opr
C
b7
Clear Bit n in M
b0
Mn 0
Technical Data
60
2
3
4
4
3
2
4
5
ff
ee ff
2
3
4
4
3
2
4
5
A7
ii
IMM
AF
ii
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
A (A) + (M)
Logical AND
ff
ee ff
Cycles
Effect on
CCR
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
A4
B4
C4
D4
E4
F4
9EE4
9ED4
ii
dd
hh ll
ee ff
ff
2
3
4
4
3
2
4
5
DIR
INH
INH
IX1
IX
SP1
38
48
58
68
78
9E68
dd
DIR
INH
INH
IX1
IX
SP1
37
47
57
67
77
9E67
dd
ff
4
1
1
4
3
5
REL
24
rr
DIR (b0)
DIR (b1)
DIR (b2)
DIR (b3)
DIR (b4)
DIR (b5)
DIR (b6)
DIR (b7)
11
13
15
17
19
1B
1D
1F
dd
dd
dd
dd
dd
dd
dd
dd
4
4
4
4
4
4
4
4
ff
ee ff
ff
ff
ff
4
1
1
4
3
5
MOTOROLA
Effect on
CCR
V H I N Z C
Cycles
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
BCS rel
REL
25
rr
BEQ rel
Branch if Equal
REL
27
rr
BGE opr
PC (PC) + 2 + rel ? (N V) = 0
REL
90
rr
BGT opr
92
rr
BHCC rel
REL
28
rr
BHCS rel
REL
29
rr
BHI rel
Branch if Higher
REL
22
rr
BHS rel
REL
24
rr
BIH rel
REL
2F
rr
BIL rel
REL
2E
rr
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
A5
B5
C5
D5
E5
F5
9EE5
9ED5
ii
dd
hh ll
ee ff
ff
ff
ee ff
2
3
4
4
3
2
4
5
93
rr
BIT #opr
BIT opr
BIT opr
BIT opr,X
BIT opr,X
BIT ,X
BIT opr,SP
BIT opr,SP
Bit Test
BLE opr
BLO rel
BLS rel
REL
25
rr
REL
23
rr
BLT opr
PC (PC) + 2 + rel ? (N V) =1
REL
91
rr
BMC rel
REL
2C
rr
BMI rel
Branch if Minus
REL
2B
rr
BMS rel
REL
2D
rr
BNE rel
REL
26
rr
BPL rel
Branch if Plus
REL
2A
rr
BRA rel
Branch Always
PC (PC) + 2 + rel
REL
20
rr
Technical Data
Central Processor Unit (CPU)
61
DIR (b0)
DIR (b1)
DIR (b2)
DIR (b3)
DIR (b4)
DIR (b5)
DIR (b6)
DIR (b7)
01
03
05
07
09
0B
0D
0F
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
5
5
5
5
5
5
5
5
REL
21
rr
DIR (b0)
DIR (b1)
DIR (b2)
DIR (b3)
DIR (b4)
DIR (b5)
DIR (b6)
DIR (b7)
00
02
04
06
08
0A
0C
0E
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
dd rr
5
5
5
5
5
5
5
5
Mn 1
DIR (b0)
DIR (b1)
DIR (b2)
DIR (b3)
DIR (b4)
DIR (b5)
DIR (b6)
DIR (b7)
10
12
14
16
18
1A
1C
1E
dd
dd
dd
dd
dd
dd
dd
dd
4
4
4
4
4
4
4
4
REL
AD
rr
dd rr
ii rr
ii rr
ff rr
rr
ff rr
5
4
4
5
4
6
Description
V H I N Z C
BRN rel
Branch Never
BSET n,opr
BSR rel
Set Bit n in M
Branch to Subroutine
CBEQ opr,rel
CBEQA #opr,rel
CBEQX #opr,rel
Compare and Branch if Equal
CBEQ opr,X+,rel
CBEQ X+,rel
CBEQ opr,SP,rel
PC (PC) + 2
31
41
51
61
71
9E61
Cycles
Operand
Effect on
CCR
Opcode
Operation
Address
Mode
Source
Form
CLC
C0
0 INH
98
CLI
I0
0 INH
9A
M $00
A $00
X $00
H $00
M $00
M $00
M $00
DIR
INH
INH
0 0 1 INH
IX1
IX
SP1
3F
4F
5F
8C
6F
7F
9E6F
CLR opr
CLRA
CLRX
CLRH
CLR opr,X
CLR ,X
CLR opr,SP
Clear
Technical Data
62
dd
ff
ff
3
1
1
1
3
2
4
MOTOROLA
Effect on
CCR
V H I N Z C
CMP #opr
CMP opr
CMP opr
CMP opr,X
CMP opr,X
CMP ,X
CMP opr,SP
CMP opr,SP
Compare A with M
(A) (M)
COM opr
COMA
COMX
COM opr,X
COM ,X
COM opr,SP
CPHX #opr
CPHX opr
CPX #opr
CPX opr
CPX opr
CPX ,X
CPX opr,X
CPX opr,X
CPX opr,SP
CPX opr,SP
(H:X) (M:M + 1)
Compare X with M
DAA
Decimal Adjust A
(X) (M)
(A)10
DBNZ opr,rel
DBNZA rel
DBNZX rel
Decrement and Branch if Not Zero
DBNZ opr,X,rel
DBNZ X,rel
DBNZ opr,SP,rel
DEC opr
DECA
DECX
DEC opr,X
DEC ,X
DEC opr,SP
Decrement
DIV
Divide
A1
B1
C1
D1
E1
F1
9EE1
9ED1
ii
dd
hh ll
ee ff
ff
DIR
INH
INH
0 1
IX1
IX
SP1
33
43
53
63
73
9E63
dd
ff
ee ff
2
3
4
4
3
2
4
5
ff
4
1
1
4
3
5
65
75
ii ii+1
dd
3
4
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
A3
B3
C3
D3
E3
F3
9EE3
9ED3
ii
dd
hh ll
ee ff
ff
2
3
4
4
3
2
4
5
U INH
72
IMM
DIR
ff
ff
ee ff
3B
4B
5B
6B
7B
9E6B
dd rr
rr
rr
ff rr
rr
ff rr
dd
M (M) 1
A (A) 1
X (X) 1
M (M) 1
M (M) 1
M (M) 1
DIR
INH
INH
IX1
IX
SP1
3A
4A
5A
6A
7A
9E6A
A (H:A)/(X)
H Remainder
INH
52
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
Cycles
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
ff
ff
5
3
3
5
4
6
4
1
1
4
3
5
7
Technical Data
Central Processor Unit (CPU)
63
V H I N Z C
EOR #opr
EOR opr
EOR opr
EOR opr,X
EOR opr,X
EOR ,X
EOR opr,SP
EOR opr,SP
INC opr
INCA
INCX
INC opr,X
INC ,X
INC opr,SP
JMP opr
JMP opr
JMP opr,X
JMP opr,X
JMP ,X
JSR opr
JSR opr
JSR opr,X
JSR opr,X
JSR ,X
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
A8
B8
C8
D8
E8
F8
9EE8
9ED8
ii
dd
hh ll
ee ff
ff
M (M) + 1
A (A) + 1
X (X) + 1
M (M) + 1
M (M) + 1
M (M) + 1
DIR
INH
INH
IX1
IX
SP1
3C
4C
5C
6C
7C
9E6C
dd
PC Jump Address
DIR
EXT
IX2
IX1
IX
BC
CC
DC
EC
FC
dd
hh ll
ee ff
ff
2
3
4
3
2
PC (PC) + n (n = 1, 2, or 3)
Push (PCL); SP (SP) 1
Push (PCH); SP (SP) 1
PC Unconditional Address
DIR
EXT
IX2
IX1
IX
BD
CD
DD
ED
FD
dd
hh ll
ee ff
ff
4
5
6
5
4
A (M)
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
A6
B6
C6
D6
E6
F6
9EE6
9ED6
ii
dd
hh ll
ee ff
ff
ff
ee ff
2
3
4
4
3
2
4
5
ii jj
dd
3
4
2
3
4
4
3
2
4
5
A (A M)
Exclusive OR M with A
Increment
Jump
Jump to Subroutine
LDA #opr
LDA opr
LDA opr
LDA opr,X
LDA opr,X
LDA ,X
LDA opr,SP
LDA opr,SP
Load A from M
LDHX #opr
LDHX opr
LDX #opr
LDX opr
LDX opr
LDX opr,X
LDX opr,X
LDX ,X
LDX opr,SP
LDX opr,SP
LSL opr
LSLA
LSLX
LSL opr,X
LSL ,X
LSL opr,SP
H:X (M:M + 1)
0
b7
b0
Technical Data
64
IMM
DIR
45
55
ff
ee ff
ff
ff
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
X (M)
Load X from M
Cycles
Effect on
CCR
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
AE
BE
CE
DE
EE
FE
9EEE
9EDE
ii
dd
hh ll
ee ff
ff
DIR
INH
INH
IX1
IX
SP1
38
48
58
68
78
9E68
dd
ff
ee ff
ff
ff
2
3
4
4
3
2
4
5
4
1
1
4
3
5
4
1
1
4
3
5
MOTOROLA
V H I N Z C
LSR opr
LSRA
LSRX
LSR opr,X
LSR ,X
LSR opr,SP
DIR
INH
INH
0
IX1
IX
SP1
34
44
54
64
74
9E64
DD
DIX+
0
IMD
IX+D
4E
5E
6E
7E
0 0 INH
42
DIR
INH
INH
IX1
IX
SP1
30
40
50
60
70
9E60
C
b7
MOV opr,opr
MOV opr,X+
MOV #opr,opr
MOV X+,opr
Move
MUL
Unsigned multiply
b0
(M)Destination (M)Source
H:X (H:X) + 1 (IX+D, DIX+)
dd
Cycles
Effect on
CCR
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
ff
4
1
1
4
3
5
dd dd
dd
ii dd
dd
5
4
4
4
ff
NEG opr
NEGA
NEGX
NEG opr,X
NEG ,X
NEG opr,SP
NOP
No Operation
None
INH
9D
NSA
Nibble Swap A
A (A[3:0]:A[7:4])
INH
62
A (A) | (M)
IMM
DIR
EXT
IX2
0
IX1
IX
SP1
SP2
AA
BA
CA
DA
EA
FA
9EEA
9EDA
dd
ff
ff
4
1
1
4
3
5
ORA #opr
ORA opr
ORA opr
ORA opr,X
ORA opr,X
ORA ,X
ORA opr,SP
ORA opr,SP
Inclusive OR A and M
PSHA
INH
87
PSHH
INH
8B
PSHX
INH
89
PULA
INH
86
PULH
INH
8A
PULX
INH
88
DIR
INH
INH
IX1
IX
SP1
39
49
59
69
79
9E69
ROL opr
ROLA
ROLX
ROL opr,X
ROL ,X
ROL opr,SP
b7
b0
ii
dd
hh ll
ee ff
ff
ff
ee ff
dd
ff
ff
2
3
4
4
3
2
4
5
4
1
1
4
3
5
Technical Data
Central Processor Unit (CPU)
65
V H I N Z C
ROR opr
RORA
RORX
ROR opr,X
ROR ,X
ROR opr,SP
RSP
RTI
RTS
DIR
INH
INH
IX1
IX
SP1
36
46
56
66
76
9E66
SP $FF
INH
9C
INH
80
SP SP + 1; Pull (PCH)
SP SP + 1; Pull (PCL)
INH
81
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
A2
B2
C2
D2
E2
F2
9EE2
9ED2
C
b7
b0
dd
Cycles
Effect on
CCR
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
ff
ff
4
1
1
4
3
5
SBC #opr
SBC opr
SBC opr
SBC opr,X
SBC opr,X
SBC ,X
SBC opr,SP
SBC opr,SP
SEC
C1
1 INH
99
SEI
I1
1 INH
9B
M (A)
DIR
EXT
IX2
0 IX1
IX
SP1
SP2
B7
C7
D7
E7
F7
9EE7
9ED7
(M:M + 1) (H:X)
0 DIR
35
I 0; Stop Oscillator
0 INH
8E
M (X)
DIR
EXT
IX2
0 IX1
IX
SP1
SP2
BF
CF
DF
EF
FF
9EEF
9EDF
STA opr
STA opr
STA opr,X
STA opr,X
STA ,X
STA opr,SP
STA opr,SP
Store A in M
STHX opr
Store H:X in M
STOP
STX opr
STX opr
STX opr,X
STX opr,X
STX ,X
STX opr,SP
STX opr,SP
Store X in M
Technical Data
66
ii
dd
hh ll
ee ff
ff
ff
ee ff
dd
hh ll
ee ff
ff
2
3
4
4
3
2
4
5
ff
ee ff
3
4
4
3
2
4
5
dd
4
1
dd
hh ll
ee ff
ff
ff
ee ff
3
4
4
3
2
4
5
MOTOROLA
Effect on
CCR
V H I N Z C
SUB #opr
SUB opr
SUB opr
SUB opr,X
SUB opr,X
SUB ,X
SUB opr,SP
SUB opr,SP
Subtract
A (A) (M)
ii
dd
hh ll
ee ff
ff
Cycles
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
IMM
DIR
EXT
IX2
IX1
IX
SP1
SP2
A0
B0
C0
D0
E0
F0
9EE0
9ED0
1 INH
83
ff
ee ff
2
3
4
4
3
2
4
5
SWI
Software Interrupt
TAP
Transfer A to CCR
CCR (A)
INH
84
TAX
Transfer A to X
X (A)
INH
97
TPA
Transfer CCR to A
A (CCR)
INH
85
DIR
INH
INH
0
IX1
IX
SP1
3D
4D
5D
6D
7D
9E6D
H:X (SP) + 1
INH
95
A (X)
INH
9F
(SP) (H:X) 1
INH
94
TST opr
TSTA
TSTX
TST opr,X
TST ,X
TST opr,SP
TSX
Transfer SP to H:X
TXA
Transfer X to A
TXS
Transfer H:X to SP
dd
ff
ff
3
1
1
3
2
4
Technical Data
Central Processor Unit (CPU)
67
V H I N Z C
A
C
CCR
dd
dd rr
DD
DIR
DIX+
ee ff
EXT
ff
H
H
hh ll
I
ii
IMD
IMM
INH
IX
IX+
IX+D
IX1
IX1+
IX2
M
N
Accumulator
Carry/borrow bit
Condition code register
Direct address of operand
Direct address of operand and relative offset of branch instruction
Direct to direct addressing mode
Direct addressing mode
Direct to indexed with post increment addressing mode
High and low bytes of offset in indexed, 16-bit offset addressing
Extended addressing mode
Offset byte in indexed, 8-bit offset addressing
Half-carry bit
Index register high byte
High and low bytes of operand address in extended addressing
Interrupt mask
Immediate operand byte
Immediate source to direct destination addressing mode
Immediate addressing mode
Inherent addressing mode
Indexed, no offset addressing mode
Indexed, no offset, post increment addressing mode
Indexed with post increment to direct addressing mode
Indexed, 8-bit offset addressing mode
Indexed, 8-bit offset, post increment addressing mode
Indexed, 16-bit offset addressing mode
Memory location
Negative bit
n
opr
PC
PCH
PCL
REL
rel
rr
SP1
SP2
SP
U
V
X
Z
&
|
()
( )
#
?
:
Any bit
Operand (one or two bytes)
Program counter
Program counter high byte
Program counter low byte
Relative addressing mode
Relative program counter offset byte
Relative program counter offset byte
Stack pointer, 8-bit offset addressing mode
Stack pointer 16-bit offset addressing mode
Stack pointer
Undened
Overow bit
Index register low byte
Zero bit
Logical AND
Logical OR
Logical EXCLUSIVE OR
Contents of
Negation (twos complement)
Immediate value
Sign extend
Loaded with
If
Concatenated with
Set or cleared
Not affected
Technical Data
68
Cycles
Effect on
CCR
Description
Operand
Operation
Opcode
Source
Form
Address
Mode
MOTOROLA
MOTOROLA
Branch
REL
DIR
INH
5
BRSET0
3 DIR
5
BRCLR0
3 DIR
5
BRSET1
3 DIR
5
BRCLR1
3 DIR
5
BRSET2
3 DIR
5
BRCLR2
3 DIR
5
BRSET3
3 DIR
5
BRCLR3
3 DIR
5
BRSET4
3 DIR
5
BRCLR4
3 DIR
5
BRSET5
3 DIR
5
BRCLR5
3 DIR
5
BRSET6
3 DIR
5
BRCLR6
3 DIR
5
BRSET7
3 DIR
5
BRCLR7
3 DIR
4
BSET0
2 DIR
4
BCLR0
2 DIR
4
BSET1
2 DIR
4
BCLR1
2 DIR
4
BSET2
2 DIR
4
BCLR2
2 DIR
4
BSET3
2 DIR
4
BCLR3
2 DIR
4
BSET4
2 DIR
4
BCLR4
2 DIR
4
BSET5
2 DIR
4
BCLR5
2 DIR
4
BSET6
2 DIR
4
BCLR6
2 DIR
4
BSET7
2 DIR
4
BCLR7
2 DIR
3
BRA
REL
3
BRN
2 REL
3
BHI
2 REL
3
BLS
2 REL
3
BCC
2 REL
3
BCS
2 REL
3
BNE
2 REL
3
BEQ
2 REL
3
BHCC
2 REL
3
BHCS
2 REL
3
BPL
2 REL
3
BMI
2 REL
3
BMC
2 REL
3
BMS
2 REL
3
BIL
2 REL
3
BIH
2 REL
4
NEG
IX1
5
CBEQ
3 IX1+
3
NSA
1 INH
4
COM
2 IX1
4
LSR
2 IX1
3
CPHX
3 IMM
4
ROR
2 IX1
4
ASR
2 IX1
4
LSL
2 IX1
4
ROL
2 IX1
4
DEC
2 IX1
5
DBNZ
3 IX1
4
INC
2 IX1
3
TST
2 IX1
4
MOV
3 IMD
3
CLR
2 IX1
Control
INH
INH
IX
9E6
1
NEGX
1 INH
4
CBEQX
3 IMM
7
DIV
1 INH
1
COMX
1 INH
1
LSRX
1 INH
4
LDHX
2 DIR
1
RORX
1 INH
1
ASRX
1 INH
1
LSLX
1 INH
1
ROLX
1 INH
1
DECX
1 INH
3
DBNZX
2 INH
1
INCX
1 INH
1
TSTX
1 INH
4
MOV
2 DIX+
1
CLRX
1 INH
SP1
Register/Memory
IX2
SP2
IMM
EXT
DIR
B
9ED
4
SUB
EXT
4
CMP
3 EXT
4
SBC
3 EXT
4
CPX
3 EXT
4
AND
3 EXT
4
BIT
3 EXT
4
LDA
3 EXT
4
STA
3 EXT
4
EOR
3 EXT
4
ADC
3 EXT
4
ORA
3 EXT
4
ADD
3 EXT
3
JMP
3 EXT
5
JSR
3 EXT
4
LDX
3 EXT
4
STX
3 EXT
4
SUB
IX2
4
CMP
3 IX2
4
SBC
3 IX2
4
CPX
3 IX2
4
AND
3 IX2
4
BIT
3 IX2
4
LDA
3 IX2
4
STA
3 IX2
4
EOR
3 IX2
4
ADC
3 IX2
4
ORA
3 IX2
4
ADD
3 IX2
4
JMP
3 IX2
6
JSR
3 IX2
4
LDX
3 IX2
4
STX
3 IX2
5
SUB
SP2
5
CMP
4 SP2
5
SBC
4 SP2
5
CPX
4 SP2
5
AND
4 SP2
5
BIT
4 SP2
5
LDA
4 SP2
5
STA
4 SP2
5
EOR
4 SP2
5
ADC
4 SP2
5
ORA
4 SP2
5
ADD
4 SP2
IX1
SP1
IX
9EE
LSB
0
1
2
3
4
Read-Modify-Write
INH
IX1
5
6
7
8
9
A
B
C
E
F
4
1
NEG
NEGA
DIR 1 INH
5
4
CBEQ CBEQA
3 DIR 3 IMM
5
MUL
1 INH
4
1
COM
COMA
2 DIR 1 INH
4
1
LSR
LSRA
2 DIR 1 INH
4
3
STHX
LDHX
2 DIR 3 IMM
4
1
ROR
RORA
2 DIR 1 INH
4
1
ASR
ASRA
2 DIR 1 INH
4
1
LSL
LSLA
2 DIR 1 INH
4
1
ROL
ROLA
2 DIR 1 INH
4
1
DEC
DECA
2 DIR 1 INH
5
3
DBNZ DBNZA
3 DIR 2 INH
4
1
INC
INCA
2 DIR 1 INH
3
1
TST
TSTA
2 DIR 1 INH
5
MOV
3 DD
3
1
CLR
CLRA
2 DIR 1 INH
2
Technical Data
69
INH Inherent
REL Relative
IMM Immediate
IX
Indexed, No Offset
DIR Direct
IX1 Indexed, 8-Bit Offset
EXT Extended
IX2 Indexed, 16-Bit Offset
DD Direct-Direct
IMD Immediate-Direct
IX+D Indexed-Direct DIX+ Direct-Indexed
*Pre-byte for stack pointer indexed instructions
5
3
NEG
NEG
SP1 1 IX
6
4
CBEQ
CBEQ
4 SP1 2 IX+
2
DAA
1 INH
5
3
COM
COM
3 SP1 1 IX
5
3
LSR
LSR
3 SP1 1 IX
4
CPHX
2 DIR
5
3
ROR
ROR
3 SP1 1 IX
5
3
ASR
ASR
3 SP1 1 IX
5
3
LSL
LSL
3 SP1 1 IX
5
3
ROL
ROL
3 SP1 1 IX
5
3
DEC
DEC
3 SP1 1 IX
6
4
DBNZ
DBNZ
4 SP1 2 IX
5
3
INC
INC
3 SP1 1 IX
4
2
TST
TST
3 SP1 1 IX
4
MOV
2 IX+D
4
2
CLR
CLR
3 SP1 1 IX
3
7
3
RTI
BGE
INH 2 REL
4
3
RTS
BLT
1 INH 2 REL
3
BGT
2 REL
9
3
SWI
BLE
1 INH 2 REL
2
2
TAP
TXS
1 INH 1 INH
1
2
TPA
TSX
1 INH 1 INH
2
PULA
1 INH
2
1
PSHA
TAX
1 INH 1 INH
2
1
PULX
CLC
1 INH 1 INH
2
1
PSHX
SEC
1 INH 1 INH
2
2
PULH
CLI
1 INH 1 INH
2
2
PSHH
SEI
1 INH 1 INH
1
1
CLRH
RSP
1 INH 1 INH
1
NOP
1 INH
1
STOP
*
1 INH
1
1
WAIT
TXA
1 INH 1 INH
1
2
SUB
IMM
2
CMP
2 IMM
2
SBC
2 IMM
2
CPX
2 IMM
2
AND
2 IMM
2
BIT
2 IMM
2
LDA
2 IMM
2
AIS
2 IMM
2
EOR
2 IMM
2
ADC
2 IMM
2
ORA
2 IMM
2
ADD
2 IMM
3
SUB
DIR
3
CMP
2 DIR
3
SBC
2 DIR
3
CPX
2 DIR
3
AND
2 DIR
3
BIT
2 DIR
3
LDA
2 DIR
3
STA
2 DIR
3
EOR
2 DIR
3
ADC
2 DIR
3
ORA
2 DIR
3
ADD
2 DIR
2
JMP
2 DIR
4
4
BSR
JSR
2 REL 2 DIR
2
3
LDX
LDX
2 IMM 2 DIR
2
3
AIX
STX
2 IMM 2 DIR
2
MSB
3
SUB
IX1
3
CMP
2 IX1
3
SBC
2 IX1
3
CPX
2 IX1
3
AND
2 IX1
3
BIT
2 IX1
3
LDA
2 IX1
3
STA
2 IX1
3
EOR
2 IX1
3
ADC
2 IX1
3
ORA
2 IX1
3
ADD
2 IX1
3
JMP
2 IX1
5
JSR
2 IX1
5
3
LDX
LDX
4 SP2 2 IX1
5
3
STX
STX
4 SP2 2 IX1
4
4
SUB
SP1
4
CMP
3 SP1
4
SBC
3 SP1
4
CPX
3 SP1
4
AND
3 SP1
4
BIT
3 SP1
4
LDA
3 SP1
4
STA
3 SP1
4
EOR
3 SP1
4
ADC
3 SP1
4
ORA
3 SP1
4
ADD
3 SP1
2
SUB
IX
2
CMP
1 IX
2
SBC
1 IX
2
CPX
1 IX
2
AND
1 IX
2
BIT
1 IX
2
LDA
1 IX
2
STA
1 IX
2
EOR
1 IX
2
ADC
1 IX
2
ORA
1 IX
2
ADD
1 IX
2
JMP
1 IX
4
JSR
1 IX
4
2
LDX
LDX
3 SP1 1 IX
4
2
STX
STX
3 SP1 1 IX
3
LSB
5
Cycles
BRSET0 Opcode Mnemonic
3 DIR Number of Bytes / Addressing Mode
Technical Data
70
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.3
SIM Bus Clock Control and Generation . . . . . . . . . . . . . . . . . . 75
7.3.1
Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.3.2
Clock Start-Up from POR . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.3.3
Clocks in Stop Mode and Wait Mode . . . . . . . . . . . . . . . . . . 75
7.4
Reset and System Initialization. . . . . . . . . . . . . . . . . . . . . . . . . 76
7.4.1
External Pin Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
7.4.2
Active Resets from Internal Sources . . . . . . . . . . . . . . . . . . 77
7.4.2.1
Power-On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
7.4.2.2
Computer Operating Properly (COP) Reset . . . . . . . . . . 79
7.4.2.3
Illegal Opcode Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.4.2.4
Illegal Address Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.4.2.5
LVI Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.5
SIM Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
7.5.1
SIM Counter During Power-On Reset . . . . . . . . . . . . . . . . . 80
7.5.2
SIM Counter During Stop Mode Recovery . . . . . . . . . . . . . . 80
7.5.3
SIM Counter and Reset States. . . . . . . . . . . . . . . . . . . . . . . 81
7.6
Exception Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.6.1
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.6.1.1
Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.6.1.2
SWI Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.6.2
Interrupt Status Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . 85
7.6.2.1
Interrupt Status Register 1 . . . . . . . . . . . . . . . . . . . . . . . 86
7.6.2.2
Interrupt Status Register 2 . . . . . . . . . . . . . . . . . . . . . . . . 86
7.6.2.3
Interrupt Status Register 3 . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.3
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.4
Break Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.6.5
Status Flag Protection in Break Mode . . . . . . . . . . . . . . . . . 87
MC68H(R)C908JL3 Rev. 1.0
MOTOROLA
Technical Data
System Integration Module (SIM)
71
7.2 Introduction
This section describes the system integration module (SIM), which
supports up to 24 external and/or internal interrupts. Together with the
CPU, the SIM controls all MCU activities. A block diagram of the SIM is
shown in Figure 7-1. Figure 7-2 is a summary of the SIM I/O registers.
The SIM is a system state controller that coordinates CPU and exception
timing. The SIM is responsible for:
Interrupt control:
Acknowledge timing
Arbitration control timing
Vector address generation
Technical Data
72
MOTOROLA
MODULE STOP
MODULE WAIT
CPU STOP (FROM CPU)
CPU WAIT (FROM CPU)
STOP/WAIT
CONTROL
COP CLOCK
INTERNAL
PULL-UP
RESET
PIN LOGIC
CLOCK GENERATORS
POR CONTROL
MASTER
RESET
CONTROL
INTERNAL CLOCKS
RESET
INTERRUPT SOURCES
INTERRUPT CONTROL
AND PRIORITY DECODE
CPU INTERFACE
Description
2OSCOUT
Buffered clock from the X-tal oscillator circuit or the RC oscillator circuit.
OSCOUT
The 2OSCOUT frequency divided by two. This signal is again divided by two in the
SIM to generate the internal bus clocks. (Bus clock = 2OSCOUT 4)
IAB
IDB
PORRST
IRST
R/W
Read/write signal
Technical Data
System Integration Module (SIM)
73
Addr.
Register Name
Bit 7
Read:
$FE00
Bit 0
SBSW
R
NOTE
0
POR
PIN
COP
ILOP
ILAD
MODRST
LVI
BCFE
IF5
IF4
IF3
IF1
IF14
IF15
$FE02
Reserved Write:
Reset:
$FE03
Read:
Break Flag Control
Register Write:
(BFCR)
Reset:
Read:
$FE04
$FE05
$FE06
= Unimplemented
= Reserved
Technical Data
74
MOTOROLA
From
OSCILLATOR
2OSCOUT
From
OSCILLATOR
OSCOUT
SIM COUNTER
BUS CLOCK
GENERATORS
SIM
Technical Data
System Integration Module (SIM)
75
Illegal opcode
Illegal address
POR
4163 (4096 + 64 + 3)
All others
67 (64 + 3)
Technical Data
76
MOTOROLA
OSCOUT
RST
IAB
VECT H VECT L
PC
IRST
RST
32 CYCLES
2OSCOUT
IAB
VECTOR HIGH
INTERNAL RESET
LVI
Technical Data
System Integration Module (SIM)
77
Internal clocks to the CPU and modules are held inactive for 4096
2OSCOUT cycles to allow stabilization of the oscillator.
The RST pin is driven low during the oscillator stabilization time.
The POR bit of the reset status register (RSR) is set and all other
bits in the register are cleared.
OSC1
PORRST
4096
CYCLES
32
CYCLES
32
CYCLES
2OSCOUT
OSCOUT
RST
$FFFE
IAB
$FFFF
78
MOTOROLA
Technical Data
System Integration Module (SIM)
79
80
MOTOROLA
Interrupts
Maskable hardware CPU interrupts
Non-maskable software interrupt instruction (SWI)
Reset
Break interrupts
7.6.1 Interrupts
An interrupt temporarily changes the sequence of program execution to
respond to a particular event. Figure 7-8 flow charts the handling of
system interrupts.
Interrupts are latched, and arbitration is performed in the SIM at the start
of interrupt processing. The arbitration result is a constant that the CPU
uses to determine which vector to fetch. Once an interrupt is latched by
the SIM, no other interrupt can take precedence, regardless of priority,
until the latched interrupt is serviced (or the I bit is cleared).
Technical Data
System Integration Module (SIM)
81
FROM RESET
BREAK INTERRUPT?
I BIT SET?
YES
NO
YES
I BIT SET?
NO
IRQ
INTERRUPT?
YES
NO
TIMER
INTERRUPT?
YES
NO
FETCH NEXT
INSTRUCTION
SWI
INSTRUCTION?
YES
NO
RTI
INSTRUCTION?
YES
NO
EXECUTE INSTRUCTION.
82
MOTOROLA
IAB
IDB
SP
DUMMY
DUMMY
SP 1
SP 2
PC 1[7:0] PC 1[15:8]
SP 3
SP 4
VECT H
CCR
VECT L
V DATA H
START ADDR
V DATA L
OPCODE
R/W
IAB
SP 4
IDB
SP 3
CCR
SP 2
SP 1
SP
PC
PC + 1
OPERAND
R/W
Technical Data
System Integration Module (SIM)
83
Technical Data
84
MOTOROLA
NOTE:
Mask1
INT
Register
Flag
Vector Address
Reset
$FFFE$FFFF
SWI Instruction
$FFFC$FFFD
IRQ1 Pin
IRQF1
IMASK1
IF1
$FFFA$FFFB
CH0F
CH0IE
IF3
$FFF6$FFF7
CH1F
CH1IE
IF4
$FFF4$FFF5
TOF
TOIE
IF5
$FFF2$FFF3
Keyboard Interrupt
KEYF
IMASKK
IF14
$FFE0$FFE1
COCO
AIEN
IF15
$FFDE$FFDF
Source
Priority
Highest
Lowest
Note:
1. The I bit in the condition code register is a global mask for all interrupts sources except the SWI
instruction.
Technical Data
System Integration Module (SIM)
85
$FE04
Bit 7
Bit 0
Read:
IF5
IF4
IF3
IF1
Write:
Reset:
= Reserved
$FE05
Bit 7
Bit 0
Read:
IF14
Write:
Reset:
= Reserved
Technical Data
86
MOTOROLA
$FE06
Bit 7
Bit 0
Read:
IF15
Write:
Reset:
= Reserved
7.6.3 Reset
All reset sources always have equal and highest priority and cannot be
arbitrated.
Technical Data
System Integration Module (SIM)
87
Technical Data
88
MOTOROLA
status register (BSR). If the COP disable bit, COPD, in the mask option
register is logic zero, then the computer operating properly module
(COP) is enabled and remains active in wait mode.
IAB
WAIT ADDR
IDB
WAIT ADDR + 1
PREVIOUS DATA
SAME
NEXT OPCODE
SAME
SAME
SAME
R/W
NOTE: Previous data can be operand data or the WAIT opcode, depending on the
last instruction.
IAB
$6E0B
IDB
$A6
$A6
$6E0C
$A6
$01
$00FF
$0B
$00FE
$00FD
$00FC
$6E
EXITSTOPWAIT
NOTE: EXITSTOPWAIT = RST pin OR CPU interrupt OR break interrupt
IAB
IDB
$6E0B
$A6
$A6
RSTVCTH
RSTVCTL
$A6
RST
2OSCOUT
Technical Data
System Integration Module (SIM)
89
NOTE:
External crystal applications should use the full stop recovery time by
clearing the SSREC bit.
A break interrupt during stop mode sets the SIM break stop/wait bit
(SBSW) in the break status register (BSR).
The SIM counter is held in reset from the execution of the STOP
instruction until the beginning of stop recovery. It is then used to time the
recovery period. Figure 7-18 shows stop mode entry timing.
NOTE:
CPUSTOP
IAB
IDB
STOP ADDR
STOP ADDR + 1
PREVIOUS DATA
SAME
NEXT OPCODE
SAME
SAME
SAME
R/W
NOTE: Previous data can be operand data or the STOP opcode, depending on the last
instruction.
Technical Data
90
MOTOROLA
INT/BREAK
IAB
STOP + 2
STOP +1
STOP + 2
SP
SP 1
SP 2
SP 3
Register
Access Mode
$FE00
BSR
User
$FE01
RSR
User
$FE03
BFCR
User
$FE00
Bit 7
Read:
Bit 0
SBSW
Write:
Note(1)
Reset:
0
R
= Reserved
Technical Data
System Integration Module (SIM)
91
EQU
LOBYTE
EQU
SBSW,BSR, RETURN
TST
LOBYTE,SP
BNE
DOLO
DEC
HIBYTE,SP
DOLO
DEC
LOBYTE,SP
RETURN
PULH
RTI
; Restore H register.
Technical Data
92
MOTOROLA
Address:
$FE01
Bit 7
Read:
Bit 0
POR
PIN
COP
ILOP
ILAD
MODRST
LVI
Write:
POR:
= Unimplemented
Technical Data
System Integration Module (SIM)
93
Address:
$FE03
Bit 7
Bit 0
BCFE
Read:
Write:
Reset:
0
R
= Reserved
Technical Data
94
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
8.3
8.4
RC Oscillator (MC68HRC908xxx) . . . . . . . . . . . . . . . . . . . . . . 97
8.5
I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.5.1
Crystal Amplifier Input Pin (OSC1). . . . . . . . . . . . . . . . . . . . 98
8.5.2
Crystal Amplifier Output Pin (OSC2/PTA6/RCCLK). . . . . . . 98
8.5.3
Oscillator Enable Signal (SIMOSCEN). . . . . . . . . . . . . . . . . 98
8.5.4
X-tal Oscillator Clock (XTALCLK). . . . . . . . . . . . . . . . . . . . . 98
8.5.5
RC Oscillator Clock (RCCLK). . . . . . . . . . . . . . . . . . . . . . . . 99
8.5.6
Oscillator Out 2 (2OSCOUT) . . . . . . . . . . . . . . . . . . . . . . . . 99
8.5.7
Oscillator Out (OSCOUT). . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6.1
Wait Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.6.2
Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.7
8.2 Introduction
The oscillator module provides the reference clock for the MCU system
and bus. Two types of oscillator modules are available:
Technical Data
Oscillator (OSC)
95
Oscillator (OSC)
8.3 X-tal Oscillator (MC68HC908xxx)
The X-tal oscillator circuit is designed for use with an external crystal or
ceramic resonator to provide accurate clock source.
In its typical configuration, the X-tal oscillator is connected in a Pierce
oscillator configuration, as shown in Figure 8-1. This figure shows only
the logical representation of the internal components and may not
represent actual circuitry. The oscillator configuration uses five
components:
Crystal, X1
Fixed capacitor, C1
Feedback resistor, RB
From SIM
2OSCOUT
XTALCLK
To SIM
OSCOUT
SIMOSCEN
MCU
OSC1
OSC2
RS*
RB
X1
C1
C2
Technical Data
96
MOTOROLA
Oscillator (OSC)
RC Oscillator (MC68HRC908xxx)
The series resistor (RS) is included in the diagram to follow strict Pierce
oscillator guidelines and may not be required for all ranges of operation,
especially with high frequency crystals. Refer to the crystal
manufacturers data for more information.
CEXT
REXT
From SIM
To SIM
To SIM
2OSCOUT
SIMOSCEN
Ext-RC
Oscillator
EN
OSCOUT
RCCLK
PTA6
I/O
PTA6
PTA6EN
MCU
OSC1
VDD
REXT
PTA6/RCCLK (OSC2)
CEXT
Technical Data
Oscillator (OSC)
97
Oscillator (OSC)
8.5 I/O Signals
The following paragraphs describe the oscillator I/O signals.
8.5.1 Crystal Amplifier Input Pin (OSC1)
OSC1 pin is an input to the crystal oscillator amplifier or the input to the
RC oscillator circuit.
X-tal oscillator
Inverting OSC1
RC oscillator
98
MOTOROLA
Oscillator (OSC)
Low Power Modes
Technical Data
Oscillator (OSC)
99
Oscillator (OSC)
8.7 Oscillator During Break Mode
The oscillator continues to drive OSCOUT and 2OSCOUT when the
device enters the break state.
Technical Data
100
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
9.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.4
Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.4.1
Entering Monitor Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.4.2
Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
9.4.3
Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.4.4
Echoing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.4.5
Break Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9.4.6
Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
9.5
Security. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
9.2 Introduction
This section describes the monitor ROM (MON) and the monitor mode
entry methods. The monitor ROM allows complete testing of the MCU
through a single-wire interface with a host computer. This mode is also
used for programming and erasing of FLASH memory in the MCU.
Monitor mode entry can be achieved without use of the higher test
voltage, VDD + VHI, as long as vector addresses $FFFE and $FFFF are
blank, thus reducing the hardware requirements for in-circuit
programming.
Technical Data
Monitor ROM (MON)
101
Monitor mode entry without high voltage, VDD + VHI, if reset vector
is blank ($FFFE and $FFFF contain $FF)
Technical Data
102
MOTOROLA
RST
VDD
RC CIRCUIT
(FOR MC68HRC908xxx)
VDD
0.1 F
VDD + VHI
10k
HC908JL3
HC908JK3
HC908JK1
10k
SW2
C
OSC1
IRQ1
OSC2
(SEE NOTE 4 AND 5)
VDD
VDD
VDD
(SEE NOTE 2)
0.1 F
VSS
10 F
MC145407
+
3
10 F
OSC1
9.8304MHz
10 F
18
(SEE NOTE 1)
20
D
C
10M
17
19
20 pF
OSC2
D
10 F
VDD
VDD
20 pF
10 k
X-TAL CIRCUIT
DB-25
2
3
A
5
6
16
(SEE NOTE 3)
SW1
PTB3
15
10 k
VDD
1
MC74HC125
VDD
14
10 k
PTB0
VDD
10 k
7
PTB1
NOTES:
1. X-tal circuit replaced by RC circuit for MC68HRC908xxx
2. External oscillator must have a 50% duty cycle.
3. Affects high voltage entry to monitor mode only (SW2 at position C):
SW1: Position A Bus clock = OSC1 4
SW1: Position B Bus clock = OSC1 2
4. SW2: Position C High voltage entry to monitor mode.
Input clock = OSC1; Bus clock depends on SW1.
SW2: Position D Bus clock source = X-TAL or RC oscillator.
Bus clock = XTALCLK 4 or RCCLK 4.
5. See Table 18-4 for IRQ1 voltage level requirements.
PTB2
10 k
Technical Data
Monitor ROM (MON)
103
IRQ1
$FFFE
and
$FFFF
PTB3
PTB2
PTB1
PTB0
VDD + VHI
OSC1 at
4.9152MHz
2.4576MHz
VDD + VHI
OSC1 at
9.8304MHz
2.4576MHz
VDD
BLANK
(contain
$FF)
X-tal or RC
oscillator at
9.8304MHz
2.4576MHz
Low-voltage entry to
monitor mode.
9600 baud communication
on PTB0. COP disabled.
VDD
NOT
BLANK
X-tal or RC
oscillator at
desired frequency
XTALCLK 4
or
RCCLK 4
Bus
Frequency
Comments
Bypasses X-tal or RC
oscillator; external clock
driven directly into OSC1.
9600 baud communication
on PTB0. COP disabled.
Notes:
1. PTB3 = 0: Bypasses the divide-by-two prescaler to SIM when using VDD + VHI for monitor mode entry.
The OSC1 clock must be 50% duty cycle for this condition.
2. XTALCLK is the X-tal oscillator output, for MC68HC908xxx. See Figure 8-1.
4. RCCLK is the RC oscillator output, for MC68HRC908xxx. See Figure 8-2.
5. See Table 18-4 for VDD + VHI voltage level requirements.
Technical Data
104
MOTOROLA
If VDD +VHI is applied to IRQ1 and PTB3 is low upon monitor mode
entry (Table 9-1 condition set 1), the bus frequency is a divide-by-two of
the external clock input to OSC1. If PTB3 is high with VDD +VHI applied
to IRQ1 upon monitor mode entry (Table 9-1 condition set 2), the bus
frequency is a divide-by-four of the external clock input to OSC1. Holding
the PTB3 pin low when entering monitor mode causes a bypass of a
divide-by-two stage at the oscillator only if VDD +VHI is applied to IRQ1.
In this event, the OSCOUT frequency is equal to the 2OSCOUT
frequency, and OSC1 input directly generates internal bus clocks. In this
case, the OSC1 signal must have a 50% duty cycle at maximum bus
frequency.
Entering monitor mode with VDD + VHI on IRQ1, the COP is disabled as
long as VDD + VHI is applied to either the IRQ1 or the RST. (See Section
7. System Integration Module (SIM) for more information on modes of
operation.)
If entering monitor mode without high voltage on IRQ1 and reset vector
being blank ($FFFE and $FFFF) (Table 9-1 condition set 3, where
applied voltage is VDD), then all port B pin requirements and conditions,
including the PTB3 frequency divisor selection, are not in effect. This is
to reduce circuit requirements when performing in-circuit programming.
Entering monitor mode with the reset vector being blank, the COP is
always disabled regardless of the state of IRQ1 or the RST.
Figure 9-2. shows a simplified diagram of the monitor mode entry when
the reset vector is blank and IRQ1 = VDD. An oscillator frequency
(XTALCLK or RCCCLK) of 9.8304MHz is required for a baud rate of
9600.
Technical Data
Monitor ROM (MON)
105
POR RESET
IS VECTOR
BLANK?
NO
NORMAL USER
MODE
YES
MONITOR MODE
EXECUTE
MONITOR
CODE
POR
TRIGGERED?
NO
YES
Technical Data
106
MOTOROLA
COP
Reset
Vector
High
Reset
Vector
Low
Break
Vector
High
Break
Vector
Low
SWI
Vector
High
SWI
Vector
Low
User
Enabled
$FFFE
$FFFF
$FFFC
$FFFD
$FFFC
$FFFD
Monitor
Disabled(1)
$FEFE
$FEFF
$FEFC
$FEFD
$FEFC
$FEFD
Notes:
1. If the high voltage (VDD + VHI) is removed from the IRQ1 pin or the RST pin, the SIM
asserts its COP enable output. The COP is a mask option enabled or disabled by the
COPD bit in the configuration register.
When the host computer has completed downloading code into the MCU
RAM, the host then sends a RUN command, which executes an RTI,
which sends control to the address on the stack pointer.
Baud Rate
9600 bps
9.8304 MHz
9600 bps
4.9152 MHz
Blank reset vector,
IRQ1 = VDD
PTB3
4.9152 MHz
IRQ1 = VDD + VHI
Input Clock
Frequency
4800 bps
9.8304 MHz
9600 bps
4.9152 MHz
4800 bps
Technical Data
Monitor ROM (MON)
107
START
BIT
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
STOP
BIT
BIT 7
NEXT
START
BIT
$A5
START
BIT
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
BREAK
START
BIT
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
STOP
BIT
STOP
BIT
NEXT
START
BIT
NEXT
START
BIT
9.4.4 Echoing
As shown in Figure 9-5, the monitor ROM immediately echoes each
received byte back to the PTB0 pin for error checking.
SENT TO
MONITOR
READ
READ
ADDR. LOW
ECHO
ADDR. LOW
DATA
RESULT
Technical Data
108
MOTOROLA
Technical Data
Monitor ROM (MON)
109
Operand
Data Returned
Opcode
$4A
Command Sequence
SENT TO
MONITOR
READ
READ
ADDR. HIGH
ADDR. HIGH
ADDR. LOW
ADDR. LOW
ECHO
DATA
RESULT
Operand
Species 2-byte address in high byte:low byte order; low byte followed by data byte
Data Returned
None
Opcode
$49
Command Sequence
SENT TO
MONITOR
WRITE
WRITE
ADDR. HIGH
ADDR. HIGH
ADDR. LOW
ADDR. LOW
DATA
DATA
ECHO
Technical Data
110
MOTOROLA
Operand
Data Returned
Opcode
$1A
Command Sequence
SENT TO
MONITOR
IREAD
IREAD
DATA
DATA
RESULT
ECHO
Operand
Data Returned
None
Opcode
$19
Command Sequence
SENT TO
MONITOR
IWRITE
IWRITE
DATA
DATA
ECHO
NOTE:
Technical Data
Monitor ROM (MON)
111
Operand
None
Data Returned
Opcode
$0C
Command Sequence
SENT TO
MONITOR
READSP
READSP
SP HIGH
SP LOW
RESULT
ECHO
Operand
None
Data Returned
None
Opcode
$28
Command Sequence
SENT TO
MONITOR
RUN
RUN
ECHO
Technical Data
112
MOTOROLA
9.5 Security
A security feature discourages unauthorized reading of FLASH locations
while in monitor mode. The host can bypass the security feature at
monitor mode entry by sending eight security bytes that match the bytes
at locations $FFF6$FFFD. Locations $FFF6$FFFD contain userdefined data.
NOTE:
BYTE 8
BYTE 2
BYTE 1
24 BUS CYCLES
FROM HOST
PTB0
NOTES:
1 = Echo delay, 2 bit times
2 = Data return delay, 2 bit times
4 = Wait 1 bit time before sending next byte.
1
COMMAND ECHO
BREAK
1
BYTE 8 ECHO
1
BYTE 2 ECHO
FROM MCU
4
BYTE 1 ECHO
Technical Data
Monitor ROM (MON)
113
NOTE:
The MCU does not transmit a break character until after the host sends
the eight security bytes.
To determine whether the security code entered is correct, check to see
if bit 6 of RAM address $40 is set. If it is, then the correct security code
has been entered and FLASH can be accessed.
If the security sequence fails, the device should be reset by a power-on
reset and brought up in monitor mode to attempt another entry. After
failing the security sequence, the FLASH module can also be mass
erased by executing an erase routine that was downloaded into internal
RAM. The mass erase operation clears the security code locations so
that all eight security bytes become $FF (blank).
Technical Data
114
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
10.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
10.4
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
10.7
10.8
10.9
Technical Data
Timer Interface Module (TIM)
115
10.3 Features
Features of the TIM include the following:
TCH0
TCH1
PTD4/TCH0
PTD5/TCH1
Technical Data
116
MOTOROLA
PRESCALER SELECT
INTERNAL
BUS CLOCK
PRESCALER
TSTOP
PS2
TRST
PS1
PS0
16-BIT COUNTER
TOF
TOIE
INTERRUPT
LOGIC
16-BIT COMPARATOR
TMODH:TMODL
TOV0
CHANNEL 0
ELS0B
ELS0A
CH0MAX
16-BIT COMPARATOR
TCH0H:TCH0L
PORT
LOGIC
TCH0
CH0F
INTERRUPT
LOGIC
16-BIT LATCH
CH0IE
MS0A
MS0B
INTERNAL BUS
TOV1
CHANNEL 1
ELS1B
ELS1A
CH1MAX
PORT
LOGIC
TCH1
16-BIT COMPARATOR
TCH1H:TCH1L
CH1F
INTERRUPT
LOGIC
16-BIT LATCH
MS1A
CH1IE
Technical Data
Timer Interface Module (TIM)
117
Addr.
$0020
Register Name
TIM Status and Control
Register
(TSC)
Bit 7
TOIE
Read:
TSTOP
Bit 0
PS2
TOF
3
0
PS1
PS0
$0022
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Read:
TIM Counter Register Low
(TCNTL)
Reset:
Reset:
$0021
Read:
TIM Counter Register High
(TCNTH)
Write:
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Reset:
Read:
CH0F
CH0IE
MS0B
MS0A
ELS0B
ELS0A
TOV0
CH0MAX
Write:
Reset:
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit2
Bit1
Bit0
Write:
Write:
Reset:
$0023
$0024
$0025
TIM Channel 0
Register High
(TCH0H)
$0026
TIM Channel 0
Register Low
(TCH0L)
$0027
$0028
TRST
Read:
Write:
Reset:
Read:
Write:
Read:
Write:
Reset:
Read:
Bit7
Bit6
Bit5
Bit4
Bit3
Write:
Reset:
Read:
0
CH1IE
Write:
Reset:
MS1A
ELS1B
ELS1A
TOV1
CH1MAX
0
0
118
MOTOROLA
$0029
$002A
TIM Channel 1
Register High
(TCH1H)
TIM Channel 1
Register Low
(TCH1L)
Read:
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit2
Bit1
Bit0
Write:
Reset:
Read:
Bit7
Bit6
Bit5
Bit4
Bit3
Write:
Reset:
Technical Data
Timer Interface Module (TIM)
119
120
MOTOROLA
channel 0 registers initially controls the output on the TCH0 pin. Writing
to the TIM channel 1 registers enables the TIM channel 1 registers to
synchronously control the output after the TIM overflows. At each
subsequent overflow, the TIM channel registers (0 or 1) that control the
output are the ones written to last. TSC0 controls and monitors the
buffered output compare function, and TIM channel 1 status and control
register (TSC1) is unused. While the MS0B bit is set, the channel 1 pin,
TCH1, is available as a general-purpose I/O pin.
NOTE:
Technical Data
Timer Interface Module (TIM)
121
OVERFLOW
OVERFLOW
PERIOD
PULSE
WIDTH
TCHx
OUTPUT
COMPARE
OUTPUT
COMPARE
OUTPUT
COMPARE
Technical Data
122
MOTOROLA
write a new, smaller pulse width value may cause the compare to be
missed. The TIM may pass the new value before it is written.
Use the following methods to synchronize unbuffered changes in the
PWM pulse width on channel x:
NOTE:
Technical Data
Timer Interface Module (TIM)
123
NOTE:
In buffered PWM signal generation, do not write new pulse width values
to the currently active channel registers. Writing to the active channel
registers is the same as generating unbuffered PWM signals.
NOTE:
Write 1:0 (to clear output on compare) or 1:1 (to set output on
compare) to the edge/level select bits, ELSxB:ELSxA. The
output action on compare must force the output to the
complement of the pulse width level. (See Table 10-3.)
Technical Data
124
MOTOROLA
Setting MS0B links channels 0 and 1 and configures them for buffered
PWM operation. The TIM channel 0 registers (TCH0H:TCH0L) initially
control the buffered PWM output. TIM status control register 0 (TSCR0)
controls and monitors the PWM signal from the linked channels. MS0B
takes priority over MS0A.
Clearing the toggle-on-overflow bit, TOVx, inhibits output toggles on TIM
overflows. Subsequent output compares try to force the output to a state
it is already in and have no effect. The result is a 0% duty cycle output.
Setting the channel x maximum duty cycle bit (CHxMAX) and clearing
the TOVx bit generates a 100% duty cycle output. (See 10.10.4 TIM
Channel Status and Control Registers (TSC0:TSC1).)
10.6 Interrupts
The following TIM sources can generate interrupt requests:
TIM overflow flag (TOF) The TOF bit is set when the TIM
counter value rolls over to $0000 after matching the value in the
TIM counter modulo registers. The TIM overflow interrupt enable
bit, TOIE, enables TIM overflow CPU interrupt requests. TOF and
TOIE are in the TIM status and control register.
Technical Data
Timer Interface Module (TIM)
125
Technical Data
126
MOTOROLA
Address:
$0020
Bit 7
TOIE
Read:
TSTOP
Write:
Reset:
TOF
Bit 0
0
PS2
PS1
PS0
TRST
0
= Unimplemented
Technical Data
Timer Interface Module (TIM)
127
NOTE:
Do not set the TSTOP bit before entering wait mode if the TIM is required
to exit wait mode.
TRST TIM Reset Bit
Setting this write-only bit resets the TIM counter and the TIM
prescaler. Setting TRST has no effect on any other registers.
Counting resumes from $0000. TRST is cleared automatically after
the TIM counter is reset and always reads as logic zero. Reset clears
the TRST bit.
1 = Prescaler and TIM counter cleared
0 = No effect
NOTE:
Setting the TSTOP and TRST bits simultaneously stops the TIM counter
at a value of $0000.
PS[2:0] Prescaler Select Bits
These read/write bits select one of the seven prescaler outputs as the
input to the TIM counter as Table 10-2 shows. Reset clears the
PS[2:0] bits.
Technical Data
128
MOTOROLA
PS1
PS0
Not available
NOTE:
Technical Data
Timer Interface Module (TIM)
129
Address:
TCNTH
Bit 7
Bit 0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
$0022
TCNTL
Bit 7
Read:
$0021
Bit 0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Write:
Reset:
Address:
Read:
Write:
Reset:
= Unimplemented
Technical Data
130
MOTOROLA
Address:
$0023
TMODH
Bit 7
Bit 0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
$0024
TMODL
Bit 7
Bit 0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Read:
Write:
Reset:
Address:
Read:
Write:
Reset:
NOTE:
Reset the TIM counter before writing to the TIM counter modulo registers.
Selects rising edge, falling edge, or any edge as the active input
capture trigger
Technical Data
Timer Interface Module (TIM)
131
Address:
$0025
TSC0
Bit 7
Bit 0
CH0IE
MS0B
MS0A
ELS0B
ELS0A
TOV0
CH0MAX
Bit 0
MS1A
ELS1B
ELS1A
TOV1
CH1MAX
Read:
CH0F
Write:
Reset:
$0028
TSC1
Bit 7
Address:
Read:
CH1F
0
CH1IE
Write:
Reset:
= Unimplemented
132
MOTOROLA
NOTE:
Technical Data
Timer Interface Module (TIM)
133
MSxA
ELSxB
ELSxA
Mode
0
Output
Preset
Input
Capture
NOTE:
Configuration
Output
Compare
or PWM
Before enabling a TIM channel register for input capture operation, make
sure that the TCHx pin is stable for at least two bus clocks.
TOVx Toggle-On-Overflow Bit
When channel x is an output compare channel, this read/write bit
controls the behavior of the channel x output when the TIM counter
overflows. When channel x is an input capture channel, TOVx has no
effect. Reset clears the TOVx bit.
1 = Channel x pin toggles on TIM counter overflow.
0 = Channel x pin does not toggle on TIM counter overflow.
NOTE:
Technical Data
134
MOTOROLA
OVERFLOW
OVERFLOW
OVERFLOW
OVERFLOW
OVERFLOW
PERIOD
TCHx
OUTPUT
COMPARE
OUTPUT
COMPARE
OUTPUT
COMPARE
OUTPUT
COMPARE
CHxMAX
Technical Data
Timer Interface Module (TIM)
135
Address:
$0026
TCH0H
Bit 7
Bit 0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Read:
Write:
Reset:
Address:
$0027
TCH0L
Bit 7
Bit 0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Read:
Write:
Reset:
Address:
$0029
TCH1H
Bit 7
Bit 0
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Read:
Write:
Reset:
Address:
$02A
TCH1L
Bit 7
Bit 0
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
Read:
Write:
Reset:
Technical Data
136
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
11.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
11.2 Introduction
This section describes the analog-to-digital converter (ADC). The ADC
is an 8-bit, 12-channels analog-to-digital converter.
Technical Data
Analog-to-Digital Converter (ADC)
137
$003D
8-bit resolution
$003C
Addr.
Register Name
Bit 7
Read:
ADC Status and Control
Register Write:
(ADSCR)
Reset:
Read:
ADC Data Register
Write:
(ADR)
Reset:
Read:
ADC Input Clock Register
$003E
Write:
(ADICLK)
Reset:
Bit 0
AIEN
ADCO
CH4
CH3
CH2
CH1
CH0
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
COCO
ADIV1
ADIV0
Technical Data
138
MOTOROLA
INTERNAL
DATA BUS
READ DDRB/DDRD
DISABLE
WRITE DDRB/DDRD
DDRBx/DDRDx
RESET
WRITE PTB/PTD
ADCx
PTBx/PTDx
READ PTB/PTD
DISABLE
ADC CHANNEL x
ADC DATA REGISTER
INTERRUPT
LOGIC
AIEN
CONVERSION
COMPLETE
ADC
ADC VOLTAGE IN
ADCVIN
CHANNEL
SELECT
(1 OF 12 CHANNELS)
CH[4:0]
ADC CLOCK
COCO
CLOCK
GENERATOR
BUS CLOCK
ADIV[2:0]
ADICLK
Technical Data
Analog-to-Digital Converter (ADC)
139
NOTE:
Conversion Time =
140
MOTOROLA
11.5 Interrupts
When the AIEN bit is set, the ADC module is capable of generating a
CPU interrupt after each ADC conversion. A CPU interrupt is generated
if the COCO bit is at logic 0. The COCO bit is not used as a conversion
complete flag when interrupts are enabled.
Technical Data
Analog-to-Digital Converter (ADC)
141
$003C
Bit 7
Bit 0
AIEN
Read:
ADCO
CH4
CH3
CH2
CH1
CH0
COCO
Write:
Reset:
= Unimplemented
142
MOTOROLA
NOTE:
Technical Data
Analog-to-Digital Converter (ADC)
143
CH3
CH2
CH1
CH0
ADC Channel
Input Select
ADC0
PTB0
ADC1
PTB1
ADC2
PTB2
ADC3
PTB3
ADC4
PTB4
ADC5
PTB5
ADC6
PTB6
ADC7
PTB7
ADC8
PTD3
ADC9
PTD2
ADC10
PTD1
ADC11
PTD0
Unused
(see Note 1)
Reserved
Unused
NOTES:
1. If any unused channels are selected, the resulting ADC conversion will be unknown.
2. The voltage levels supplied from internal reference nodes as specified in the table are used to verify the
operation of the ADC converter both in production test and for user applications.
Technical Data
144
MOTOROLA
Address:
$003D
Bit 7
Read:
Bit 0
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
Write:
Reset:
$003E
Bit 7
ADIV2
ADIV1
ADIV0
Bit 0
Read:
Write:
Reset:
= Unimplemented
Technical Data
Analog-to-Digital Converter (ADC)
145
ADIV1
ADIV0
X = dont care
Technical Data
146
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
12.3
Port A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
12.2 Introduction
Twenty three bidirectional input-output (I/O) pins form three parallel
ports. All I/O pins are programmable as inputs or outputs.
NOTE:
Connect any unused I/O pins to an appropriate logic level, either VDD or
VSS. Although the I/O ports do not require termination for proper
operation, termination reduces excess current consumption and the
possibility of electrostatic damage.
Technical Data
I/O Ports
147
I/O Ports
Addr.
Register Name
$0000
Read:
Port A Data Register
Write:
(PTA)
Reset:
$0001
$0003
Bit 7
Read:
Port B Data Register
Write:
(PTB)
Reset:
Read:
Port D Data Register
Write:
(PTD)
Reset:
Read:
Data Direction Register A
$0004
Write:
(DDRA)
Reset:
PTB7
$000D
Bit 0
PTA6
PTA5
PTA4
PTA3
PTA2
PTA1
PTA0
PTB2
PTB1
PTB0
PTD2
PTD1
PTD0
PTB6
PTB5
PTB4
PTB3
Unaffected by reset
PTD7
PTD6
PTD5
PTD4
PTD3
Unaffected by reset
0
DDRA6
DDRA5
DDRA4
DDRA3
DDRA2
DDRA1
DDRA0
DDRB6
DDRB5
DDRB4
DDRB3
DDRB2
DDRB1
DDRB0
DDRD6
DDRD5
DDRD4
DDRD3
DDRD2
DDRD1
DDRD0
Read:
DDRD7
Data Direction Register D
$0007
Write:
(DDRD)
Reset:
0
$000A
Unaffected by reset
Read:
DDRB7
Data Direction Register B
$0005
Write:
(DDRB)
Reset:
0
Read:
Port D Control Register
Write:
(PDCR)
Reset:
PTDPU6
0
Read:
Port A Input Pull-up
PTA6EN PTAPUE6 PTAPUE5 PTAPUE4 PTAPUE3 PTAPUE2 PTAPUE1 PTAPUE0
Enable Register Write:
(PTAPUE)
Reset:
0
0
0
0
0
0
0
0
12.3 Port A
Port A is an 7-bit special function port that shares all seven of its pins
with the Keyboard Interrupt (KBI) Module, See Section 14. Each port A
pin also has software configurable pull-up device if the corresponding
port pin is configured as input port. PTA0 to PTA5 has direct LED drive
capability.
Technical Data
148
MOTOROLA
I/O Ports
Port A Data Register (PTA)
$0000
Bit 7
Bit 0
PTA6
Read:
PTA5
PTA4
PTA3
PTA2
PTA1
PTA0
LED
(Sink)
LED
(Sink)
LED
(Sink)
Write:
Reset:
Additional Functions:
Unaffected by Reset
LED
(Sink)
LED
(Sink)
LED
(Sink)
30k pull-up 30k pull-up 30k pull-up 30k pull-up 30k pull-up 30k pull-up 30k pull-up
Technical Data
I/O Ports
149
I/O Ports
12.4.1 Data Direction Register A (DDRA)
Data direction register A determines whether each port A pin is an input
or an output. Writing a logic one to a DDRA bit enables the output buffer
for the corresponding port A pin; a logic zero disables the output buffer.
Address:
$0004
Bit 7
Bit 0
DDRA6
Read:
DDRA5
DDRA4
DDRA3
DDRA2
DDRA1
DDRA0
Write:
Reset:
NOTE:
Avoid glitches on port A pins by writing to the port A data register before
changing data direction register A bits from 0 to 1.
Figure 12-4 shows the port A I/O logic.
Technical Data
150
MOTOROLA
I/O Ports
Port A Data Register (PTA)
DDRAx
30k
PTAx
Technical Data
I/O Ports
151
I/O Ports
Address:
$000D
Bit 7
Bit 0
Read:
PTA6EN PTAPUE6 PTAPUE5 PTAPUE4 PTAPUE3 PTAPUE2 PTAPUE2 PTAPUE0
Write:
Reset:
DDRA
Bit
PTA Bit
X(1)
PTAPUE Bit
1.
2.
3.
4.
Read/Write
Read
Write
Input, VDD(2)
DDRA6-DDRA0
Pin
PTA6-PTA0(3)
Input, Hi-Z(4)
DDRA6-DDRA0
Pin
PTA6-PTA0(3)
Output
DDRA6-DDRA0
PTA6-PTA0
PTA6-PTA0
X = Dont care.
I/O pin pulled to VDD by internal pull-up.
Writing affects data register, but does not affect input.
Hi-Z = High Impedence
Technical Data
152
Accesses to PTB
MOTOROLA
I/O Ports
Port B
12.5 Port B
Port B is an 8-bit special function port that shares all eight of its port pins
with the Analog-to-Digital converter (ADC) module, See Section 11.
12.5.1 Port B Data Register (PTB)
The port B data register contains a data latch for each of the eight port B
pins.
Address:
$0001
Bit 7
Bit 0
PTB7
PTB6
PTB5
PTB4
PTB3
PTB2
PTB1
PTB0
ADC2
ADC2
ADC0
Read:
Write:
Reset:
Alternative Function:
Unaffected by reset
ADC7
ADC6
ADC5
ADC4
ADC3
$0005
Bit 7
Bit 0
DDRB7
DDRB6
DDRB5
DDRB4
DDRB3
DDRB2
DDRB1
DDRB0
Read:
Write:
Reset:
Technical Data
I/O Ports
153
I/O Ports
DDRB[7:0] Data Direction Register B Bits
These read/write bits control port B data direction. Reset clears
DDRB[7:0], configuring all port B pins as inputs.
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
NOTE:
Avoid glitches on port B pins by writing to the port B data register before
changing data direction register B bits from 0 to 1. Figure 12-8 shows
the port B I/O logic.
READ DDRB ($0005)
DDRBx
PTBx
To Analog-To-Digital Converter
PTB Bit
Accesses to PTB
Read
Write
X(1)
Input, Hi-Z(2)
DDRB7-DDRB0
Pin
PTB[7:0](3)
Output
DDRB7-DDRB0
Pin
PTB[7:0]
1. X = dont care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect the input.
Technical Data
154
MOTOROLA
I/O Ports
Port D
12.6 Port D
Port D is an 8-bit special function port that shares two of its pins with
Timer Interface Module, (see Section 10.) and shares four of its pins
with Analog to Digital Conversion Module (see Section 11.). PTD6 and
PTD7 each has high current drive (25mA sink) and programmable pullup. PTD2, PTD3, PTD6 and PTD7 each has LED driving capability.
Technical Data
I/O Ports
155
I/O Ports
12.6.2 Data Direction Register D (DDRD)
Data direction register D determines whether each port D pin is an input
or an output. Writing a logic one to a DDRD bit enables the output buffer
for the corresponding port D pin; a logic zero disables the output buffer.
Address:
$0007
Bit 7
Bit 0
DDRD7
DDRD6
DDRD5
DDRD4
DDRD3
DDRD2
DDRD1
DDRD0
Read:
Write:
Reset:
NOTE:
Avoid glitches on port D pins by writing to the port D data register before
changing data direction register D bits from 0 to 1. Figure 12-11 shows
the port D I/O logic.
READ DDRD ($0007)
PTDPU[6:7]
INTERNAL DATA BUS
DDRDx
5k
PTDx
156
MOTOROLA
I/O Ports
Port D
When DDRDx is a logic 1, reading address $0003 reads the PTDx data
latch. When DDRDx is a logic 0, reading address $0003 reads the
voltage level on the pin. The data latch can always be written, regardless
of the state of its data direction bit. Table 12-3 summarizes the operation
of the port D pins.
Table 12-3. Port D Pin Functions
DDRD
Bit
PTD Bit
Accesses
to DDRA
I/O Pin
Mode
Accesses to PTD
Read/Write
Read
Write
X(1)
Input, Hi-Z(2)
DDRD[7:0]
Pin
PTD[7:0](3)
Output
DDRD[7:0]
Pin
PTD[7:0]
1. X = dont care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect the input.
$000A
Bit 7
Bit 0
SLOWD7
Read:
0
SLOWD6
PTDPU7
PTDPU6
Write:
Reset:
Technical Data
I/O Ports
157
I/O Ports
Technical Data
158
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
13.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
13.6
13.2 Introduction
The IRQ (external interrupt) module provides a maskable interrupt input.
13.3 Features
Features of the IRQ module include the following:
Hysteresis buffer
Technical Data
External Interrupt (IRQ)
159
The external interrupt pin is falling-edge-triggered and is softwareconfigurable to be either falling-edge or falling-edge and low-leveltriggered. The MODE1 bit in the ISCR controls the triggering sensitivity
of the IRQ1 pin.
When the interrupt pin is edge-triggered only, the CPU interrupt request
remains set until a vector fetch, software clear, or reset occurs.
When the interrupt pin is both falling-edge and low-level-triggered, the
CPU interrupt request remains set until both of the following occur:
The vector fetch or software clear may occur before or after the interrupt
pin returns to logic one. As long as the pin is low, the interrupt request
remains pending. A reset will clear the latch and the MODE1 control bit,
thereby clearing the interrupt even if the pin stays low.
When set, the IMASK1 bit in the ISCR mask all external interrupt
requests. A latched interrupt request is not presented to the interrupt
priority logic unless the IMASK1 bit is clear.
Technical Data
160
MOTOROLA
NOTE:
The interrupt mask (I) in the condition code register (CCR) masks all
interrupt requests, including external interrupt requests.(See 7.6
Exception Control.)
ACK1
RESET
TO CPU FOR
BIL/BIH
INSTRUCTIONS
VECTOR
FETCH
DECODER
VDD
IRQPUD
VDD
INTERNAL
IRQF1
PULLUP
DEVICE
CLR
SYNCHRONIZER
IRQ1
INTERRUPT
REQUEST
HIGH
VOLTAGE
DETECT
CK
IRQ1
TO MODE
SELECT
LOGIC
IRQ1
FF
IMASK1
MODE1
$001D
Register Name
Bit 7
Read:
IRQ Status and Control
Register Write:
(INTSCR)
Reset:
IRQF1
0
ACK1
Bit 0
IMASK1
MODE1
= Unimplemented
Technical Data
External Interrupt (IRQ)
161
Return of the IRQ1 pin to logic one As long as the IRQ1 pin is
at logic zero, IRQ1 remains active.
The vector fetch or software clear and the return of the IRQ1 pin to logic
one may occur in any order. The interrupt request remains pending as
long as the IRQ1 pin is at logic zero. A reset will clear the latch and the
MODE1 control bit, thereby clearing the interrupt even if the pin stays
low.
If the MODE1 bit is clear, the IRQ1 pin is falling-edge-sensitive only.
With MODE1 clear, a vector fetch or software clear immediately clears
the IRQ1 latch.
The IRQF1 bit in the ISCR register can be used to check for pending
interrupts. The IRQF1 bit is not affected by the IMASK1 bit, which makes
it useful in applications where polling is preferred.
Use the BIH or BIL instruction to read the logic level on the IRQ1 pin.
NOTE:
NOTE:
An internal pull-up resistor to VDD is connected to the IRQ1 pin; this can
be disabled by setting the IRQPUD bit in the CONFIG2 register ($001E).
Technical Data
162
MOTOROLA
Address:
$001D
Bit 7
IRQF1
Write:
Reset:
Bit 0
IMASK1
Read:
MODE1
ACK1
0
= Unimplemented
Technical Data
External Interrupt (IRQ)
163
$001E
Bit 7
Bit 0
IRQPUD
LVIT1
LVIT0
Reset:
Not affected
Not affected
POR:
Read:
Write:
= Reserved
Technical Data
164
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
14.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
14.6
14.7
14.2 Introduction
The keyboard interrupt module (KBI) provides seven independently
maskable external interrupts which are accessible via PTA0PTA6 pins.
14.3 Features
Features of the keyboard interrupt module include the following:
Technical Data
Keyboard Interrupt Module (KBI)
165
Addr.
$001B
Bit 7
Read:
Keyboard Status
and Control Register Write:
(KBSCR)
Reset:
KEYF
Read:
$001A
Register Name
Bit 0
IMASKK
MODEK
ACKK
0
KBIE6
KBIE5
KBIE4
KBIE3
KBIE2
KBIE1
KBIE0
= Unimplemented
KBI0
ACKK
VDD
VECTOR FETCH
DECODER
KEYF
RESET
.
KBIE0
CLR
Q
SYNCHRONIZER
CK
TO PULLUP ENABLE
.
KEYBOARD
INTERRUPT FF
KBI6
Keyboard
Interrupt
Request
IMASKK
MODEK
KBIE6
TO PULLUP ENABLE
166
MOTOROLA
If the MODEK bit is set, the keyboard interrupt pins are both falling edgeand low level-sensitive, and both of the following actions must occur to
clear a keyboard interrupt request:
The vector fetch or software clear and the return of all enabled keyboard
interrupt pins to logic 1 may occur in any order.
Technical Data
Keyboard Interrupt Module (KBI)
167
NOTE:
168
MOTOROLA
Address:
$001A
Bit 7
KEYF
Write:
Reset:
Bit 0
IMASKK
Read:
MODEK
ACKK
0
= Unimplemented
Technical Data
Keyboard Interrupt Module (KBI)
169
$001B
Bit 7
Bit 0
KBIE6
Read:
KBIE5
KBIE4
KBIE3
KBIE2
KBIE1
KBIE0
Write:
Reset:
Technical Data
170
MOTOROLA
Technical Data
Keyboard Interrupt Module (KBI)
171
Technical Data
172
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
15.3
15.6
Interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
15.7
15.2 Introduction
The computer operating properly (COP) module contains a free-running
counter that generates a reset if allowed to overflow. The COP module
helps software recover from runaway code. Prevent a COP reset by
clearing the COP counter periodically. The COP module can be disabled
through the COPD bit in the CONFIG1 register.
Technical Data
Computer Operating Properly (COP)
173
SIM
2OSCOUT
COP TIMEOUT
COPCTL WRITE
COP CLOCK
COP MODULE
6-BIT COP COUNTER
COPEN (FROM SIM)
COPD (FROM CONFIG1)
RESET
COPCTL WRITE
CLEAR
COP COUNTER
Technical Data
174
MOTOROLA
NOTE:
Service the COP immediately after reset and before entering or after
exiting stop mode to guarantee the maximum time before the first COP
counter overflow.
A COP reset pulls the RST pin low for 32 2OSCOUT cycles and sets
the COP bit in the reset status register (RSR). (See 7.8.2 Reset Status
Register (RSR).).
NOTE:
15.4.1 2OSCOUT
2OSCOUT is the oscillator output signal. 2OSCOUT frequency is equal
to the crystal frequency or the RC-oscillator frequency.
Technical Data
Computer Operating Properly (COP)
175
$001F
Bit 7
Bit 0
COPRS
LVID
SSREC
STOP
COPD
Read:
Write:
Reset:
= Reserved
Technical Data
176
MOTOROLA
$FFFF
Bit 7
Read:
Bit 0
Reset:
Write:
Unaffected by reset
15.6 Interrupts
The COP does not generate CPU interrupt requests.
Technical Data
Computer Operating Properly (COP)
177
Technical Data
178
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
16.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
16.4
16.5
16.2 Introduction
This section describes the low-voltage inhibit module (LVI), which
monitors the voltage on the VDD pin and generates a reset when the VDD
voltage falls to the LVI trip (LVITRIP) voltage.
16.3 Features
Features of the LVI module include the following:
Technical Data
Low Voltage Inhibit (LVI)
179
LVID
LVI RESET
LOW VDD
DETECTOR
LVT1
LVT0
$001E
Bit 7
Bit 0
IRQPUD
LVIT1
LVIT0
Reset:
Not affected
Not affected
POR:
= Reserved
Read:
Write:
180
MOTOROLA
Address:
$001F
Bit 7
Bit 0
COPRS
LVID
SSREC
STOP
COPD
Read:
Write:
Reset:
= Reserved
LVIT0
Trip Voltage(1)
Comments
VLVR3 (2.4V)
VLVR3 (2.4V)
VLVR5 (4.0V)
Reserved
Technical Data
Low Voltage Inhibit (LVI)
181
Technical Data
182
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
17.3
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
17.2 Introduction
This section describes the break module. The break module can
generate a break interrupt that stops normal program flow at a defined
address to enter a background program.
Technical Data
Break Module (BREAK)
183
Software writes a logic one to the BRKA bit in the break status and
control register.
Technical Data
184
MOTOROLA
IAB[15:8]
CONTROL
8-BIT COMPARATOR
BREAK ADDRESS REGISTER LOW
IAB[7:0]
Addr.
$FE00
Register Name
Read:
Break Status Register
Write:
(BSR)
Reset:
Read:
Break Flag Control
Register Write:
(BFCR)
Reset:
$FE03
$FE0C
Bit 7
1
SBSW
See note
Bit 0
R
Read:
Break Address low
Register Write:
(BRKL)
Reset:
Read:
Break Status and Control
$FE0E
Register Write:
(BRKSCR)
Reset:
Note: Writing a logic 0 clears SBSW.
Bit15
Bit14
Bit13
Bit12
Bit11
Bit10
Bit9
Bit8
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
BRKE
BRKA
= Unimplemented
Read:
Break Address High
Register Write:
(BRKH)
Reset:
$FE0D
BCFE
= Reserved
Technical Data
Break Module (BREAK)
185
Technical Data
186
MOTOROLA
$FE0E
Bit 7
BRKE
BRKA
Bit 0
Read:
Write:
Reset:
= Unimplemented
Technical Data
Break Module (BREAK)
187
$FE0C
Bit 7
Bit 0
Bit 15
14
13
12
11
10
Bit 8
Read:
Write:
Reset:
$FE0D
Bit 7
Bit 0
Bit 7
Bit 0
Read:
Write:
Reset:
$FE00
Bit 7
Read:
Bit 0
SBSW
Write:
Note(1)
Reset:
0
R
= Reserved
Technical Data
188
MOTOROLA
EQU
LOBYTE
EQU
SBSW,BSR, RETURN
TST
LOBYTE,SP
BNE
DOLO
DEC
HIBYTE,SP
DOLO
DEC
LOBYTE,SP
RETURN
PULH
RTI
; Restore H register.
Technical Data
Break Module (BREAK)
189
$FE03
Bit 7
Bit 0
BCFE
Read:
Write:
Reset:
0
R
= Reserved
190
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
18.3
18.4
18.5
18.6
18.7
18.8
18.9
18.2 Introduction
This section contains electrical and timing specifications.
Technical Data
Electrical Specifications
191
Electrical Specications
18.3 Absolute Maximum Ratings
Maximum ratings are the extreme limits to which the MCU can be
exposed without permanently damaging it.
NOTE:
Symbol
Value
Unit
Supply voltage
VDD
0.3 to +6.0
Input voltage
VIN
VDD +VHI
25
mA
Storage temperature
TSTG
55 to +150
IMVSS
100
mA
IMVDD
100
mA
NOTE:
1. Voltages referenced to VSS.
NOTE:
This device contains circuitry to protect the inputs against damage due
to high static voltages or electric fields; however, it is advised that normal
precautions be taken to avoid application of any voltage higher than
maximum-rated voltages to this high-impedance circuit. For proper
operation, it is recommended that VIN and VOUT be constrained to the
range VSS (VIN or VOUT) VDD. Reliability of operation is enhanced if
unused inputs are connected to an appropriate logic voltage level (for
example, either VSS or VDD.)
Technical Data
192
MOTOROLA
Electrical Specifications
Functional Operating Range
Symbol
Value
Unit
TA
40 to +125
40 to +85
VDD
5V 10%
3V 10%
Symbol
Value
Unit
70
70
70
70
C/W
C/W
C/W
C/W
Thermal resistance
20-Pin PDIP
20-Pin SOIC
28-Pin PDIP
28-Pin SOIC
JA
PI/O
User determined
Power dissipation(1)
PD
Constant(2)
PD x (TA + 273 C)
+ PD2 JA
W/C
TJ
TA + (PD JA)
TJM
100
NOTES:
1. Power dissipation is a function of temperature.
2. K constant unique to the device. K can be determined for a known TA and measured
PD. With this value of K, PD and TJ can be determined for any value of TA.
Technical Data
Electrical Specifications
193
Electrical Specications
18.6 5V DC Electrical Characteristics
Table 18-4. DC Electrical Characteristics (5V)
Characteristic(1)
Symbol
Min
Typ(2)
Max
Unit
VOH
VDD 0.8
VOL
0.4
VOL
0.5
IOL
10
19
25
mA
VIH
0.7 VDD
VDD
VIL
VSS
0.3 VDD
IDD
7
1
5
1
10
1.5
5.5
5
mA
mA
mA
A
IIL
10
Input current
IIN
Capacitance
Ports (as input or output)
COUT
CIN
12
8
pF
VPOR
100
mV
RPOR
0.035
V/ms
VDD +VHI
1.5 VDD
8.5
Pullup resistors(8)
PTD6, PTD7
RST, IRQ1, PTA0PTA6
RPU1
RPU2
1.8
16
3.3
26
4.8
36
k
k
VLVR5
3.6
4.0
4.4
Technical Data
194
MOTOROLA
Electrical Specifications
5V Control Timing
Symbol
Min
Typ(2)
Max
Unit
NOTES:
1. VDD = 4.5 to 5.5 Vdc, VSS = 0 Vdc, TA = TL to TH, unless otherwise noted.
2. Typical values reflect average measurements at midpoint of voltage range, 25 C only.
3. Run (operating) IDD measured using external square wave clock source. All inputs 0.2 V from rail. No dc loads. Less
than 100 pF on all outputs. CL = 20 pF on OSC2. All ports configured as inputs. OSC2 capacitance linearly affects
run IDD. Measured with all modules enabled.
4. Wait IDD measured using external square wave clock source (fOP = 4MHz); all inputs 0.2 V from rail; no dc loads;
less than 100 pF on all outputs. CL = 20 pF on OSC2; all ports configured as inputs; OSC2 capacitance linearly affects wait IDD.
5. STOP IDD measured with OSC1 grounded, no port pins sourcing current. LVI is disabled.
6. Maximum is highest voltage that POR is guaranteed.
7. If minimum VDD is not reached before the internal POR reset is released, RST must be driven low externally until
minimum VDD is reached.
8. RPU1 and RPU2 are measured at VDD = 5.0V
Symbol
Min
Max
Unit
fOP
MHz
tIRL
750
ns
NOTES:
1. VDD = 4.5 to 5.5 Vdc, VSS = 0 Vdc, TA = TL to TH; timing shown with respect to 20% VDD and 70% VSS, unless otherwise
noted.
2. Some modules may require a minimum frequency greater than dc for proper operation; see appropriate table for this information.
3. Minimum pulse width reset is guaranteed to be recognized. It is possible for a smaller pulse width to cause a reset.
Technical Data
Electrical Specifications
195
Electrical Specications
18.8 5V Oscillator Characteristics
Table 18-6. Oscillator Component Specications (5V)
Characteristic
Symbol
Min
Typ
Max
Unit
fOSCXCLK
10
32
MHz
fRCCLK
10
12
MHz
fOSCXCLK
dc
32
MHz
CL
C1
2 CL
C2
2 CL
RB
10 M
RS
RC oscillator external R
REXT
RC oscillator external C
CEXT
10
pF
NOTES:
1. No more than 10% duty cycle deviation from 50%
2. Consult crystal vendor data sheet
3. Not Required for high frequency crystals
14
12
CEXT = 10 pF
5V @ 25C
10
MCU
OSC1
8
6
VDD
4
REXT
CEXT
2
0
0
10
20
30
Resistor, REXT (k)
40
50
Technical Data
196
MOTOROLA
Electrical Specifications
3V DC Electrical Characteristics
Symbol
Min
Typ(2)
Max
Unit
VOH
VDD 0.4
VOL
0.4
VOL
0.5
IOL
12
mA
VIH
0.7 VDD
VDD
VIL
VSS
0.3 VDD
IDD
5
1
4
1
8
1.3
4.5
5
mA
mA
mA
A
IIL
10
Input current
IIN
Capacitance
Ports (as input or output)
COUT
CIN
12
8
pF
VPOR
100
mV
RPOR
0.035
V/ms
VDD +VHI
1.5 VDD
8.5
Pullup resistors(8)
PTD6, PTD7
RST, IRQ1, PTA0PTA6
RPU1
RPU2
1.8
16
3.3
26
4.8
36
k
k
VLVR3
2.0
2.4
2.69
Technical Data
Electrical Specifications
197
Electrical Specications
Table 18-7. DC Electrical Characteristics (3V)
Characteristic(1)
Symbol
Min
Typ(2)
Max
Unit
NOTES:
1. VDD = 2.7 to 3.3 Vdc, VSS = 0 Vdc, TA = TL to TH, unless otherwise noted.
2. Typical values reflect average measurements at midpoint of voltage range, 25 C only.
3. Run (operating) IDD measured using external square wave clock source. All inputs 0.2 V from rail. No dc loads. Less
than 100 pF on all outputs. CL = 20 pF on OSC2. All ports configured as inputs. OSC2 capacitance linearly affects
run IDD. Measured with all modules enabled.
4. Wait IDD measured using external square wave clock source (fOP = 4MHz); all inputs 0.2 V from rail; no dc loads;
less than 100 pF on all outputs. CL = 20 pF on OSC2; all ports configured as inputs; OSC2 capacitance linearly affects wait IDD.
5. STOP IDD measured with OSC1 grounded, no port pins sourcing current. LVI is disabled.
6. Maximum is highest voltage that POR is guaranteed.
7. If minimum VDD is not reached before the internal POR reset is released, RST must be driven low externally until
minimum VDD is reached.
8. RPU1 and RPU2 are measured at VDD = 5.0V
Symbol
Min
Max
Unit
fOP
MHz
tIRL
1.5
NOTES:
1. VDD = 2.7 to 3.3 Vdc, VSS = 0 Vdc, TA = TL to TH; timing shown with respect to 20% VDD and 70% VDD, unless otherwise
noted.
2. Some modules may require a minimum frequency greater than dc for proper operation; see appropriate table for this information.
3. Minimum pulse width reset is guaranteed to be recognized. It is possible for a smaller pulse width to cause a reset.
Technical Data
198
MOTOROLA
Electrical Specifications
3V Oscillator Characteristics
Symbol
Min
Typ
Max
Unit
fOSCXCLK
16
MHz
fRCCLK
12
MHz
fOSCXCLK
dc
16
MHz
CL
C1
2 CL
C2
2 CL
RB
10 M
RS
RC oscillator external R
REXT
RC oscillator external C
CEXT
10
pF
NOTES:
1. No more than 10% duty cycle deviation from 50%
2. Consult crystal vendor data sheet
3. Not Required for high frequency crystals
14
12
CEXT = 10 pF
3V @ 25C
10
MCU
OSC1
8
6
VDD
REXT
CEXT
2
0
0
10
20
30
Resistor, REXT (k)
40
50
Technical Data
Electrical Specifications
199
Electrical Specications
18.12 Typical Supply Currents
14
12
IDD (mA)
10
8
6
MC68HRC908xxx
5.5 V
3.3 V
2
0
0
4
5
6
fOP or fBUS (MHz)
Figure 18-3. Typical Operating IDD, with All Modules Turned On (25 C)
2
1.75
IDD (mA)
1.50
1.25
1
MC68HRC908xxx
0.75
0.5
5.5 V
3.3 V
0.25
0
0
4
5
fOP or fBUS (MHz)
Figure 18-4. Typical Wait Mode IDD, with ADC Turned On (25 C)
0.5
IDD (A)
0.4
0.3
0.2
MC68HRC908xxx
5.5 V
3.3 V
0.1
0
0
4
5
fOP or fBUS (MHz)
Figure 18-5. Typical Stop Mode IDD, with all Modules Disabled (25 C)
Technical Data
200
MOTOROLA
Electrical Specifications
ADC Characteristics
Symbol
Min
Max
Unit
Supply voltage
VDDAD
2.7
(VDD min)
5.5
(VDD max)
Input voltages
VADIN
VSS
VDD
Resolution
BAD
Bits
Absolute accuracy
AAD
0.5
1.5
LSB
Includes quantization
fADIC
0.5
1.048
MHz
Conversion range
RAD
VSS
VDD
Power-up time
tADPU
16
Conversion time
tADC
16
17
tAIC cycles
Sample time(1)
tADS
tAIC cycles
ZADI
00
01
Hex
VIN = VSS
Full-scale reading(3)
FADI
FE
FF
Hex
VIN = VDD
Input capacitance
CADI
(20) 8
pF
Not tested
Input leakage(3)
Port B/port D
Comments
tAIC cycles
NOTES:
1. Source impedances greater than 10 k adversely affect internal RC charging time during input sampling.
2. Zero-input/full-scale reading requires sufficient decoupling measures for accurate conversions.
3. The external system error caused by input leakage current is approximately equal to the product of R source and input
current.
Technical Data
Electrical Specifications
201
Electrical Specications
18.14 Memory Characteristics
Table 18-11. Memory Characteristics
Characteristic
Symbol
Min
Max
Unit
VRDR
1.3
MHz
fRead(1)
32k
8M
Hz
tErase(2)
ms
tMErase(3)
ms
tnvs
10
tnvh
tnvhl
100
tpgs
tPROG
30
40
trcv(4)
tHV(5)
ms
10k
cycles
10k
cycles
10
years
endurance(7)
1. fRead is defined as the frequency range for which the FLASH memory can be read.
2. If the page erase time is longer than tErase (Min), there is no erase-disturb, but it reduces the endurance of the
FLASH memory.
3. If the mass erase time is longer than tMErase (Min), there is no erase-disturb, but it reduces the endurance of
the FLASH memory.
4. trcv is defined as the time it needs before the FLASH can be read after turning off the high voltage charge pump,
by clearing HVEN to logic 0.
5. tHV is defined as the cumulative high voltage programming time to the same row before next erase.
tHV must satisfy this condition: tnvs + tnvh + tpgs + (tPROG 32) tHV max.
6. The minimum row endurance value specifies each row of the FLASH memory is guaranteed to work for at least
this many erase / program cycles.
7. The minimum row endurance value specifies each row of the FLASH memory is guaranteed to work for at least
this many erase / program cycles.
8. The FLASH is guaranteed to retain data over the entire operating temperature range for at least the minimum
time specified.
Technical Data
202
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
19.3
19.4
19.5
19.6
19.2 Introduction
This section gives the dimensions for:
The following figures show the latest package drawings at the time of
this publication. To make sure that you have the latest package
specifications, contact one of the following:
Motorola Mfax
Phone 602-244-6609
EMAIL rmfax0@email.sps.mot.com
Technical Data
Mechanical Specifications
203
Mechanical Specications
19.3 20-Pin PDIP
A
20
NOTES:
1. DIMENSIONING AND TOLERANCING PER ANSI
Y14.5M, 1982.
2. CONTROLLING DIMENSION: INCH.
3. DIMENSION L TO CENTER OF LEAD WHEN
FORMED PARALLEL.
4. DIMENSION B DOES NOT INCLUDE MOLD
FLASH.
11
10
B
L
DIM
A
B
C
D
E
F
G
J
K
L
M
N
SEATING
PLANE
M
N
E
G
J
D
20 PL
0.25 (0.010)
20 PL
0.25 (0.010)
T A
T B
INCHES
MIN
MAX
1.010
1.070
0.240
0.260
0.150
0.180
0.015
0.022
0.050 BSC
0.050
0.070
0.100 BSC
0.008
0.015
0.110
0.140
0.300 BSC
0_
15 _
0.020
0.040
MILLIMETERS
MIN
MAX
25.66
27.17
6.10
6.60
3.81
4.57
0.39
0.55
1.27 BSC
1.27
1.77
2.54 BSC
0.21
0.38
2.80
3.55
7.62 BSC
0_
15_
0.51
1.01
NOTES:
1. DIMENSIONING AND TOLERANCING PER
ANSI Y14.5M, 1982.
2. CONTROLLING DIMENSION: MILLIMETER.
3. DIMENSIONS A AND B DO NOT INCLUDE
MOLD PROTRUSION.
4. MAXIMUM MOLD PROTRUSION 0.150
(0.006) PER SIDE.
5. DIMENSION D DOES NOT INCLUDE
DAMBAR PROTRUSION. ALLOWABLE
DAMBAR PROTRUSION SHALL BE 0.13
(0.005) TOTAL IN EXCESS OF D DIMENSION
AT MAXIMUM MATERIAL CONDITION.
A
20
11
10X
P
0.010 (0.25)
10
20X
0.010 (0.25)
T A
J
S
F
R X 45 _
C
T
18X
SEATING
PLANE
DIM
A
B
C
D
F
G
J
K
M
P
R
MILLIMETERS
MIN
MAX
12.65
12.95
7.40
7.60
2.35
2.65
0.35
0.49
0.50
0.90
1.27 BSC
0.25
0.32
0.10
0.25
0_
7_
10.05
10.55
0.25
0.75
INCHES
MIN
MAX
0.499
0.510
0.292
0.299
0.093
0.104
0.014
0.019
0.020
0.035
0.050 BSC
0.010
0.012
0.004
0.009
0_
7_
0.395
0.415
0.010
0.029
Technical Data
204
MOTOROLA
Mechanical Specifications
28-Pin PDIP
28
NOTES:
1. POSITIONAL TOLERANCE OF LEADS (D), SHALL
BE WITHIN 0.25 (0.010) AT MAXIMUM MATERIAL
CONDITION, IN RELATION TO SEATING PLANE
AND EACH OTHER.
2. DIMENSION L TO CENTER OF LEADS WHEN
FORMED PARALLEL.
3. DIMENSION B DOES NOT INCLUDE MOLD FLASH.
15
DIM
A
B
C
D
F
G
H
J
K
L
M
N
14
A
N
SEATING
PLANE
MILLIMETERS
MIN
MAX
36.45
37.21
13.72
14.22
3.94
5.08
0.36
0.56
1.02
1.52
2.54 BSC
1.65
2.16
0.20
0.38
2.92
3.43
15.24 BSC
0
15
0.51
1.02
INCHES
MIN
MAX
1.435
1.465
0.540
0.560
0.155
0.200
0.014
0.022
0.040
0.060
0.100 BSC
0.065
0.085
0.008
0.015
0.115
0.135
0.600 BSC
0
15
0.020
0.040
-A15
28
14X
-B1
P
0.010 (0.25)
14
28X
0.010 (0.25)
T A
X 45
C
26X
-T-
SEATING
PLANE
F
J
DIM
A
B
C
D
F
G
J
K
M
P
R
MILLIMETERS
MIN
MAX
17.80
18.05
7.40
7.60
2.35
2.65
0.35
0.49
0.41
0.90
1.27 BSC
0.23
0.32
0.13
0.29
0
8
10.01
10.55
0.25
0.75
INCHES
MIN
MAX
0.701
0.711
0.292
0.299
0.093
0.104
0.014
0.019
0.016
0.035
0.050 BSC
0.009
0.013
0.005
0.011
0
8
0.395
0.415
0.010
0.029
Technical Data
Mechanical Specifications
205
Mechanical Specications
Technical Data
206
MOTOROLA
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
20.3
20.2 Introduction
This section contains ordering numbers for the MC68H(R)C908JL3,
MC68H(R)C908JK3, and MC68H(R)C908JK1.
Technical Data
Ordering Information
207
Ordering Information
20.3 MC Order Numbers
Table 20-1. MC Order Numbers
MC order number
MC68HRC908JL3CP
MC68HRC908JL3CDW
MC68HRC908JL3MP
MC68HRC908JL3MDW
MC68HC908JK3CP
MC68HC908JK3CDW
MC68HC908JK3MP
MC68HC908JK3MDW
FLASH memory
Package
4096 Bytes
MC68HC908JL3CP
MC68HC908JL3CDW
MC68HC908JL3MP
MC68HC908JL3MDW
Oscillator type
28-pin package
Crystal oscillator
RC oscillator
Crystal oscillator
4096 Bytes
MC68HRC908JK3CP
MC68HRC908JK3CDW
MC68HRC908JK3MP
MC68HRC908JK3MDW
MC68HC908JK1CP
MC68HC908JK1CDW
RC oscillator
20-pin package
Crystal oscillator
1536 Bytes
MC68HRC908JK1CP
MC68HRC908JK1CDW
RC oscillator
Notes:
C = 40 C to +85 C
M = 40 C to +125 C (available for VDD = 5V only)
P = Plastic dual in-line package (PDIP)
DW = Small outline integrated circuit package (SOIC)
Technical Data
208
MOTOROLA
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 specically
disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or
specications can and do vary in different applications and actual performance may vary over time. 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 ofcers, employees, subsidiaries, afliates, 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
are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Afrmative Action Employer.