S E M I C O N D U C T O R
CDP68HC05P1B,
CDP68HCL05P1B,
CDP68HSC05P1B
8-Bit Enhanced Microcontroller Series
Description
The CDP68HC05P1B HCMOS Microcomputer is a member
of the CDP68HC05 family of single chip microcomputers.
This 8-bit microcomputer unit (MCU) contains a CPU, 128
bytes of RAM, 2,320 bytes of masked ROM, a flexible 16-bit
timer with one input capture and one output compare, 20
bidirectional I/O lines and one input only line (two high cur-
rent outputs and eight mask programmable as interruptible
inputs), keypad scanning logic, a watchdog timer, a
maskable STOP instruction, and an on-chip oscillator. The
fully static design allows operation at frequencies down to
DC, further reducing the already low power consumption.
The CDP68HCL05P1B MCU device is a version of the
CDP68HC05P1B with low power consumption in the RUN,
WAIT, and STOP modes; and operation down to 2.4V. The
CDP68HSC05P1B MCU device is a high-speed version of
the CDP68HC05P1B with up to 8.0MHz operation.
The CDP68HC05P1B family supports the full CDP68HC05
instruction set. Development can be performed with tools
supplied by Harris or offered by numerous third party ven-
dors. Available tools include assemblers and C compilers.
NOTE: Unless otherwise stated,
CDP68HC05P1B
refers to the
entire family of P1B microcontrollers (HC, HCL, and HSC).
November 1997
Features
HARDWARE
• HCMOS Technology
• 8-Bit Architecture
• Power-Saving STOP, WAIT, and Data Retention Modes
- STOP Instruction can be Disabled via Mask Option
• Fully Static Operation
• On-Chip Memory
- 2,320 Bytes of ROM
- 128 Bytes of RAM
• ROM Security Feature
• 20 Bidirectional I/O Lines, 1 Input-Only Line
- 2 High Current Outputs (PC0 and PC1)
- 8 Interruptible Inputs (with Pull-Up Resistors) - Port A
- Schmitt Trigger Inputs on Port A
• Watchdog Timer (COP)
• Low Power Wake Up Timer
• Internal 16-Bit Timer
- 1 Timer Capture
- 1 Timer Compare
• Interrupts - External, Port A, Software, and Timer
• Master Reset and Power-On Reset
• On-Chip Oscillator with RC or Crystal Mask Options
• CDP68HC05P1B
- 4.2MHz Operating Frequency (2.1MHz Internal Bus
Frequency) at 5V; 2MHz at 3.0V
- Single 3.0V to 6.0V Supply (1.5V Data Retention)
• CDP68HCL05P1B
- Lower Supply Current, I
DD
, In RUN, WAIT and STOP
Modes at 5.5V, 3.3V and 2.4V
- Single 2.4V to 6.0V Supply (1.5V Data Retention)
• CDP68HSC05P1B
- 8.0MHz Operating Frequency (4.0MHz Internal Bus
Frequency) at 5.0V; 4.2MHz at 3.3V
- Single 3.0V to 6.0V Supply (1.5V Data Retention)
SOFTWARE
• Supports Full CDP68HC05 Instruction Set
• 8 x 8 Unsigned Multiply Instruction
• True Bit-Manipulation
• Two Power Saving Standby Modes
• Memory Mapped I/O
Table of Contents
Ordering Information.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Block Diagram
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinouts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Electrical and Timing Specifications.
. . . . . . . . . . . . . . . . . . 4
Typical Performance Curves
. . . . . . . . . . . . . . . . . . . . . . . . 15
Functional Pin Description
. . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Input/Output Programming.
. . . . . . . . . . . . . . . . . . . . . . . . . 17
Memory.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Memory Map
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Resets, Interrupts and Low Power Modes
. . . . . . . . . . . . . 21
Hardware/Power-On Resets . . . . . . . . . . . . . . . . . . . . . . . . 21
COP System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Low Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Wake Up Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Programmable Timer.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Output Compare Register . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Input Capture Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Package Outline Dimensions
. . . . . . . . . . . . . . . . . . . . . . . . 32
CDP68HC05 Family Feature Comparison
. . . . . . . . . . . . . . .35
Opcode Map.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
I/O, Control, Status, and Data Register Definitions
. . . . . . 37
Ordering Information Sheet
. . . . . . . . . . . . . . . . . . . . . . . . . 39
CAUTION: These devices are sensitive to electrostatic discharge. Users should follow proper IC Handling Procedures.
Copyright
©
Harris Corporation 1997
File Number
4408.1
1
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
Ordering Information
PART NUMBER
CDP68HC05P1BM20
CDP68HC05P1BE28
CDP68HC05P1BM28
CDP68HCL05P1BM20
CDP68HCL05P1BE28
CDP68HCL05P1BM28
CDP68HSC05P1BM20
CDP68HSC05P1BE28
CDP68HSC05P1BM28
TEMP.
RANGE (
o
C)
-40 to 85
-40 to 85
-40 to 85
0 to 70
0 to 70
0 to 70
0 to 85
0 to 85
0 to 85
PACKAGE
20 Ld SOIC
28 Ld PDIP
28 Ld SOIC
20 Ld SOIC
28 Ld PDIP
28 Ld SOIC
20 Ld SOIC
28 Ld PDIP
28 Ld SOIC
PKG.
NO.
M20.3
E28.6
M28.3
M20.3
E28.6
M28.3
M20.3
E28.6
M28.3
Regardless of the medium used to transfer the data, con-
tents of all of the User ROM regions of the memory map of
the particular microcontroller should be specified. This
includes any Page 0 User ROM and User Reset/Interrupt
Vectors. Data should not be specified for the Self Check
ROM space of a device. All unused locations should either
not be specified (S-Record and source files) or specified as
$00 (EPROM/EEPROM).
Procedure for Submitting Data
When submitting data via a physical medium such as a
floppy disk or EPROM, the appropriate “Ordering Informa-
tion Sheet” on the following pages must be completed and
submitted with the data.
When utilizing the Harris Customer Pattern Retrieval System
(modem upload) the customer will be prompted for the same
information as that specified on the “Ordering Information
Sheet”.
If the data is submitted via email, the message should
include the same information as that specified on the “Order-
ing Information Sheet”.
Harris Customer Pattern Retrieval System
To access the Harris Customer Pattern Retrieval System,
you must first obtain an account ID and password from your
Harris sales representative. The system is accessed by dial-
ing 1-908-685-6541. It is presently set to run with baud rates
up to 2400 baud, with 8 data bits, 1 stop bit, and no parity bit.
The data transfer is done using text mode Kermit transfers.
NOTE: Pin number references throughout this specification refer to
the 28 lead DIP/SOIC. See pinouts for cross reference.
ROM Ordering Information
The CDP68HC05P1B family of microcontrollers contains a
mask programmed ROM. The contents of this ROM is per-
sonalized to meet a customer’s code requirements during
manufacturing of the ICs. The code is programmed via pho-
tomasking techniques. Semiconductor manufacturing is a
batch process, and all microcontrollers manufactured in a
given lot (a batch) will contain identical ROM code.
Harris generates a customer’s ROM mask from an ASCII
representation of the desired ROM contents together with
other specific information. The following pages contain
sheets which can be used to provide the required informa-
tion when ordering a masked ROM microcontroller.
Data Format Options
The ROM data can be submitted in various formats. The fol-
lowing list summarizes the principal formats which Harris will
accept. The list is in order of preference, with S-Record for-
matted data files being the preferred format.
• S-Record Formatted Hex Data File via Modem Upload
• S-Record Formatted Hex Data File on Floppy Disk
• S-Record Formatted Hex Data File via email
• 6805 Assembly Language Source File on Floppy Disk
• Contents of a 27XX type EPROM/EEPROM
2
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
Pinouts
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
28 LEAD (SOIC, PDIP)
TOP VIEW
RESET
IRQ
PA7
PA6
PA5
PA4
PA3
PA2
PA1
1
2
3
4
5
6
7
8
9
28 V
DD
27 OSC1
26 OSC2
25 TCAP/PD7
24 TCMP
23 PD5
22 PC0
21 PC1
20 PC2
19 PC3
18 PC4
17 PC5
16 PC6
15 PC7
IRQ
PA7
PA6
PA5
PA4
PA3
PA2
PA1
PA0
1
2
3
4
5
6
7
8
9
20 RESET
19 V
DD
18 OSC1
17 OSC2
16 PC0
15 PC1
14 PC2
13 PC3
12 PC4
11 PC5
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
20 LEAD (SOIC Only)
TOP VIEW
PA0 10
PB5 11
PB6 12
PB7 13
V
SS
14
V
SS
10
NOTE: Low EMI Pinouts available. See Harris Technical Brief TB354.
Block Diagram
PD5
PD7/TCAP
PORT
D
REG
DATA
DIR
REG
OSC1
INTERNAL
PROCESSOR
CLOCK
OSC2
TCMP
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
TIMER SYSTEM
OSCILLATOR
AND
÷
2
COP SYSTEM
WAKE UP TIMER
ACCUMULATOR
PORT
C
REG
DATA
DIR
REG
8
8
5
6
5
8
INDEX
REGISTER
CONDITION CODE
REGISTER
STACK
POINTER
A
X
CC
SP
CPU
CONTROL
RESET
IRQ
CPU
DATA
DIR
REG
ALU
PORT
B
REG
PB5
PB6
PB7
PORT
A
REG
DATA
DIR
REG
PROGRAM
COUNTER HIGH PCH
PROGRAM
COUNTER LOW
PCL
2320 x 8
ROM
128 x 8
STATIC RAM
3
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
Absolute Maximum Ratings
Supply Voltage, V
DD
. . . . . . . . . . . . . . . . . . . . . . . . . . . -0.5V to +7V
Input Voltage, V
IN
. . . . . . . . . . . . . . . . . . . V
SS
- 0.3V to V
DD
+ 0.3V
Self-Check Mode (IRQ Pin Only), V
IN
. . .V
SS
- 0.3V to 2 x V
DD
+ 0.3V
Current Drain Per Pin Excluding V
DD
and V
SS
, I . . . . . . . . . . . 40mA
Thermal Information
Thermal Resistance (Typical, Note 1)
θ
JA
(
o
C/W)
28 Ld PDIP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
60
20 Ld SOIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
110
28 Ld SOIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
75
Maximum Junction Temperature . . . . . . . . . . . . . . . . . . . . . . . 150
o
C
Maximum Storage Temperature Range (T
STG
) . . . .-65
o
C to 150
o
C
Maximum Lead Temperature (Soldering 10s) . . . . . . . . . . . . . 300
o
C
(SOIC - Lead Tips Only)
Operating Conditions
Operating Voltage Range . . . . . . . . . . . . . . . . . . . . . +1.8V to +6.0V
Operating Temperature Range . . . . . . . . . . . . . . . . . -55
o
C to 125
o
C
CDP68HC05P1B . . . . . . . . . . . . . . . . . . . . . . . . . . -40
o
C to 85
o
C
CDP68HCL05P1B . . . . . . . . . . . . . . . . . . . . . . . . . . .0
o
C to 70
o
C
CDP68HSC05P1B . . . . . . . . . . . . . . . . . . . . . . . . . . .0
o
C to 85
o
C
Input High Voltage . . . . . . . . . . . . . . . . . . . . . . . (0.8 x V
DD
) to V
DD
CAUTION: Stresses above those listed in “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress only rating and operation
of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied.
NOTE:
1.
θ
JA
is measured with the component mounted on an evaluation PC board in free air.
DC Electrical Specifications
PARAMETER
CDP68HC05P1B
Output Voltage
HC Product Type
SYMBOL
CONDITIONS
MIN
TYP
MAX
UNITS
V
DD
= 5V
±10%,
V
SS
= 0V, T
A
= -40
o
C to 85
o
C (Note 2)
V
OL
V
OH
I
LOAD
< 10µA
-
V
DD
- 0.1
-
-
0.1
-
V
V
Output High Voltage
PA0-7. PB5-7, PC2-7, PD5
PC0-1
Output Low Voltage
PA0-7. PB5-7, PC2-7, PD5
PC0-1
Input High Voltage
PA0-7, PB5-7, PC0-7, PD5, PD7/TCAP,
RESET, IRQ, OSC1
Input Low Voltage
PA0-7, PB5-7, PC0-7, PD5, PD7/TCAP,
RESET, IRQ, OSC1
Data Retention Mode
Supply Current
RUN (Note 9)
WAIT (Notes 10, 12)
STOP (Note 11)
STOP with Wake Up Timer Enabled
Wake Up Timer RC Oscillator Frequency
I/O Ports Hi-Z Leakage Current:
PA0-7. PB5-7, PC0-7, PD5
Input Current: RESET, IRQ, OSC1, TCAP/PD7
Capacitance Ports (As Input or Output, Note 3)
RESET, IRQ, OSC1
I
IL
I
IN
C
OUT
C
IN
-
-
-
-
-
-
-
-
±10
±1
12
8
µA
µA
pF
pF
I
DD
I
DD
I
DD
I
DD
f
RCO
f
OSC
= 4.0MHz
External Square Wave
T
A
= 25
o
C
T
A
= 25
o
C
T
A
= 25
o
C
-
-
-
-
-
TBD
TBD
1
10
13
TBD
TBD
8
-
-
mA
mA
µA
µA
kHz
V
IL
V
RM
T
A
= 0
o
C to 70
o
C
V
SS
1.5
-
-
0.2•V
DD
-
V
V
V
IH
0.7•V
DD
-
V
DD
V
V
OL
V
OL
I
LOAD
= 1.6mA
I
LOAD
= 15.0mA
-
-
-
-
0.4
0.4
V
V
V
OH
V
OH
I
LOAD
= -0.8mA
I
LOAD
= -5.0mA
V
DD
- 0.8
V
DD
- 0.8
-
-
-
-
V
V
4
CDP68HC05P1B, CDP68HCL05P1B, CDP68HSC05P1B
DC Electrical Specifications
PARAMETER
Input Source Current: PA0-7 Interrupts
HC Product Type
SYMBOL
I
IH
(Continued)
CONDITIONS
V
IN
≤
V
IL
(Port A)
V
IN
≥
V
IH
(Port A)
MIN
TBD
TBD
-
0.1•V
DD
TYP
-
-
0.5
1.0
MAX
TBD
TBD
-
0.5•V
DD
UNITS
µA
µA
V
V
Input Hysteresis Voltage: PA0-7
Input Hysteresis Voltage: RESET, IRQ, OSC1,
TCAP
CDP68HC05P1B
Output Voltage
V
HYS
V
HYS
V
DD
= 3.3V
±10%,
V
SS
= 0V, T
A
= 0
o
C to 70
o
C (Note 2)
V
OL
V
OH
I
LOAD
< 10µA
-
V
DD
- 0.1
-
-
0.1
-
V
V
Output High Voltage
PA0-7. PB5-7, PC2-7, PD5
PC0-1
Output Low Voltage
PA0-7. PB5-7, PC2-7, PD5
PC0-1
Input High Voltage
PA0-7, PB5-7, PC0-7, PD5, PD7/TCAP,
RESET, IRQ, OSC1
Input Low Voltage
PA0-7, PB5-7, PC0-7, PD5, PD7/TCAP,
RESET, IRQ, OSC1
Data Retention Mode
Supply Current
RUN (Note 9)
WAIT (Notes 10, 12)
STOP (Note 11)
STOP with Wake Up Timer Enabled
Wake Up Timer RC Oscillator Frequency
I/O Ports Hi-Z Leakage Current:
PA0-7. PB5-7, PC0-7, PD5
Input Current: RESET, IRQ, OSC1, TCAP/PD7
Capacitance Ports (As Input or Output, Note 3)
RESET, IRQ, OSC1
Input Source Current: PA0-7 Interrupts
I
IL
I
IN
C
OUT
C
IN
I
IH
V
IN
≤
V
IL
(Port A)
V
IN
≥
V
IH
(Port A)
Input Hysteresis Voltage: PA0-7
Input Hysteresis Voltage: RESET, IRQ, OSC1,
TCAP
NOTES:
2. This device contains circuitry to protect the inputs against damage due to high static voltages of 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 V
IN
and V
OUT
be constrained to the range V
SS
< (V
IN
or V
OUT
)<V
DD
. Reliability of operation
is enhanced if unused inputs except OSC2 are connected to an appropriate logic voltage level (e.g., either V
SS
or V
DD
).
3. Includes ports used as input/output pins; Ports used as input only pins, Ports used as output only pins.
V
HYS
V
HYS
-
-
-
-
TBD
TBD
-
0.1•V
DD
-
-
-
-
-
-
0.5
1.0
±10
±1
12
8
TBD
TBD
-
0.5•V
DD
µA
µA
pF
pF
µA
µA
V
V
I
DD
I
DD
I
DD
I
DD
f
RCO
f
OSC
= 4.0MHz
External Square Wave
T
A
= 25
o
C
T
A
= 25
o
C
T
A
= 25
o
C
-
-
-
-
-
TBD
TBD
1
10
13
TBD
TBD
8
-
-
mA
mA
µA
µA
kHz
V
IL
V
RM
T
A
= 0
o
C to 70
o
C
V
SS
1.5
-
-
0.2•V
DD
-
V
V
V
IH
0.7•V
DD
-
V
DD
V
V
OL
V
OL
I
LOAD
= 0.4mA
I
LOAD
= 6.0mA
-
-
-
-
0.3
0.3
V
V
V
OH
V
OH
I
LOAD
= -0.2mA
I
LOAD
= -6.0mA
V
DD
- 0.3
V
DD
- 0.3
-
-
-
-
V
V
5