HC05J5GRS [ETC]

68HC05J5 General Release Specification ; 68HC05J5常规版本规格\n
HC05J5GRS
型号: HC05J5GRS
厂家: ETC    ETC
描述:

68HC05J5 General Release Specification
68HC05J5常规版本规格\n

文件: 总69页 (文件大小:385K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
HC05J5GRS/H  
REV 1.1  
68HC05J5  
SPECIFICATION  
(General Release)  
© December 11, 1996  
Technical Operations Taiwan  
CSIC Group  
Motorola reserves the right to make changes without further notice to any products herein  
to improve reliability, function or design. Motorola does not assume any liability arising out  
of the application or use of any product or circuit described herein; neither does it convey  
any license under its patent rights nor the rights of others. Motorola products are not  
designed, intended, or authorized for use as components in systems intended for surgical  
implant into the body, or other applications intended to support or sustain life, or for any  
other application in which the failure of the Motorola product could create a situation  
where personal injury or death may occur. Should Buyer purchase or use Motorola  
products for any such unintended or unauthorized application, Buyer shall indemnify and  
hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors  
harmless against all claims, costs, damages, and expenses, and reasonable attorney  
fees arising out of, directly or indirectly, any claim of personal injury or death associated  
with such unintended or unauthorized use, even if such claim alleges that Motorola was  
negligent regarding the design or manufacture of the part.  
Motorola, Inc., 1996  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
TABLE OF CONTENTS  
Page  
Section  
SECTION 1  
GENERAL DESCRIPTION  
1.1  
1.2  
1.3  
1.3.1  
1.3.2  
1.3.3  
1.3.4  
1.3.5  
1.3.6  
FEATURES...................................................................................................... 1-1  
MASK OPTIONS.............................................................................................. 1-2  
FUNCTIONAL PIN DESCRIPTION.................................................................. 1-4  
VDD AND VSS ............................................................................................ 1-4  
OSC1, OSC2/R............................................................................................ 1-4  
RESET......................................................................................................... 1-6  
IRQ .............................................................................................................. 1-6  
PA0-PA7...................................................................................................... 1-6  
PB0-PB5...................................................................................................... 1-7  
SECTION 2  
MEMORY  
2.1  
2.2  
2.3  
2.4  
MEMORY MAP ................................................................................................ 2-1  
I/O AND CONTROL REGISTERS ................................................................... 2-2  
RAM ................................................................................................................. 2-2  
ROM................................................................................................................. 2-2  
SECTION 3  
CENTRAL PROCESSING UNIT  
3.1  
REGISTERS .................................................................................................... 3-1  
Accumulator (A)........................................................................................... 3-2  
Index Register (X)........................................................................................ 3-2  
Stack Pointer (SP) ....................................................................................... 3-2  
Program Counter (PC)................................................................................. 3-2  
Condition Code Register (CCR) .................................................................. 3-3  
3.1.1  
3.1.2  
3.1.3  
3.1.4  
3.1.5  
SECTION 4  
INTERRUPTS  
4.1  
4.2  
4.3  
4.4  
4.4.1  
4.4.2  
4.4.3  
4.4.4  
CPU INTERRUPT PROCESSING................................................................... 4-1  
RESET INTERRUPT SEQUENCE .................................................................. 4-2  
SOFTWARE INTERRUPT (SWI)..................................................................... 4-3  
HARDWARE INTERRUPTS ............................................................................ 4-3  
External Interrupt (IRQ) ............................................................................... 4-3  
IRQ Control/Status Register (ICSR), $0A.................................................... 4-4  
Optional External Interrupts (PA0-PA3)....................................................... 4-6  
Timer Interrupt (TIMER)............................................................................... 4-6  
MC68HC05J5  
REV 1.1  
MOTOROLA  
i
GENERAL RELEASE SPECIFICATION December 11, 1996  
TABLE OF CONTENTS  
Section  
Page  
SECTION 5  
RESETS  
5.1  
EXTERNAL RESET (RESET).......................................................................... 5-1  
5.2  
INTERNAL RESETS........................................................................................ 5-1  
Power-On Reset (POR)............................................................................... 5-1  
Computer Operating Properly Reset (COPR).............................................. 5-2  
Illegal Address Reset (ILADR)..................................................................... 5-2  
Low Voltage Reset (LVR) ............................................................................ 5-2  
5.2.1  
5.2.2  
5.2.3  
5.2.4  
SECTION 6  
MODES OF OPERATION  
6.1  
6.2  
6.3  
6.4  
6.4.1  
6.4.2  
6.5  
MODE ENTRY ................................................................................................. 6-1  
SINGLE-CHIP MODE (SCM)........................................................................... 6-1  
SELF-CHECK MODE....................................................................................... 6-2  
LOW-POWER MODES.................................................................................... 6-2  
STOP Instruction ......................................................................................... 6-2  
WAIT Mode.................................................................................................. 6-4  
DATA-RETENTION MODE.............................................................................. 6-4  
COP WATCHDOG TIMER CONSIDERATIONS ............................................. 6-5  
6.6  
SECTION 7  
INPUT/OUTPUT PORTS  
7.1  
7.2  
SLOW OUTPUT FALLING-EDGE TRANSITION............................................. 7-1  
PORT A............................................................................................................ 7-1  
Port A Data Register.................................................................................... 7-2  
Port A Data Direction Register..................................................................... 7-2  
Port A Pull-down/up Register....................................................................... 7-3  
Port A Drive Capability................................................................................. 7-3  
Port A I/O Pin Interrupts............................................................................... 7-3  
PORT B............................................................................................................ 7-4  
Port B Data Register.................................................................................... 7-5  
Port B Data Direction Register..................................................................... 7-5  
Port B Pull-down/up Register....................................................................... 7-6  
I/O PORT PROGRAMMING ............................................................................ 7-6  
Pin Data Direction........................................................................................ 7-6  
Output Pin.................................................................................................... 7-6  
Input Pin....................................................................................................... 7-7  
I/O Pin Transitions ....................................................................................... 7-7  
I/O Pin Truth Tables..................................................................................... 7-7  
7.2.1  
7.2.2  
7.2.3  
7.2.4  
7.2.5  
7.3  
7.3.1  
7.3.2  
7.3.3  
7.4  
7.4.1  
7.4.2  
7.4.3  
7.4.4  
7.4.5  
MOTOROLA  
ii  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
TABLE OF CONTENTS  
Page  
Section  
SECTION 8  
MULTI-FUNCTION TIMER  
8.1  
TIMER REGISTERS ........................................................................................ 8-2  
Timer Counter Register (TCR), $09............................................................. 8-2  
Timer Control/status Register (TCSR), $08................................................. 8-3  
COP WATCHDOG TIMER............................................................................... 8-4  
OPERATION DURING STOP MODE .............................................................. 8-5  
OPERATION DURING WAIT/HALT MODE..................................................... 8-5  
8.1.1  
8.1.2  
8.2  
8.3  
8.4  
SECTION 9  
INSTRUCTION SET  
9.1  
9.2  
9.3  
9.4  
9.5  
9.6  
9.6.1  
9.6.2  
9.6.3  
9.6.4  
9.6.5  
9.6.6  
9.6.7  
9.6.8  
9.6.9  
REGISTER/MEMORY INSTRUCTIONS.......................................................... 9-1  
READ-MODIFY-WRITE INSTRUCTIONS ....................................................... 9-2  
BRANCH INSTRUCTIONS.............................................................................. 9-2  
BIT MANIPULATION INSTRUCTIONS............................................................ 9-3  
CONTROL INSTRUCTIONS............................................................................ 9-3  
ADDRESSING MODES ................................................................................... 9-3  
Immediate.................................................................................................... 9-4  
Direct ........................................................................................................... 9-4  
Extended...................................................................................................... 9-4  
Relative........................................................................................................ 9-4  
Indexed, No Offset....................................................................................... 9-4  
Indexed, 8-bit Offset .................................................................................... 9-5  
Indexed, 16-bit Offset .................................................................................. 9-5  
Bit Set/Clear................................................................................................. 9-5  
Bit Test and Branch ..................................................................................... 9-5  
9.6.10 Inherent........................................................................................................ 9-5  
SECTION 10  
ELECTRICAL SPECIFICATIONS  
10.1 MAXIMUM RATINGS..................................................................................... 10-1  
10.2 THERMAL CHARACTERISTICS................................................................... 10-1  
10.3 DC ELECTRICAL CHARACTERISTICS........................................................ 10-2  
10.4 CONTROL TIMING........................................................................................ 10-3  
SECTION 11  
MECHANICAL SPECIFICATION  
11.1 16-PIN PLASTIC DUAL-IN-LINE PACKAGE (PDIP) ..................................... 11-1  
11.2 16-PIN SMALL OUTLINE INTERGRATED CIRCUIT (SOIC)........................ 11-2  
11.3 20-PIN PLASTIC DUAL-IN-LINE PACKAGE (PDIP) ..................................... 11-2  
11.4 20-PIN SMALL OUTLINE INTERGRATED CIRCUIT (SOIC)........................ 11-3  
MC68HC05J5  
REV 1.1  
MOTOROLA  
iii  
GENERAL RELEASE SPECIFICATION December 11, 1996  
TABLE OF CONTENTS  
Section  
Page  
MOTOROLA  
iv  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
LIST OF FIGURES  
Figure  
Title  
Page  
1-1  
1-2  
1-3  
1-4  
2-1  
2-2  
2-3  
2-4  
3-1  
4-1  
4-2  
6-1  
7-1  
7-2  
7-3  
8-1  
8-2  
8-3  
8-4  
MC68HC05J5 Block Diagram ......................................................................... 1-2  
Pin Assignments for 16-Pin Package............................................................... 1-3  
Pin Assignments for 20-Pin Package............................................................... 1-3  
Oscillator Connections ..................................................................................... 1-5  
MC68HC05J5 Memory Map............................................................................ 2-1  
I/O Registers Memory Map ............................................................................. 2-2  
I/O Registers $0000-$000F............................................................................. 2-3  
I/O Registers $0010-$001F............................................................................. 2-4  
MC68HC05 Programming Model..................................................................... 3-1  
Interrupt Processing Flowchart ........................................................................ 4-2  
IRQ Status & Control Register ......................................................................... 4-4  
STOP/HALT/WAIT Flowcharts......................................................................... 6-3  
Port B Data Direction Register......................................................................... 7-1  
Port A I/O Circuitry ........................................................................................... 7-2  
Port B I/O Circuitry ........................................................................................... 7-4  
Multi-Function Timer Block Diagram................................................................ 8-1  
Timer Counter Register.................................................................................... 8-2  
Timer Control/Status Register (TCSR)............................................................. 8-3  
COP Watchdog Timer Location ....................................................................... 8-5  
MC68HC05J5  
REV 1.1  
MOTOROLA  
v
GENERAL RELEASE SPECIFICATION December 11, 1996  
LIST OF FIGURES  
Figure  
Title  
Page  
MOTOROLA  
vi  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
LIST OF TABLES  
Table  
Title  
Page  
4-1  
6-1  
6-2  
7-1  
7-2  
8-1  
Vector Address for Interrupts and Reset.......................................................... 4-1  
Mode Select Summary..................................................................................... 6-1  
COP Watchdog Timer Recommendations....................................................... 6-5  
Port A I/O Pin Functions................................................................................... 7-7  
Port B I/O Pin Functions................................................................................... 7-7  
RTI Rates and COP Reset Times.................................................................... 8-4  
MC68HC05J5  
REV 1.1  
MOTOROLA  
vii  
GENERAL RELEASE SPECIFICATION December 11, 1996  
LIST OF TABLES  
Table  
Title  
Page  
MOTOROLA  
viii  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 1  
GENERAL DESCRIPTION  
The MC68HC05J5 HCMOS Microcontroller is a member of the MC68HC05  
Family of low-cost single-chip 8-bit Microcontroller Units (MCUs). The  
MC68HC05J5 is an enhanced version of the MC68HC05J1A, which includes high  
sink current port pins, slow output transition port pins, an extra interrupt on a port  
pin, low-voltage-reset, and a tight tolerance RC oscillator option.  
The MC68HC05J5 is available in 20-pin and 16-pin packages. (The 16-pin  
package has four less I/O port lines than the 20-pin package.)  
Although the MC68HC05J5 is an enhanced version of the MC68HC05J1A, their  
pin assignments are different.  
1.1  
FEATURES  
Industry standard M68HC05 CPU core  
Fully static operation with no minimum clock speed  
1240 bytes of user ROM  
64 bytes of user RAM  
14 bidirectional I/O pins  
On-chip Oscillator: Crystal/Resonator Oscillator or  
RC Oscillator with only one external resistor required  
Low Voltage Reset (LVR)  
Hardware mask and flag for external interrupts  
15-bit Multi-Function Timer  
Computer Operating Properly (COP) watchdog  
Power saving STOP and WAIT modes  
Illegal Address Reset (ILADR)  
Available in 16-pin PDIP, 16-pin SOIC,  
20-pin PDIP, and 20-pin SOIC packages  
MC68HC05J5  
REV 1.1  
GENERAL DESCRIPTION  
MOTOROLA  
1-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
1.2  
MASK OPTIONS  
The following mask options are available:  
MASK  
OPTION  
On-chip oscillator  
[Crystal/Resonator] or [RC]  
[Connected] or [Disconnected]  
[Enabled] or [Disabled]  
Crystal/resonator feedback resistor  
STOP instruction convert to WAIT  
PA0-PA3 external interrupt capability  
External interrupt pins (IRQ, PA0-PA3)  
Port A and Port B pull-down/pull-up resistors  
COP Watchdog Timer  
[Enabled] or [Disabled]  
[Edge-triggered] or [Edge and level triggered]  
[Connected] or [Disconnected]  
[Enabled] or [Disabled]  
Low Voltage Reset  
[Enabled] or [Disabled]  
OSC1 OSC2/R  
IRQ  
RESET  
PA0  
PA1①  
PA2①  
PA3①  
PA4②  
PA5②  
PA6③  
PA7④  
CORE  
TIMER  
(COP)  
OSCILLATOR  
AND DIVIDE  
BY 2  
PORT  
A
REG  
DATA  
DIR  
REG  
LOW  
VOLTAGE  
RESET  
CPU CONTROL  
68HC05 CPU  
ALU  
PB0  
PB1⑤  
PB2⑥  
PB3⑦  
PB4⑦  
PB5⑦  
PORT  
B
REG  
DATA  
DIR  
REG  
ACCUM  
INDEX REG  
STK PTR  
CPU REGISTERS  
0 0 0 0 0 0 0 0 1 1  
PROGRAM COUNTER  
: External edge interrupt capability  
: 8 mA current sink  
COND CODE REG 1 1 1 H I N Z C  
: Open-drained with internal pull-up and  
8 mA current sink  
VDD  
: External interrupt capability, open-drained  
with internal pull-up and 8 mA current sink  
VSS  
: 25 mA current sink, open-drained  
with internal pull-up  
: 25 mA current sink open-drained with  
internal pull-up and not bonded out in  
16-pin package  
1240 bytes  
ROM  
64 bytes  
RAM  
: not bonded out in 16-pin package  
Figure 1-1. MC68HC05J5 Block Diagram  
MOTOROLA  
1-2  
GENERAL DESCRIPTION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
OSC2/R  
OSC1  
RESET  
PA7  
PB1  
1
2
3
4
5
6
7
8
16  
15  
14  
13  
12  
11  
10  
9
VDD  
VSS  
IRQ  
PA0  
PA1  
PA2  
PA3  
PA6  
PA5  
PA4  
PB0  
Figure 1-2. Pin Assignments for 16-Pin Package  
PB3  
OSC2/R  
OSC1  
RESET  
PA7  
PB2  
PB1  
1
2
3
4
5
6
20  
19  
18  
17  
16  
15  
14  
13  
VDD  
VSS  
IRQ  
PA0  
PA1  
PA2  
PA6  
PA5  
7
PA4  
8
PB0  
PB4  
9
PA3  
PB5  
12  
11  
10  
Figure 1-3. Pin Assignments for 20-Pin Package  
MC68HC05J5  
REV 1.1  
GENERAL DESCRIPTION  
MOTOROLA  
1-3  
 
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
1.3  
FUNCTIONAL PIN DESCRIPTION  
The following paragraphs give a description of the general function of each pin  
assigned in Figure 1-2 and Figure 1-3.  
1.3.1 V AND V  
DD  
SS  
Power is supplied to the MCU through V  
and V . V  
is the positive supply,  
DD  
SS DD  
and V is ground. The MCU operates from a single power supply.  
SS  
Very fast signal transitions occur on the MCU pins. The short rise and fall times  
place very high short-duration current demands on the power supply. To prevent  
noise problems, special care should be taken to provide good power supply  
bypassing at the MCU by using bypass capacitors with good high-frequency  
characteristics that are positioned as close to the MCU as possible. Bypassing  
requirements vary, depending on how heavily the MCU pins are loaded.  
1.3.2 OSC1, OSC2/R  
The OSC1 and OSC2/R pins are the connections for the on-chip oscillator. The  
OSC1 and OSC2/R pins can accept the following sets of components:  
1. A crystal as shown in Figure 1-4(a)  
2. A ceramic resonator as shown in Figure 1-4(a)  
3. An external resistor as shown in Figure 1-4(b)  
4. An external clock signal as shown in Figure 1-4(c)  
The frequency, f  
, of the oscillator or external clock source is divided by two to  
OSC  
produce the internal operating frequency, f . The type of oscillator is selected by  
OP  
a mask option. An internal 2Mresistor may be selected between OSC1 and  
OSC2/R by a mask option (crystal/ceramic resonator mode only).  
If the RC oscillator option is selected, OSC1 pin should be connected to a known  
logic level, either one or zero.  
1.3.2.1 Crystal Oscillator  
The circuit in Figure 1-4(a) shows a typical oscillator circuit for an AT-cut, parallel  
resonant crystal. The crystal manufacturer’s recommendations should be  
followed, as the crystal parameters determine the external component values  
required to provide maximum stability and reliable start-up. The load capacitance  
values used in the oscillator circuit design should include all stray capacitances.  
The crystal and components should be mounted as close as possible to the pins  
for start-up stabilization and to minimize output distortion. An internal start-up  
resistor of approximately 2 Mis provided between OSC1 and OSC2/R for the  
crystal type oscillator as a mask option.  
MOTOROLA  
1-4  
GENERAL DESCRIPTION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
MCU  
MCU  
MCU  
2MΩ  
OSC2/R  
OSC1  
OSC1  
OSC2/R  
OSC1 OSC2/R  
R
unconnected  
37 pF  
37 pF  
External Clock  
(a) Crystal or ceramic  
resonator connection  
(b) RC oscillator connection  
(c) External clock source  
connection  
Figure 1-4. Oscillator Connections  
1.3.2.2 Ceramic Resonator Oscillator  
In cost-sensitive applications, a ceramic resonator can be used in place of the  
crystal. The circuit in Figure 1-4(a) can be used for a ceramic resonator. The  
resonator manufacturer’s recommendations should be followed, as the resonator  
parameters determine the external component values required for maximum  
stability and reliable starting. The load capacitance values used in the oscillator  
circuit design should include all stray capacitances. The ceramic resonator and  
components should be mounted as close as possible to the pins for start-up  
stabilization and to minimize output distortion. An internal start-up resistor of  
approximately 2 Mis provided between OSC1 and OSC2/R for the ceramic  
resonator type oscillator as a mask option.  
1.3.2.3 RC Oscillator  
The lowest cost oscillator is the RC oscillator configuration. With this option an  
external resistor is connected between OSC2/R pin and the V pin as shown in  
SS  
Figure 1-4(b). The typical operating frequency f  
is set at 4 MHz with the  
OSC  
external R tied to V . The internal start-up resistor of approximately 2 Mis not  
SS  
connected between OSC1 and OSC2/R for the mask option of the RC type  
oscillator.  
The tolerance of this RC oscillator is guaranteed to be no greater than ±15% at  
the specified conditions of 0 °C to 40 °C and 5V ±10% V  
providing that the  
DD  
tolerance of the external resistor R is at most ±1% and the center frequency range  
is from 3.8MHz to 4.2MHz. The center frequency is the nominal operating  
frequency of the RC oscillator and can be adjusted by adjusting the external R  
value to change the internal VCO charging current.  
In order to obtain an oscillator clock with the best possible tolerance, the external  
resistor connected to the OSC2/R pin should be grounded as close to the VSS pin  
as possible and the other terminal of this external resistor should be connected as  
close to the OSC2/R pin as possible.  
MC68HC05J5  
REV 1.1  
GENERAL DESCRIPTION  
MOTOROLA  
1-5  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
1.3.2.4 External Clock  
An external clock from another CMOS-compatible device can be connected to the  
OSC1 input, with the OSC2/R input not connected, as shown in Figure 1-4(c).  
This configuration is possible only when the crystal/ceramic resonator mask  
option is selected.  
1.3.3 RESET  
This is an I/O pin. This pin can be used as an input to reset the MCU to a known  
start-up state by pulling it to the low state. The RESET pin contains a steering  
diode to discharge any voltage on the pin to V , when the power is removed. An  
DD  
internal pull-up is also connected between this pin and V . The RESET pin  
DD  
contains an internal Schmitt trigger to improve its noise immunity as an input. This  
pin is an output pin if LVR triggers an internal reset.  
1.3.4 IRQ  
This input pin drives the asynchronous IRQ interrupt function of the CPU. The IRQ  
interrupt function has a mask option to provide either only negative edge-sensitive  
triggering or both negative edge-sensitive and low level-sensitive triggering. If the  
option is selected to include level-sensitive triggering, the IRQ input requires an  
external resistor to V for "wired-OR" operation, if desired. The IRQ pin contains  
DD  
an internal Schmitt trigger as part of its input to improve noise immunity.  
NOTE  
Each of the PA0 to PA3 I/O pins may be connected as an OR function with the IRQ  
interrupt function by a mask option. This capability allows keyboard scan  
applications where the transitions or levels on the I/O pins will behave the same  
as the IRQ pin, except for the inverted phase. The edge or level sensitivity  
selected by a separate mask option for the IRQ pin also applies to the I/O pins  
OR’ed to create the IRQ signal. Besides, PA7 also has falling-edge only interrupt  
capability whose functionality is controlled by another set of register bits.  
1.3.5 PA0-PA7  
These eight I/O lines comprise Port A. PA6 and PA7 are open-drained pins with  
pull-up devices whereas PA0 to PA5 are push-pull pins with pull-down devices.  
PA4 to PA7 are also capable of sinking 8 mA.  
The state of any pin is software programmable and all Port A lines are configured  
as inputs during power-on or reset. The lower four I/O pins (PA0 to PA3) can be  
connected via an internal OR gate to the IRQ interrupt function enabled by a mask  
option. Another independent interrupt source comes from the falling edge on PA7.  
PA7 interrupt source is associated with a second set of interrupt control/status  
bits. All Port A pins except PA6 and PA7 have software programmable pull-down  
devices also provided by a mask option. PA6 and PA7 pins have software  
programmable pull-up devices also provided by the same mask option. Pull-up  
MOTOROLA  
1-6  
GENERAL DESCRIPTION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
devices on PA6 and PA7 once enabled are always enabled regardless of pin  
direction configuration, unlike pull-down devices on PA0 to PA5 which are  
activated only when these pins are configured as input pins.  
PA6 and PA7 pins, when configured as output pins, also have slow output falling-  
edge transition feature to reduce EMI.The falling-edge transition time is tentatively  
set at 250ns typical at a specified load of 500pF, assuming the bus rate is 2MHz.  
The slow transition output feature of PA6 and PA7, along with that of PB1 and  
PB2, can be enabled or disabled by software. Both PA6 and PA7 pins have  
Schmitt trigger input for better noise immunity. V and V are specified at 2.4V  
IH  
IL  
and 0.8V, respectively.  
The slow transition feature of PA6 and PA7 pins can be enabled or disabled by  
software. Once enabled, slow transition feature is applied to both pins while in  
output mode.  
1.3.6 PB0-PB5  
NOTE  
I/O lines PB2 to PB5 are not available on the 16-pin package.  
These six I/O lines comprise Port B. PB0, PB3 to PB5 are push-pull I/O lines with  
pull-down resistor. PB1 and PB2 are open-drain I/O lines with pull-up resistor.  
The state of any line is software programmable and is configured as an input  
during power-on or reset. I/O lines PB1 and PB2 have software programmable  
pull-up device whereas PB0, PB3 to PB5 have software programmable pull-down  
device, by a mask option. Pull-up devices on PB1 and PB2 lines once enabled are  
always enabled regardless of pin direction configuration; unlike pull-down devices  
on PB0, PB3-PB5 lines, which are activated only when the pin is configured as  
input pin.  
Similar to PA6 and PA7, PB1 also has a slow output falling transition feature when  
configured as an output line. PB1 has 25mA sink capability at 0.5V V .  
OL  
PB2 output is one clock cycle (250ns if bus rate is 2MHz) late than other I/O pins if  
slow output transition feature is enabled. PB2 has 25mA sink capability at 0.5V  
V .  
OL  
NOTE  
For the 16-pin package, PB1 and PB2 are bonded to the same pin and is labelled  
PB1. This PB1 has 50mA sink capability is slow transition feature is enabled and if  
they are written with the same value at the same write cycle. The falling transition  
time of PB1 is set at 250ns typical at a specified load of 50pF, assuming that the  
bus rate is 2MHz. The slow transition feature on this PB1 pin is longer than PB1  
pin for the 20-pin package.  
MC68HC05J5  
REV 1.1  
GENERAL DESCRIPTION  
MOTOROLA  
1-7  
GENERAL RELEASE SPECIFICATION December 11, 1996  
NOTE  
If Port Data Register PB1 and PB2 are not written with the same value, PB1 pin  
on the 16-pin package will sink 25 mA only and the output transition time will be  
shorter.  
MOTOROLA  
1-8  
GENERAL DESCRIPTION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 2  
MEMORY  
2.1  
MEMORY MAP  
The MC68HC05J5 has 2K-bytes of addressable memory consisting 32 bytes of  
I/O, 64 bytes of user RAM, and 1240 bytes of user ROM, as shown in Figure 2-1.  
$0000  
0000  
$0000  
I/O  
32 Bytes  
I/O  
Registers  
$001F  
$0020  
0031  
0032  
32 bytes  
(see Figure 2-2)  
unimplemented  
160 Bytes  
$00BF  
$00C0  
0191  
0192  
$001F  
User RAM  
64 Bytes  
Stack  
0255  
0256  
$00FF  
$0100  
COP Watchdog Timer*  
Reserved for test  
Reserved for test  
Reserved for test  
Reserved for test  
Reserved for test  
Reserved for test  
Reserved for test  
$07F0  
$07F1  
$07F2  
$07F3  
$07F4  
$07F5  
$07F6  
$07F7  
$07F8  
$07F9  
$07FA  
$07FB  
$07FC  
$07FD  
$07FE  
$07FF  
unimplemented  
512 Bytes  
0767  
0768  
$02FF  
$0300  
User ROM  
1232 Bytes  
Timer Vector (High Byte)  
Timer Vector (Low Byte)  
IRQ Vector (High Byte)  
IRQ Vector (Low Byte)  
SWI Vector (High Byte)  
SWI Vector (Low Byte)  
Reset Vector (High Byte)  
Reset Vector (Low Byte)  
$07CF  
$07D0  
1999  
2000  
TEST ROM  
32 Bytes ROM  
$07EF  
$07F0  
2031  
2032  
ROM Reserved for Test  
8 Bytes  
$07F7  
$07F8  
$07FF  
2039  
2040  
User Vectors (ROM)  
8 Bytes  
* Writing a 0 to bit 0 of $07F0 clears the COP Timer.  
Reading $07F0 returns User ROM data.  
2047  
Figure 2-1. MC68HC05J5 Memory Map  
MC68HC05J5  
REV 1.1  
MEMORY  
MOTOROLA  
2-1  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
2.2  
I/O AND CONTROL REGISTERS  
The I/O and Control Registers reside in locations $0000-$001F. The overall orga-  
nization of these registers is shown in Figure 2-2. The bit assignments for each  
register are shown in Figure 2-3 and Figure 2-4. Reading from unimplemented  
bits will return unknown states, and writing to unimplemented bits will be ignored.  
Port A Data Register  
Port B Data Register  
$0000  
$0001  
unimplemented (2 bytes)  
Port A Data Direction Register  
Port B Data Direction Register  
$0004  
$0005  
unimplemented (2 bytes)  
Timer Control & Status Register  
Timer Counter Register  
$0008  
$0009  
$000A  
IRQ Control & Status Register  
unimplemented (5 bytes)  
Port A Pull-down/up Register  
Port B Pull-down/up Register  
$0010  
$0011  
unimplemented (13 bytes)  
Reserved  
$001F  
Figure 2-2. I/O Registers Memory Map  
2.3  
2.4  
RAM  
The User RAM consists of 64 bytes (including the stack), located from $00C0 to  
$00FF. The stack begins at address $00FF and proceeds down to $00C0. Using  
the stack area for data storage or temporary work locations requires care to pre-  
vent it from being overwritten due to stacking from an interrupt or subroutine call.  
ROM  
There are a total of 1240 bytes of user ROM on-chip. This includes 1232 bytes of  
user ROM from locations $0300 to $07CF for user program storage and 8 bytes  
for user vectors from locations $07F8 to $07FF. There are a total of 40 bytes of  
Internal Test ROM on chip at locations $07D0 to $07EF and from $07F0 to $07F7.  
MOTOROLA  
2-2  
MEMORY  
MC68HC05J5  
REV 1.1  
 
December 11, 1996 GENERAL RELEASE SPECIFICATION  
READ  
WRITE  
REGISTER  
ADDR  
7
6
5
4
3
2
1
0
R
PORT A DATA  
PORTA  
$0000  
$0001  
$0002  
$0003  
$0004  
$0005  
$0006  
$0007  
$0008  
$0009  
$000A  
$000B  
$000C  
$000D  
$000E  
$000F  
PA7  
0
PA6  
0
PA5  
PB5  
PA4  
PB4  
PA3  
PB3  
PA2  
PB2  
PA1  
PB1  
PA0  
PB0  
W
R
PORT B DATA  
PORTB  
W
R
unimplemented  
W
R
unimplemented  
W
R
PORT A DATA DIRECTION  
DDRA  
DDRA7 DDRA6 DDRA5 DDRA4 DDRA3 DDRA2 DDRA1 DDRA0  
0
W
R
PORT B DATA DIRECTION  
DDRB  
DDRB5 DDRB4 DDRB3 DDRB2 DDRB1 DDRB0  
SLOWE  
W
R
unimplemented  
W
R
unimplemented  
W
R
TOF  
RTIF  
0
0
TIMER CONTROL & STATUS  
TCSR  
RT1  
RT0  
TOFE  
TMR5  
RTIE  
TOFR  
TMR3  
RTIFR  
TMR2  
W
R
TMR7  
TMR6  
TMR4  
TMR1  
TMR0  
TIMER COUNTER  
TCR  
W
R
0
0
IRQF  
IRQF1  
0
0
IRQ CONTROL & STATUS  
ICSR  
IRQE  
IRQE1  
IRQR1  
IRQR  
W
R
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
W
R
W
R
W
R
W
R
W
UNIMPLEMENTED  
RESERVED FOR TEST  
Figure 2-3. I/O Registers $0000-$000F  
MC68HC05J5  
REV 1.1  
MEMORY  
MOTOROLA  
2-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
READ  
WRITE  
REGISTER  
ADDR  
7
6
5
4
3
2
1
0
R
PORT A PULLDOWN/UP REG.  
PDURA  
$0010  
$0011  
$0012  
$0013  
$0014  
$0015  
$0016  
$0017  
$0018  
$0019  
$001A  
$001B  
$001C  
$001D  
$001E  
$001F  
PURA7 PURA6 PDRA5 PDRA4 PDRA3 PDRA2 PDRA1 PDRA0  
PDRB5 PDRB4 PDRB3 PURB2 PURB1 PDRB0  
W
R
PORT B PULLDOWN/UP REG.  
PDURB  
W
R
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
unimplemented  
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
W
R
RESERVED FOR TEST  
TEST  
W
UNIMPLEMENTED  
RESERVED FOR TEST  
Figure 2-4. I/O Registers $0010-$001F  
MOTOROLA  
2-4  
MEMORY  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 3  
CENTRAL PROCESSING UNIT  
The MC68HC05J5 has a 2K memory map. The stack has only 64 bytes. There-  
fore, the stack pointer has been reduced to only 6 bits and will only decrement  
down to $00C0 and then wrap-around to $00FF. All other instructions and regis-  
ters behave as described in this chapter.  
3.1  
REGISTERS  
The MCU contains five registers which are hard-wired within the CPU and are not  
part of the memory map. These five registers are shown in Figure 3-1 and are  
described in the following paragraphs.  
7
6
5
4
3
2
1
0
ACCUMULATOR  
INDEX REGISTER  
A
X
15  
0
14  
0
13  
0
12  
0
11  
0
10  
0
9
0
8
0
1
1
STACK POINTER  
SP  
PC  
CC  
PROGRAM COUNTER  
CONDITION CODE REGISTER  
1
1
1
H
I
N
Z
C
HALF-CARRY BIT (FROM BIT 3)  
INTERRUPT MASK  
NEGATIVE BIT  
ZERO BIT  
CARRY BIT  
Figure 3-1. MC68HC05 Programming Model  
MC68HC05J5  
REV 1.1  
CENTRAL PROCESSING UNIT  
MOTOROLA  
3-1  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
3.1.1 Accumulator (A)  
The accumulator is a general purpose 8-bit register as shown in Figure 3-1. The  
CPU uses the accumulator to hold operands and results of arithmetic calculations  
or non-arithmetic operations. The accumulator is not affected by a reset of the  
device.  
3.1.2 Index Register (X)  
The index register shown in Figure 3-1 is an 8-bit register that can perform two  
functions:  
Indexed addressing  
Temporary storage  
In indexed addressing with no offset, the index register contains the low byte of  
the operand address, and the high byte is assumed to be $00. In indexed  
addressing with an 8-bit offset, the CPU finds the operand address by adding the  
index register content to an 8-bit immediate value. In indexed addressing with a  
16-bit offset, the CPU finds the operand address by adding the index register con-  
tent to a 16-bit immediate value.  
The index register can also serve as an auxiliary accumulator for temporary stor-  
age. The index register is not affected by a reset of the device.  
3.1.3 Stack Pointer (SP)  
The stack pointer shown in Figure 3-1 is a 16-bit register. In MCU devices with  
memory space less than 64K-bytes the unimplemented upper address lines are  
ignored. The stack pointer contains the address of the next free location on the  
stack. During a reset or the reset stack pointer (RSP) instruction, the stack pointer  
is set to $00FF. The stack pointer is then decremented as data is pushed onto the  
stack and incremented as data is pulled off the stack.  
When accessing memory, the ten most significant bits are permanently set to  
0000000011. The six least significant register bits are appended to these ten fixed  
bits to produce an address within the range of $00FF to $00C0. Subroutines and  
interrupts may use up to 64 ($40) locations. If 64 locations are exceeded, the  
stack pointer wraps around and overwrites the previously stored information. A  
subroutine call occupies two locations on the stack and an interrupt uses five loca-  
tions.  
3.1.4 Program Counter (PC)  
The program counter shown in Figure 3-1 is a 16-bit register. In MCU devices  
with memory space less than 64K-bytes the unimplemented upper address lines  
are ignored. The program counter contains the address of the next instruction or  
operand to be fetched.  
MOTOROLA  
3-2  
CENTRAL PROCESSING UNIT  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
Normally, the address in the program counter increments to the next sequential  
memory location every time an instruction or operand is fetched. Jump, branch,  
and interrupt operations load the program counter with an address other than that  
of the next sequential location.  
3.1.5 Condition Code Register (CCR)  
The CCR shown in Figure 3-1 is a 5-bit register in which four bits are used to indi-  
cate the results of the instruction just executed. The fifth bit is the interrupt mask.  
These bits can be individually tested by a program, and specific actions can be  
taken as a result of their states. The condition code register should be thought of  
as having three additional upper bits that are always ones. Only the interrupt mask  
is affected by a reset of the device. The following paragraphs explain the functions  
of the lower five bits of the condition code register.  
3.1.5.1 Half Carry Bit (H-Bit)  
When the half-carry bit is set, it means that a carry occurred between bits 3 and 4  
of the accumulator during the last ADD or ADC (add with carry) operation. The  
half-carry bit is required for binary-coded decimal (BCD) arithmetic operations.  
3.1.5.2 Interrupt Mask (I-Bit)  
When the interrupt mask is set, the internal and external interrupts are disabled.  
Interrupts are enabled when the interrupt mask is cleared. When an interrupt  
occurs, the interrupt mask is automatically set after the CPU registers are saved  
on the stack, but before the interrupt vector is fetched. If an interrupt request  
occurs while the interrupt mask is set, the interrupt request is latched. Normally,  
the interrupt is processed as soon as the interrupt mask is cleared.  
A return from interrupt (RTI) instruction pulls the CPU registers from the stack,  
restoring the interrupt mask to its state before the interrupt was encountered. After  
any reset, the interrupt mask is set and can only be cleared by the Clear I-Bit  
(CLI), or WAIT instructions.  
3.1.5.3 Negative Bit (N-Bit)  
The negative bit is set when the result of the last arithmetic operation, logical  
operation, or data manipulation was negative. (Bit 7 of the result was a logical  
one.)  
The negative bit can also be used to check an often tested flag by assigning the  
flag to bit 7 of a register or memory location. Loading the accumulator with the  
contents of that register or location then sets or clears the negative bit according  
to the state of the flag.  
MC68HC05J5  
REV 1.1  
CENTRAL PROCESSING UNIT  
MOTOROLA  
3-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
3.1.5.4 Zero Bit (Z-Bit)  
The zero bit is set when the result of the last arithmetic operation, logical opera-  
tion, data manipulation, or data load operation was zero.  
3.1.5.5 Carry/Borrow Bit (C-Bit)  
The carry/borrow bit is set when a carry out of bit 7 of the accumulator occurred  
during the last arithmetic operation, logical operation, or data manipulation. The  
carry/borrow bit is also set or cleared during bit test and branch instructions and  
during shifts and rotates.This bit is neither set by an INC nor by a DEC instruction.  
MOTOROLA  
3-4  
CENTRAL PROCESSING UNIT  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 4  
INTERRUPTS  
The CPU can be interrupted in five different ways:  
Non-maskable Software Interrupt Instruction (SWI)  
External Asynchronous Interrupt (IRQ)  
Optional External Interrupt on PA0-PA3 (mask option)  
External Interrupt on PA7  
Internal Timer Interrupt  
4.1  
CPU INTERRUPT PROCESSING  
Interrupts cause the processor to save register contents on the stack and to set  
the interrupt mask (I-bit) to prevent additional interrupts. Unlike RESET, hardware  
interrupts do not cause the current instruction execution to be halted, but are  
considered pending until the current instruction is complete.  
If interrupts are not masked (I-bit in the CCR is clear) and the corresponding  
interrupt enable bit is set the processor will proceed with interrupt processing.  
Otherwise, the next instruction is fetched and executed. If an interrupt occurs the  
processor completes the current instruction, then stacks the current CPU register  
states, sets the I-bit to inhibit further interrupts, and finally checks the pending  
hardware interrupts. If more than one interrupt is pending following the stacking  
operation, the interrupt with the highest vector location shown in Table 4-1 will be  
serviced first. The SWI is executed the same as any other instruction, regardless  
of the I-bit state.  
When an interrupt is to be processed the CPU fetches the address of the  
appropriate interrupt software service routine from the vector table at locations  
$07F8 to $07FF as defined in Table 4-1.  
Table 4-1. Vector Address for Interrupts and Reset  
Flag  
CPU  
Register  
Name  
Interrupts  
Interrupt  
Vector Address  
N/A  
N/A  
ICSR  
TCSR  
TCSR  
N/A  
N/A  
Reset  
Software  
RESET  
SWI  
IRQ  
TIMER  
TIMER  
$07FE-$07FF  
$07FC-$07FD  
$07FA-$07FB  
$07F8-$07F9  
$07F8-$07F9  
IRQF/IRQF1 External Interrupt  
TOF  
RTIF  
Timer Overflow  
Real Time Interrupt  
MC68HC05J5  
REV 1.1  
INTERRUPTS  
MOTOROLA  
4-1  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
An RTI instruction is used to signify when the interrupt software service routine is  
completed. The RTI instruction causes the register contents to be recovered from  
the stack and normal processing to resume at the next instruction that was to be  
executed when the interrupt took place. Figure 4-1 shows the sequence of events  
that occur during interrupt processing.  
From  
RESET  
Is  
I-Bit  
Y
Set?  
N
IRQ  
External  
Interrupt?  
Clear IRQ  
Request  
Latch if IRQE1 is  
cleared  
Y
Y
N
TIMER  
Internal  
Interrupt?  
Stack PC, X, A, CC  
Set I-Bit in CCR  
N
Fetch Next  
Instruction  
Load PC From:  
SWI: $07FC, $07FD  
IRQ: $07FA-$07FB  
TIMER: $07F8-$07F9  
SWI  
Instruction  
?
Y
Y
N
RTI  
Instruction  
?
Restore Registers  
from stack  
CC, A, X, PC  
N
Execute  
Instruction  
Figure 4-1. Interrupt Processing Flowchart  
RESET INTERRUPT SEQUENCE  
4.2  
The RESET function is not in the strictest sense an interrupt; however, it is acted  
upon in a similar manner as shown in Figure 4-1. A low level input on the RESET  
pin or an internally generated RST signal causes the program to vector to its  
starting address which is specified by the contents of memory locations $07FE  
and $07FF. The I-bit in the condition code register is also set.  
MOTOROLA  
4-2  
INTERRUPTS  
MC68HC05J5  
REV 1.1  
 
December 11, 1996 GENERAL RELEASE SPECIFICATION  
4.3  
4.4  
SOFTWARE INTERRUPT (SWI)  
The SWI is an executable instruction and a non-maskable interrupt since it is  
executed regardless of the state of the I-bit in the CCR. As with any instruction,  
interrupts pending during the previous instruction will be serviced before the SWI  
opcode is fetched. The interrupt service routine address is specified by the  
contents of memory locations $07FC and $07FD.  
HARDWARE INTERRUPTS  
All hardware interrupts except RESET are maskable by the I-bit in the CCR. If the  
I-bit is set, all hardware interrupts (internal and external) are disabled. Clearing  
the I-bit enables the hardware interrupts. There are two types of hardware  
interrupts which are explained in the following sections.  
4.4.1 External Interrupt (IRQ)  
Interrupts from external pins are available on:  
IRQ pin  
PA0 to PA3 pins (enabled by mask option)  
PA7 pin  
4.4.1.1 IRQ, PA0, PA1, PA2, and PA3 Pins  
If “edge-only” sensitivity is chosen by mask option, the IRQ interrupt is sensitive to  
the following cases:  
1. Falling edge on the IRQ pin.  
2. Rising edge on any PA0-PA3 pin with IRQ enabled (via mask option).  
If “edge-and-level” sensitivity is chosen, the IRQ interrupt is sensitive to the  
following cases:  
1. Low level on the IRQ pin.  
2. Falling edge on the IRQ pin.  
3. High level on any PA0-PA3 pin with IRQ enabled (via mask option).  
4. Rising edge on any PA0-PA3 pin with IRQ enabled (via mask option).  
The IRQE enable bit controls whether an active IRQF flag can generate an IRQ  
interrupt sequence. This interrupt is serviced by the interrupt service routine  
located at the address specified by the contents of $07FA and $07FB.  
The IRQ latch is automatically cleared by entering the interrupt service routine if  
IRQE1 enable bit is cleared. If IRQE1 enable bit is also set, the only way of  
clearing IRQF is by writing a logic one to the IRQR acknowledge bit. Writing a  
logic one to the IRQR acknowledge bit in the ICSR is the other way of clearing  
IRQF flag, regardless of the status of the IRQE1 bit, besides IRQ vector fetch.  
This conditional reset of IRQF flag provides a way for the user to differentiate the  
MC68HC05J5  
REV 1.1  
INTERRUPTS  
MOTOROLA  
4-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
interrupt sources from IRQ and IRQ1 latches and also to make it HC05J1A  
compatible if PA7 interrupt is not used. As long as the output state of the IRQF flag  
bit is active the CPU will continuously re-enter the IRQ interrupt sequence until the  
active state is removed or the IRQE enable bit is cleared.  
4.4.1.2 PA7 Pin  
PA7 interrupt source, if enabled by IRQE1 enable bit, triggers IRQ interrupt on  
PA7 falling edge only.The IRQ1 latch (IRQF1 flag) can ONLY be cleared by writing  
a logic one to the IRQR1 acknowledge bit in the ICSR. IRQ vector fetch can NOT  
clear IRQF1 flag. IRQ interrupt caused by PA7 falling edge also vectors to $07FA  
and $07FB.  
4.4.2 IRQ Control/Status Register (ICSR), $0A  
The IRQ interrupt function is controlled by the ICSR located at $000A. All unused  
bits in the ICSR will read as logic zeros. The IRQF, IRQF1, IRQE1 bits are cleared  
and IRQE bit is set by reset.  
7
IRQE  
1
6
5
4
3
2
1
0
R
0
IRQF  
IRQF1  
0
0
0
ICSR  
$000A  
IRQE1  
0
W
IRQR  
0
IRQR1  
0
reset  
0
0
0
0
RESERVED FOR TEST  
Figure 4-2. IRQ Status & Control Register  
IRQR 1 - PA7 Interrupt Acknowledge  
The IRQR1 acknowledge bit clears an IRQ interrupt triggered by a falling edge  
on PA7 by clearing the IRQ1 latch.The IRQR1 acknowledge bit will always read  
as a logic zero.  
1 = Writing a logic one to the IRQR1 acknowledge bit will clear the IRQ1  
latch.  
0 = Writing a logic zero to the IRQR1 acknowledge bit will have no effect  
on the IRQ1 latch.  
IRQR - IRQ Interrupt Acknowledge  
The IRQR acknowledge bit clears an IRQ interrupt by clearing the IRQ latch.  
The IRQR acknowledge bit will always read as a logic zero.  
1 = Writing a logic one to the IRQR acknowledge bit will clear the IRQ  
latch.  
0 = Writing a logic zero to the IRQR acknowledge bit will have no effect  
on the IRQ latch.  
MOTOROLA  
4-4  
INTERRUPTS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
IRQF1 - PA7 Interrupt Request Flag  
Writing to the IRQF1 flag bit will have no effect on it. If the additional setting of  
IRQF1 flag bit is not cleared in the IRQ service routine and the IRQE1 enable  
bit remains set the CPU will re-enter the IRQ interrupt sequence continuously  
until either the IRQF1 flag bit or the IRQE1 enable bit is cleared. The IRQF1  
latch is cleared by reset.  
1 = Indicates that an IRQ request triggered by a falling edge on PA7 is  
pending.  
0 = Indicates that no IRQ request triggered by a falling edge on PA7 is  
pending. The IRQF1 flag bit can ONLY be cleared by writing a logic  
one to the IRQR1 acknowledge bit. Doing so before exiting the  
service routine will mask out additional occurrences of the IRQF1.  
IRQF - IRQ Interrupt Request Flag  
Writing to the IRQF flag bit will have no effect on it. If the additional setting of  
IRQF flag bit is not cleared in the IRQ service routine and the IRQE enable bit  
remains set the CPU will re-enter the IRQ interrupt sequence continuously until  
either the IRQF flag bit or the IRQE enable bit is clear. The IRQF latch is  
cleared by reset.  
1 = Indicates that an IRQ request is pending.  
0 = Indicates that no IRQ request triggered by pins PA0-3 or IRQ is  
pending. The IRQF flag bit is cleared once the IRQ vector is fetched  
AND if IRQE1 is also cleared. If IRQE1 is set, then the only way of  
clearing IRQF flag is by writing a logic one to IRQR bit. The IRQF  
flag bit can be cleared, regardless of the status of the IRQE1 bit, by  
writing a logic one to the IRQR acknowledge bit to clear the IRQ  
latch and also conditioning the external IRQ sources to be inactive  
(if the level sensitive interrupts are enabled via mask option). Doing  
so before exiting the service routine will mask out additional  
occurrences of the IRQF.  
IRQE1 - PA7 Interrupt Enable  
The IRQE1 bit enables/disables the IRQF1 flag bit to initiate an IRQ interrupt  
sequence.  
1 = Enables IRQF1 interrupt, that is, the IRQF1 flag bit can generate an  
interrupt sequence. Execution of the STOP or WAIT instructions will  
leave the IRQE1 bit to be UNAFFECTED.  
0 = The IRQF1 flag bit cannot generate an interrupt sequence. Reset  
clears the IRQE1 enable bit, thereby disabling PA7 interrupts.  
MC68HC05J5  
REV 1.1  
INTERRUPTS  
MOTOROLA  
4-5  
GENERAL RELEASE SPECIFICATION December 11, 1996  
IRQE - IRQ Interrupt Enable  
The IRQE bit enables/disables the IRQF flag bit to initiate an IRQ interrupt  
sequence.  
1 = Enables IRQF interrupt, that is, the IRQF flag bit can generate an  
interrupt sequence. Reset sets the IRQE enable bit, thereby  
enabling IRQ interrupts once the I-bit is cleared. Execution of the  
STOP or WAIT instructions causes the IRQE bit to be set in order to  
allow the external IRQ to exit these modes.  
0 = The IRQF flag bit cannot generate an interrupt sequence.  
4.4.3 Optional External Interrupts (PA0-PA3)  
The IRQ interrupt can also be triggered by the inputs on the PA0 to PA3 port pins  
if enabled by a single mask option. If enabled, the lower four bits of Port A can  
activate the IRQ interrupt function, and the interrupt operation will be the same as  
for inputs to the IRQ pin. This mask option of PA0-3 interrupt allow all of these  
input pins to be OR’ed with the input present on the IRQ pin. All PA0 to PA3 pins  
must be selected as a group as an additional IRQ interrupt. All the PA0-3 interrupt  
sources are also controlled by the IRQE enable bit.  
NOTE  
The BIH and BIL instructions will only apply to the level on the IRQ pin itself, and  
not to the output of the logic OR function with the PA0 to PA3 pins.The state of the  
individual Port A pins can be checked by reading the appropriate Port A pins as  
inputs.  
NOTE  
If enabled, the PA0 to PA3 and PA7 pins will cause an IRQ interrupt regardless of  
whether these pins are configured as inputs or outputs.  
4.4.4 Timer Interrupt (TIMER)  
The TIMER interrupt is generated by the multi-function timer when either a timer  
overflow or a real time interrupt has occurred as described in Section 8. The  
interrupt flags and enable bits for the Timer interrupts are located in the Timer  
Control/Status Register (TCSR) located at $0008. The I-bit in the CCR must be  
clear in order for the TIMER interrupt to be enabled. Either of these two interrupts  
will vector to the same interrupt service routine located at the address specified by  
the contents of memory locations $07F8 and $07F9.  
MOTOROLA  
4-6  
INTERRUPTS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 5  
RESETS  
The MCU can be reset from five sources: one external input and four internal  
restart conditions.  
5.1  
EXTERNAL RESET (RESET)  
The RESET pin is the only external source of a reset. This pin is connected to a  
Schmitt trigger input gate to provide an upper and lower threshold voltage sepa-  
rated by a minimum amount of hysteresis. This external reset occurs whenever  
the RESET pin is pulled below the lower threshold and remains in reset until the  
RESET pin rises above the upper threshold. This active low input will generate the  
RST signal and reset the CPU and peripherals. This pin is also an output pin  
whenever the LVR triggers an internal reset. Termination of the external RESET  
input or the internal COP Watchdog reset or LVR are the only reset sources that  
can alter the operating mode of the MCU.  
5.2  
INTERNAL RESETS  
The four internally generated resets are the initial power-on reset function, the  
COP Watchdog Timer reset, the illegal address detector reset and the low voltage  
reset (LVR). Termination of the external RESET input or the internal COP Watch-  
dog Timer or LVR are the only reset sources that can alter the operating mode of  
the MCU. The other internal resets will not have any effect on the mode of opera-  
tion when their reset state ends.  
5.2.1 Power-On Reset (POR)  
The internal POR is generated on power-up to allow the clock oscillator to stabi-  
lize. The POR is strictly for power turn-on conditions and is not able to detect a  
drop in the power supply voltage (brown-out). There is an oscillator stabilization  
delay of 4064 internal processor bus clock cycles (PH2) after the oscillator  
becomes active.  
The POR will generate the RST signal which will reset the CPU. If any other reset  
function is active at the end of this 4064 cycle delay, the RST signal will remain in  
the reset condition until the other reset condition(s) end.  
MC68HC05J5  
REV 1.1  
RESETS  
MOTOROLA  
5-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
5.2.2 Computer Operating Properly Reset (COPR)  
The internal COPR reset is generated automatically (if the COP is enabled) by a  
time-out of the COP Watchdog Timer. This time-out occurs if the counter in the  
COP Watchdog Timer is not reset (cleared) within a specific time by a software  
reset sequence. The COP Watchdog Timer can be disabled by a mask option.  
Refer to Section 8.2 for more information on this time-out feature. COP reset also  
forces the RESET pin low  
The COPR will generate the RST signal which will reset the CPU and other  
peripherals. Also, the COPR will establish the mode of operation based on the  
state of the IRQ pin at the time the COPR signal ends. If the voltage on the IRQ  
pin is at the V  
level, the state of the PB0 pin during the last rising edge of the  
TST  
RESET pin will determine which Test Mode (Internal or Expanded) the MCU will  
be in. If the voltage at the IRQ pin is in the normal operating range (V to V ),  
SS  
DD  
the MCU will enter Single-Chip Mode when the COPR signal ends. If any other  
reset function is active at the end of the COPR reset signal, the RST signal will  
remain in the reset condition until the other reset condition(s) end.  
5.2.3 Illegal Address Reset (ILADR)  
The internal ILADR reset is generated when an instruction opcode fetch occurs  
from an address which is not implemented in the RAM ($00C0 - $00FF) nor ROM  
($0300-$07FF). The ILADR will generate the RST signal which will reset the CPU  
and other peripherals. If any other reset function is active at the end of the ILADR  
reset signal, the RST signal will remain in the reset condition until the other reset  
condition(s) end. Notice that ILADR also forces the RESET pin low  
5.2.4 Low Voltage Reset (LVR)  
The internal LVR reset is generated when V falls below the specified LVR trig-  
DD  
ger value V  
for at least one t  
. In typical applications, the power supply  
LVR  
CYC  
decoupling circuit will eliminate negative-going voltage glitches of less than one  
. This reset will hold the MCU in the reset state until V rises above V  
t
.
LVR  
CYC  
DD  
Whenever V is above V  
and below 4.5V, the MCU is guaranteed to operate  
DD  
LVR  
although not within specification. The output from the LVR is connected directly to  
the internal reset circuitry and also forces the RESET pin low. The internal reset  
will be removed once the power supply voltage rises above V , at which time a  
LVR  
normal power-on-reset sequence occurs.  
MOTOROLA  
5-2  
RESETS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 6  
MODES OF OPERATION  
The MC68HC05J5 has the following operating modes: Single-Chip Mode (SCM)  
and self-check mode.  
The Single-Chip Mode allows maximum use of pins for on-chip peripheral func-  
tions.  
The self-check mode capability of the MC68HC05J5 provides an internal check to  
determine if the device is functional.  
This section also provides a description of the low-power modes.  
6.1  
MODE ENTRY  
The mode entry is done at the rising edge of the RESET pin. Once the device  
enters one of the operating modes, the mode can be changed only by external  
reset not software.  
At the rising edge of the RESET pin, the device latches the states of the IRQ and  
PB0 pins and places itself in the specified mode. While the RESET pin low, all  
pins are configured as Single-Chip Mode. Table 6-1 shows the states of IRQ and  
PB0 pins for each mode.  
Table 6-1. Mode Select Summary  
Mode  
Single-Chip Mode  
Self-Check Mode  
RESET  
IRQ  
PB0  
X
L or H  
V
H
TST  
V
=1.8xV  
DD  
TST  
H = V  
DD  
L = GND  
6.2  
SINGLE-CHIP MODE (SCM)  
The Single-Chip Mode allows the MCU to function as a self-contained microcon-  
troller, with maximum use of the pins for on-chip peripheral functions.  
In the Single-Chip Mode all address and data activity occurs within the MCU and  
is not available externally. Single-Chip Mode is entered if the IRQ pin is within the  
normal operating voltage range when the rising edge of a RESET or a COP  
Watchdog reset or an internal LVR reset occurs. In Single-Chip Mode, all I/O port  
pins are available.  
MC68HC05J5  
REV 1.1  
MODES OF OPERATION  
MOTOROLA  
6-1  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
6.3  
6.4  
SELF-CHECK MODE  
The self-check mode provides an internal check to determine if the device is func-  
tional.  
LOW-POWER MODES  
In each of its configuration modes the MC68HC05J5 is capable of running in one  
of several low-power operational modes.The WAIT and STOP instructions provide  
two modes that reduce the power required for the MCU by stopping various inter-  
nal clocks and/or the on-chip oscillator. The STOP and WAIT instructions are not  
normally used if the COP Watchdog Timer is enabled. A mask option is provided  
to convert the STOP instruction to a HALT, which is a WAIT-like instruction that  
does not halt the COP Watchdog Timer but has a recovery delay. The flow of the  
STOP, HALT, and WAIT modes are shown in Figure 6-1.  
6.4.1 STOP Instruction  
The STOP instruction can result in one of two modes of operation depending on  
the STOP mask option chosen. One option is for the STOP instruction to operate  
like the STOP in normal MC68HC05 family members and place the device in the  
STOP Mode. The other option is for the STOP instruction to behave like a WAIT  
instruction (except that the restart time will involve a delay) and place the device in  
the HALT Mode.  
6.4.1.1 STOP Mode  
Execution of the STOP instruction in this mode (as chosen by a mask option)  
places the MCU in its lowest power consumption mode. In the STOP Mode the  
internal oscillator is turned off, halting all internal processing, including the COP  
Watchdog Timer.  
When the CPU enters STOP Mode the interrupt flags (TOF and RTIF) and the  
interrupt enable bits (TOFE and RTIE) in the TCSR are cleared by internal hard-  
ware to remove any pending timer interrupt requests and to disable any further  
timer interrupts. Execution of the STOP instruction automatically clears the I-bit in  
the Condition Code Register and sets the IRQE enable bit in the IRQ Control/Sta-  
tus Register so that the IRQ external interrupt is enabled. All other registers,  
including the other bits in the TCSR, and memory remain unaltered. All input/out-  
put lines remain unchanged.  
The MCU can be brought out of the STOP Mode only by an IRQ external interrupt  
or an externally generated RESET or an LVR reset. When exiting the STOP Mode  
the internal oscillator will resume after a 4064 internal processor clock cycle oscil-  
lator stabilization delay.  
MOTOROLA  
6-2  
MODES OF OPERATION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
NOTE  
Execution of the STOP instruction with the STOP Mode Mask Option will cause  
the oscillator to stop and therefore disable the COP Watchdog Timer. If the COP  
Watchdog Timer is to be used, the STOP Mode should be changed to the HALT  
Mode by choosing the appropriate mask option. See Section 6.6 for more details.  
STOP  
HALT  
WAIT  
External Oscillator Active  
and  
Internal Timer Clock Active  
Stop  
Conversion to  
Halt?  
Y
N
Stop Internal Processor Clock,  
Clear I-Bit in CCR,  
External Oscillator Active  
and  
Internal Timer Clock Active  
Stop External Oscillator,  
Stop Internal Timer Clock,  
Reset Start-up Delay  
and set IRQE in ICSR  
Stop Internal Processor Clock,  
Clear I-Bit in CCR,  
Stop Internal Processor Clock,  
Clear I-Bit in CCR,  
Y
External  
RESET?  
and set IRQE in ICSR  
and set IRQE in ICSR  
N
Y
IRQ  
External  
Interrupt?  
External  
RESET?  
Y
Y
External  
RESET?  
N
N
N
IRQ  
External  
Interrupt?  
Y
IRQ  
External  
Interrupt?  
TIMER  
Internal  
Interrupt?  
Y
Y
N
Restart External Oscillator,  
start Stabilization Delay  
N
N
TIMER  
Internal  
Interrupt?  
Y
COP  
Internal  
RESET?  
Y
N
End  
of Stabilization  
Delay?  
N
Y
COP  
Internal  
Y
RESET?  
N
Restart  
Internal Processor Clock  
N
1. Fetch Reset Vector  
or  
2. Service Interrupt  
a. Stack  
b. Set I-Bit  
c. Vector to Interrupt Routine  
Figure 6-1. STOP/HALT/WAIT Flowcharts  
MC68HC05J5  
REV 1.1  
MODES OF OPERATION  
MOTOROLA  
6-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
6.4.1.2 HALT Mode  
Execution of the STOP instruction in this mode (as chosen by a mask option)  
places the MCU in a low-power mode, which consumes more power than the  
STOP Mode. In the HALT Mode the internal processor clock is halted, suspending  
all processor and internal bus activity. Internal timer clocks remain active, permit-  
ting interrupts to be generated from the timer or a reset to be generated from the  
COP Watchdog Timer. Execution of the STOP instruction automatically clears the  
I-bit in the Condition Code Register and sets the IRQE enable bit in the IRQ Con-  
trol/Status Register so that the IRQ external interrupt is enabled. All other regis-  
ters, memory, and input/output lines remain in their previous states.  
The HALT Mode may be exited when a Timer interrupt, an external IRQ, an LVR  
reset, or external RESET occurs. When exiting the HALT Mode the internal pro-  
cessor clock will resume after a delay of one to 4064 internal processor clock  
cycles. This varied delay time is due to the HALT Mode testing the oscillator stabi-  
lization delay timer (a feature of the STOP Mode) which has been free-running (a  
feature of the WAIT Mode).  
NOTE  
The HALT Mode is not intended for normal use, but is provided to keep the COP  
Watchdog Timer active should the STOP instruction opcode be inadvertently  
executed.  
6.4.2 WAIT Mode  
The WAIT instruction places the MCU in a low-power mode, which consumes  
more power than the STOP Mode. In the WAIT Mode the internal processor clock  
is halted, suspending all processor and internal bus activity. Internal timer clocks  
remain active, permitting interrupts to be generated from the timer or a reset to be  
generated from the COP Watchdog Timer. Execution of the WAIT instruction auto-  
matically clears the I-bit in the Condition Code Register and sets the IRQE enable  
bit in the IRQ Control/Status Register so that the IRQ external interrupt is enabled.  
All other registers, memory, and input/output lines remain in their previous states.  
If timer interrupts are enabled, a TIMER interrupt will cause the processor to exit  
the WAIT Mode and resume normal operation. The Timer may be used to gener-  
ate a periodic exit from the WAIT Mode. The WAIT Mode may also be exited when  
an external IRQ or an LVR reset or an external RESET occurs.  
6.5  
DATA-RETENTION MODE  
If the LVR mask option is selected and since LVR kicks in whenever V is below  
DD  
the specified LVR trigger voltage which is higher than that required of the Data  
Retention mode, the Data Retention mode will not exist. Data Retention Mode is  
only meaningful if LVR mask option is not selected.  
MOTOROLA  
6-4  
MODES OF OPERATION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
The contents of RAM and CPU registers are retained at supply voltages as low as  
2.0 VDC. This is called the data-retention mode where the data is held, but the  
device is not guaranteed to operate. The RESET pin must be held low during  
data-retention mode.  
6.6  
COP WATCHDOG TIMER CONSIDERATIONS  
The COP Watchdog Timer is active in all modes of operation if enabled by a mask  
option. However, regardless of the mask option chosen, the COP Watchdog Timer  
will be disabled if the voltage on the IRQ pin equals or exceeds the V  
voltage  
TST  
level. Thus, emulation of applications that do not service the COP should only be  
done with devices that have the COP Mask Option disabled. This prevents the  
voltage level on the IRQ pin from enabling the COP which would cause a reset  
and possibly change the operating mode of the device.  
If the COP Watchdog Timer is selected by the mask option, any execution of the  
STOP instruction (either intentional or inadvertent due to the CPU being dis-  
turbed) will cause the oscillator to halt and prevent the COP Watchdog Timer from  
timing out unless the STOP to HALT conversion feature is enabled. Therefore, it is  
recommended that the STOP instruction should be converted to a HALT instruc-  
tion if the COP Watchdog Timer is enabled.  
If the COP Watchdog Timer is selected by the mask option, the COP will reset the  
MCU when it times out. Therefore, it is recommended that the COP Watchdog  
should be disabled for a system that must have intentional uses of the WAIT  
Mode for periods longer than the COP time-out period.  
The recommended interactions and considerations for the COP Watchdog Timer,  
STOP instruction, and WAIT instruction are summarized in Table 6-2.  
Table 6-2. COP Watchdog Timer Recommendations  
IF the following conditions exist:  
STOP Instruction  
THEN the  
COP Watchdog Timer  
should be as follows:  
Voltage on IRQ Pin  
WAIT Time  
less than V  
less than V  
less than V  
converted to HALT  
by mask option  
WAIT Time less than  
Enable or disable COP  
by mask option  
TST  
TST  
TST  
COP Time-Out  
converted to HALT  
by mask option  
WAIT Time more than  
Disable COP  
by mask option  
COP Time-Out  
Acts as STOP  
any length  
WAIT Time  
Disable COP  
by mask option  
Acts as STOP or  
converted to HALT  
by mask option  
any length  
WAIT Time  
COP is disabled  
by IRQ input level  
more than V  
TST  
V
= 1.8xV  
DD  
TST  
MC68HC05J5  
REV 1.1  
MODES OF OPERATION  
MOTOROLA  
6-5  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
6-6  
MODES OF OPERATION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 7  
INPUT/OUTPUT PORTS  
In the Single-Chip Mode there are 14 usable bidirectional I/O lines arranged as  
one 8-bit I/O port (Port A), and one 6-bit I/O port (Port B). The individual bits in  
these ports are programmable as either inputs or outputs under software control  
by the data direction registers (DDR’s). Also, if enabled by a single mask option all  
Port A and Port B I/O pins may have individual software programmable pull-down  
or pull-up devices. Also, PA4-PA7 and PB1-PB2 pins have properties of sinking  
higher current; PA0-PA3 may function as additional IRQ interrupt input sources.  
Note that both PA6 and PA7 pins have Schmitt trigger input for better noise  
immunity. V and V specified at 2.4V and 0.8V, respectively.  
IH  
IL  
7.1  
SLOW OUTPUT FALLING-EDGE TRANSITION  
7
6
0
5
4
3
2
DDRB2  
0
1
DDRB1  
0
0
DDRB0  
0
R
DDRB  
$0005  
DDRB5  
DDRB4  
DDRB3  
SLOWE  
0
W
reset  
0
0
0
0
Figure 7-1. Port B Data Direction Register  
SLOWE - Slow Transition Enabled  
The slow transition feature is controlled by the SLOWE bit of DDRB (Port B  
Data Direction Register).  
1 = Enables the slow falling-edge output transition feature on the four  
I/O lines: PA6, PA7, PB1, and PB2. If the pin is configured as an  
output pin.  
0 = Disables slow falling-edge output transition feature on the four I/O  
lines: PA6, PA7, PB1, and PB2. Default value of SLOWE bit is  
cleared.  
7.2  
PORT A  
Port A is an 8-bit bi-directional port which shares five of its pins with the IRQ  
interrupt system as shown in Figure 7-2. Note that both PA6 and PA7 pins have  
Schmitt trigger input for better noise immunity. Only PA6 and PA7 are of open-  
drained type with slow output transition feature. Each Port A pin is controlled by  
MC68HC05J5  
REV 1.1  
INPUT/OUTPUT PORTS  
MOTOROLA  
7-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
the corresponding bits in a data direction register, a data register, and a pull-  
down/up register. The Port A Data Register is located at address $0000. The Port  
A Data Direction Register (DDRA) is located at address $0004. The Port A Pull-  
down/up Register (PDURA) is located at address $0010. Reset clears the DDRA  
and the PDURA. The Port A Data Register is unaffected by reset.  
VDD  
Read $0004  
5K  
Pull-up  
Write $0004  
Data Direction  
Register Bit  
I/O  
Pin  
Write $0000  
Output  
Data  
Register Bit  
8 mA Sink  
Capability  
Read $0000  
Write $0010  
(Bits 4-7 Only)  
100 µA  
Pull-down  
Pull-down/up  
Register Bit  
Internal HC05  
Data Bus  
Reset  
(RST)  
Mask Option  
(Software Pull-down/up Inhibit)  
Note: each I/O port pin can have either Pull-up and pull-down device, not both  
PA6 and PA7 output drivers are of open-drained type  
PA0-PA3 and PA7 only:  
to IRQ  
interrupt system  
Figure 7-2. Port A I/O Circuitry  
7.2.1 Port A Data Register  
Each Port A I/O pin has a corresponding bit in the Port A Data Register. When a  
Port A pin is programmed as an output the state of the corresponding data regis-  
ter bit determines the state of the output pin. When a Port A pin is programmed as  
an input, any read of the Port A Data Register will return the logic state of the cor-  
responding I/O pin. The Port A data register is unaffected by reset.  
7.2.2 Port A Data Direction Register  
Each Port A I/O pin may be programmed as an input by clearing the correspond-  
ing bit in the DDRA, or programmed as an output by setting the corresponding bit  
in the DDRA. The DDRA can be accessed at address $0004. The DDRA is  
cleared by reset.  
If configured as output pins, PA6 and PA7 have slow output falling-edge transition  
feature. The slow transition feature is controlled by the SLOWE bit of DDRB.  
SLOWE bit, if set and if the pin is configured as an output pin, enables the slow  
falling-edge output transition feature of all three I/O lines, PA6, PA7, and PB1.  
MOTOROLA  
7-2  
INPUT/OUTPUT PORTS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
7.2.3 Port A Pull-down/up Register  
All Port A I/O pins may have software programmable pull-down/up devices  
enabled by the applicable mask option. If the pull-down/up mask option is  
selected, the pull-down/up is activated whenever the corresponding bit in the  
PDURA is clear. If the corresponding bit in the PDURA bit is set or the mask  
option for pull-down/up is not chosen, the pull-down/up will be disabled. A pull-  
down on an I/O pin is activated only if the I/O pin is programmed as an input  
whereas a Pull-up device on an I/O pin is always activated whenever enabled,  
regardless of port direction.  
The PDURA is a write-only register. Any reads of location $0010 will return unde-  
fined results. Since reset clears both the DDRA and the PDURA, all pins will ini-  
tialize as inputs with the pull-down active and pull-up devices active (if enabled by  
mask option).  
Typical value of port A pull-up is 5K.  
7.2.4 Port A Drive Capability  
The outputs for the upper four bits of Port A (PA4, PA5, PA6 and PA7) are capable  
of sinking approximately 8 mA of current to V .  
SS  
7.2.5 Port A I/O Pin Interrupts  
The inputs to PA0, PA1, PA2, PA3 may be connected to the IRQ input of the CPU  
if enabled by a mask option.The input to PA7 is also connected to the IRQ input of  
the CPU, yet it is only enabled or disabled by software, not by mask option. PA7  
interrupt capability is controlled by a set of control and status bits (IRQE1, IRQF1,  
IRQR1), different from the set of control and status bits for that of PA0-PA3 and  
IRQ pin (IRQE, IRQF, IRQR) in the same ICSR (Interrupt Control and Status Reg-  
ister).  
When connected as an alternate source of an IRQ interrupt, PA0-3 input pins will  
behave the same as the IRQ pin itself, except that their active state is a logical one  
or a rising edge. The IRQ pin has an active state that is a logical zero or a falling  
edge. PA7 interrupt occurs, if enabled, only upon the falling edge at the input.  
If mask options for both level and edge sensitivity interrupts are chosen, the pres-  
ence of a logic one or occurrence of a rising edge on any one of the lower four  
Port A pins will cause an IRQ interrupt request. If the edge-only sensitivity is  
selected, the occurrence of a rising edge on any one of the lower four Port A pins  
will cause an IRQ interrupt request. As long as any one of the lower four Port A  
IRQ inputs remains at a logic one level, the other of the lower four Port A IRQ  
inputs are effectively ignored.  
MC68HC05J5  
REV 1.1  
INPUT/OUTPUT PORTS  
MOTOROLA  
7-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
NOTE  
The BIH and BIL instructions will only apply to the level on the IRQ pin itself, and  
not to the internal IRQ input to the CPU. Therefore BIH and BIL cannot be used to  
test the state of the lower four Port A input pins as a group nor that of PA7.  
7.3  
PORT B  
Port B is a 6-bit bidirectional port which functions as shown in Figure 7-3. Each  
Port B pin is controlled by the corresponding bits in a data direction register, a  
data register, and a pull-down/up register. The Port B Data Register is located at  
address $0001. The Port B Data Direction Register (DDRB) is located at address  
$0005. The Port B Pull-down/up Register (PDURB) is located at address $0011.  
Reset clears the DDRB and the PDURB. The Port B Data Register is unaffected  
by reset.  
PB1 and PB2 are open-drained type I/Os, capable of typically sinking 25mA  
current each, at V 0.5V max.  
OL  
For the 16-pin package, PB1 and PB2 are connected together to form the pin  
labelled PB1 on the package. This PB1 pin will have a maximum sink current of  
50mA if both PB1 and PB2 are written with the same value at the same write  
cycle.  
VDD  
Read $0005  
100K  
Pull-up  
Write $0005  
Data Direction  
Register Bit  
I/O  
Pin  
Write $0001  
Output  
Data  
Register Bit  
Read $0001  
Write $0011  
Pull-down/up  
Register Bit  
100 µA  
Pull-down  
Internal HC05  
Data Bus  
Reset  
(RST)  
Mask Option  
(Software Pull-down/up Inhibit)  
Note: each I/O port pin can have either Pull-up and pull-down device not both  
PB1 and PB2 output drivers are of open-drained type  
Figure 7-3. Port B I/O Circuitry  
MOTOROLA  
7-4  
INPUT/OUTPUT PORTS  
MC68HC05J5  
REV 1.1  
 
December 11, 1996 GENERAL RELEASE SPECIFICATION  
7.3.1 Port B Data Register  
All Port B I/O pins have a corresponding bit in the Port B Data Register. When a  
Port B pin is programmed as an output the state of the corresponding data regis-  
ter bit determines the state of the output pin. When a Port B pin is programmed as  
an input, any read of the Port B Data Register will return the logic state of the cor-  
responding I/O pin. The Port B data register is unaffected by reset. Unused bits 6  
and 7 will always read as logic zeros, and any write to these bits will be ignored.  
The Port B data register is unaffected by reset.  
7.3.2 Port B Data Direction Register  
Port B I/O pins may be programmed as an input by clearing the corresponding bit  
in the DDRB, or programmed as an output by setting the corresponding bit in the  
DDRB. The DDRB can be accessed at address $0005. Unused bits 6 and 7 will  
always read as logic zeros, and any write to these bits will be ignored.The DDRB  
is cleared by reset.  
If configured as output pins, PB1 and PB2 have slow output falling-edge transition  
feature. The slow transition feature is controlled by the SLOWE bit of DDRB.  
SLOWE bit, if set and if the pin is configured as an output pin, enables the slow  
falling-edge output transition feature of all four I/O lines, PA6, PA7, PB1 and PB2.  
For the 16-pin package type, care should be taken in using PB1 pin, which is  
bonded to two internal port B I/O lines PB1 and PB2, to constitute a 50 mA current  
sinking driver. Both PB1 and PB2 I/O lines are capable of sinking 25 mA. If they  
are written with the same logic 0 value in the same write cycle, PB1 pin will sink  
50 mA. If they are written with different values in the same write cycle, PB1 pin will  
sink only 25 mA.  
For the 20-pin package type, I/O lines PB1 and PB2 are not bonded to the same  
pin. Hence, to constitute a 50mA current sinking driver, PB1 and PB2 pins have to  
be tied together externally and controlled in the same way as in the16-pin pack-  
age type case.  
Also, if the slow transition feature of pin PB1 is enabled, a combination of I/O lines  
PB1 and PB2, is also a combination of slow transition features of I/O lines PB1  
and PB2. PB2 line falling-edge output transition occurs t  
/2 after the write  
CYC  
cycle, with a standard I/O edge transition time. Whereas for PB1 line, the falling-  
edge transition occurring immediately after the write cycle, but with an edge  
transition time slower than standard I/Os, similar to PA6 and PA7 pins.  
The net result is, for the 16-pin package type, since both PB1 and PB2 I/O lines  
are bonded to the same PB1 pin, the combination of delayed PB1 line sharp-edge  
output and the non-delayed slow transition output yields the desired slow output  
falling-edge transition.  
For the 20-pin package, PB1 and PB2 pins should be tied externally to create a  
driver with the desired slow output falling-edge transition feature. If SLOWE is set  
and PB2 pin is not tied to PB1 pin, be advised that the output at PB2 changes  
state t  
/2 after the write cycle.  
CYC  
MC68HC05J5  
REV 1.1  
INPUT/OUTPUT PORTS  
MOTOROLA  
7-5  
GENERAL RELEASE SPECIFICATION December 11, 1996  
7.3.3 Port B Pull-down/up Register  
All Port B I/O pins may have software programmable pull-down/up devices  
enabled by a mask option. If the pull-down/up mask option is selected, the pull-  
down/up is activated whenever the corresponding bit in the PDURB is clear. A  
pull-down on an I/O pin is activated only if the I/O pin is programmed as an input  
whereas a Pull-up device on an I/O pin is always activated whenever enabled,  
regardless of port direction.  
The PDURB is a write-only register. Any reads of location $0011 will return unde-  
fined results. Since reset clears both the DDRB and the PDURB, all pins will ini-  
tialize as inputs with the pull-down devices active and pull-up devices active (if  
chosen via mask option).  
Typical value of port B pull-up is 100K.  
7.4  
I/O PORT PROGRAMMING  
All I/O pins can be programmed as inputs or outputs, with or without pull-down/up  
devices.  
7.4.1 Pin Data Direction  
The direction of a pin is determined by the state of its corresponding bit in the  
associated port Data Direction Register (DDR). A pin is configured as an output if  
its corresponding DDR bit is set to a logic one. A pin is configured as an input if its  
corresponding DDR bit is cleared to a logic zero.  
The data direction bits DDRB0 to DDRB2 and DDRA0 to DDRA7 are read/write  
bits which can be manipulated with read-modify-write instructions. At power-on or  
reset, all DDRs are cleared which configures all port pins as inputs. If the pull-  
down/up mask option is chosen, all pins will initially power-up with their software  
programmable pull-downs/ups enabled.  
7.4.2 Output Pin  
When an I/O pin is programmed as an output pin, the state of the corresponding  
data register bit will determine the state of the pin. The state of the data register  
bits can be altered by writing to address $0000 for Port A and address $0001 for  
Port B. Reads of the corresponding data register bit at address $0000 or $0001  
will return the state of the data register bit (not the state of the I/O pin itself).  
Therefore bit manipulation is possible on all pins programmed as outputs.  
If the corresponding bit in the pull-down/up register is clear (and the pull-down/up  
mask option is chosen), only output pins with pull-ups have an activated pull-up  
device connected to the pin. For those pins with pull-downs and configured as out-  
put pins, the pull-downs will be inactivated regardless of the state of the corre-  
sponding pull-down/up register bit. Since the pull-down/up register bits are write-  
only, bit manipulation should not be used on these register bits.  
MOTOROLA  
7-6  
INPUT/OUTPUT PORTS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
7.4.3 Input Pin  
When an I/O pin is programmed as an input pin, the state of the pin can be deter-  
mined by reading the corresponding data register bit. Any writes to the corre-  
sponding data register bit for an input pin will be ignored in the sense that the  
written value will not be reflected on the pin, rather it is only reflected in the port  
data register. Please refer to Table 7-1 and Table 7-2 for details.  
If the corresponding bit in the pull-down/up register is clear (and the pull-down/up  
mask option is chosen) the input pin will also have an activated pull-down/up  
device. Since the pull-down/up register bits are write-only, bit manipulation should  
not be used on these register bits.  
7.4.4 I/O Pin Transitions  
A "glitch" can be generated on an I/O pin when changing it from an input to an out-  
put unless the data register is first preconditioned to the desired state before  
changing the corresponding DDR bit from a zero to a one.  
If pull-downs are enabled by mask option, a floating input can be avoided by clear-  
ing the pull-down/up register bit before changing the corresponding DDR from a  
one to a zero. This will insure that the pull-down device will be activated before the  
I/O pin changes from a driven output to a pulled low/high input.  
7.4.5 I/O Pin Truth Tables  
Every pin on Port A and Port B may be programmed as an input or an output  
under software control as shown in Table 7-1 and Table 7-2. All port I/O pins may  
also have software programmable pull-down/up devices if selected by the  
appropriate mask option.  
Table 7-1. Port A I/O Pin Functions  
Accesses to  
PDURA  
at $0010  
Accesses  
to DDRA  
@ $0004  
Accesses to  
Data Register  
@ $0000  
DDRA  
I/O Pin Mode  
Read/Write  
Read  
Read  
Write  
Write  
0
1
IN, Hi-Z  
OUT  
U
U
PDURA0-7 DDRA0-7 I/O Pin  
PDURA0-7 DDRA0-7 PA0-7  
*
PA0-7  
* Does not affect input,  
U is undefined  
but stored to data register  
Table 7-2. Port B I/O Pin Functions  
Accesses to  
PDURB  
at $0011  
Accesses  
to DDRB  
@ $0005  
Accesses to  
Data Register  
@ $0001  
DDRA  
I/O Pin Mode  
Read/Write  
Read  
Read  
Write  
Write  
0
1
IN, Hi-Z  
OUT  
U
U
PDURB0-2 DDRB0-2 I/O Pin  
PDURB0-2 DDRB0-2 PB0-2  
*
PB0-2  
U is undefined  
* Does not affect input,  
but stored to data register  
MC68HC05J5  
REV 1.1  
INPUT/OUTPUT PORTS  
MOTOROLA  
7-7  
 
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
7-8  
INPUT/OUTPUT PORTS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 8  
MULTI-FUNCTION TIMER  
The MC68HC05J5 timer is a 15-stage multi-function ripple counter. The features  
include Timer Over Flow (TOF), Power-On Reset (POR), Real Time Interrupt  
(RTI), and COP Watchdog Timer.  
MC68HC05 Internal Bus  
COP  
Clear  
8
8
$09 TCR  
Timer Counter Register (TCR)  
TCR  
2
Internal  
Timer Clock  
(NTF1)  
f
/2  
op  
÷4  
10  
f
/2  
op  
7-bit counter  
POR  
TCBP  
Overflow  
Detect  
Circuit  
RTI Select Circuit  
÷8  
$08 TCSR  
Timer Control & Status Register  
TCSR  
TOF RTIF TOFE RTIE TOFR RTIFR RT1 RT0  
Interrupt Circuit  
COP Watchdog  
Timer  
To Interrupt  
Logic  
To Reset  
Logic  
Figure 8-1. Multi-Function Timer Block Diagram  
As shown in Figure 8-1, the Timer is driven by the timer clock, NTF1, divided by  
four (4). NTF1 has the same phase and frequency as the processor bus clock,  
PH2, but is not stopped by the WAIT or HALT Modes. This signal drives an 8-bit  
ripple counter.The value of this 8-bit ripple counter can be read by the CPU at any  
time by accessing the Timer Counter Register (TCR) at address $09. A timer over-  
flow function is implemented on the last stage of this counter, giving a possible  
MC68HC05J5  
REV 1.1  
MULTI-FUNCTION TIMER  
MOTOROLA  
8-1  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
interrupt at the rate of f /1024. Two additional stages produce the POR function  
op  
at f /4064. The Timer Counter Bypass circuitry (available only in Expanded Test  
op  
Mode) is at this point in the timer chain. This circuit is followed by two more  
stages, with the resulting clock (f /16384) driving the Real Time Interrupt circuit.  
op  
The RTI circuit consists of three divider stages with a 1 of 4 selector. The output of  
the RTI circuit is further divided by eight to drive the optional COP Watchdog  
Timer circuit, which can be enabled by a mask option. The RTI rate selector bits,  
and the RTI and TOF enable bits and flags are located in the Timer Control and  
Status Register at location $08.  
The Real Time Interrupt circuit consists of a three stage divider and a 1 of 4 selec-  
14  
tor. The clock frequency that drives the RTI circuit is f /2 (or f /16384) with  
op  
op  
17  
three additional divider stages giving a maximum interrupt period of f /2 (or f /  
op  
op  
131072).  
The power-on cycle clears the entire counter chain and begins clocking the  
counter. After 4064 cycles, the power-on reset circuit is released which again  
clears the counter chain and allows the device to come out of reset. At this point, if  
RESET is not asserted, the timer will start counting up from zero and normal  
device operation will begin. If RESET is asserted at any time during operation the  
counter chain will be cleared.  
8.1  
TIMER REGISTERS  
The 15-stage Multi-function Timer contains two registers: a Timer Counter Regis-  
ter and a Timer Control/Status Register.  
8.1.1 Timer Counter Register (TCR), $09  
The Timer Counter Register is a read-only register which contains the current  
value of the 8-bit ripple counter at the beginning of the timer chain. This counter is  
clocked at f divided by 4 and can be used for various functions including a soft-  
op  
ware input capture. Extended time periods can be attained using the TOF function  
to increment a temporary RAM storage location thereby simulating a 16-bit (or  
more) counter. The value of each bit of the TCR is shown in Figure 8-2. This reg-  
ister is cleared by reset.  
7
6
5
4
3
2
1
0
R
TMR7  
TMR6  
TMR5  
TMR4  
TMR3  
TMR2  
TMR1  
TMR0  
TCR  
$09  
W
Reset  
0
0
0
0
0
0
0
0
Figure 8-2. Timer Counter Register  
MOTOROLA  
8-2  
MULTI-FUNCTION TIMER  
MC68HC05J5  
REV 1.1  
 
December 11, 1996 GENERAL RELEASE SPECIFICATION  
8.1.2 Timer Control/status Register (TCSR), $08  
The TCSR contains the timer interrupt flag bits, the timer interrupt enable bits, and  
the real time interrupt rate select bits. Bit 2 and bit 3 are write-only bits which will  
read as logical zeros. Figure 8-3 shows the value of each bit in the TCSR follow-  
ing reset.  
7
6
5
4
3
2
1
0
R
RTIF  
TOF  
0
0
TCSR  
$08  
TOFE  
0
RTIE  
0
RT1  
1
RT0  
1
W
TOFR  
0
RTIFR  
0
Reset  
0
0
Figure 8-3. Timer Control/Status Register (TCSR)  
TOF - Timer Overflow Flag  
The TOF is a read-only flag bit.  
1 = Set when the 8-bit ripple counter rolls over from $FF to $00. A  
TIMER Interrupt request will be generated if TOFE is also set.  
0 = Reset by writing a logical one to the TOF acknowledge bit, TOFR.  
Writing to the TOF flag bit has no effect on its value. This bit is  
cleared by reset.  
RTIF - Real Time Interrupt Flag  
The RTIF is a read-only flag bit.  
1 = Set when the output of the chosen (1 of 4 selections) Real Time  
Interrupt stage goes active. A TIMER Interrupt request will be  
generated if RTIE is also set.  
0 = Reset by writing a logical one to the RTIF acknowledge bit, RTIFR.  
Writing to the RTIF flag bit has no effect on its value. This bit is  
cleared by reset.  
TOFE - Timer Overflow Enable  
The TOFE is an enable bit that allows generation of a TIMER Interrupt upon  
overflow of the Timer Counter Register.  
1 = When set, the TIMER Interrupt is generated when the TOF flag bit is  
set.  
0 = When cleared, no TIMER interrupt caused by TOF bit set will be  
generated. This bit is cleared by reset.  
RTIE - Real Time Interrupt Enable  
The RTIE is an enable bit that allows generation of a TIMER Interrupt by the  
RTIF bit.  
1 = When set, the TIMER Interrupt is generated when the RTIF flag bit is  
set.  
0 = When cleared, no TIMER interrupt caused by RTIF bit set will be  
generated. This bit is cleared by reset.  
MC68HC05J5  
REV 1.1  
MULTI-FUNCTION TIMER  
MOTOROLA  
8-3  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
TOFR - Timer Overflow Acknowledge  
The TOFR is an acknowledge bit that resets the TOF flag bit. This bit is unaf-  
fected by reset. Reading the TOFR will always return a logical zero.  
1 = Clears the TOF flag bit.  
0 = Does not clear the TOF flag bit.  
RTIFR - Real Time Interrupt Acknowledge  
The RTIFR is an acknowledge bit that resets the RTIF flag bit. This bit is unaf-  
fected by reset. Reading the RTIFR will always return a logical zero.  
1 = Clears the RTIF flag bit.  
0 = Does not clear the RTIF flag bit.  
RT1:RT0 - Real Time Interrupt Rate Select  
The RT0 and RT1 control bits select one of four taps for the Real Time Interrupt  
circuit. Table 8-1 shows the available interrupt rates for two f values. Both the  
OP  
RT0 and RT1 control bits are set by reset, selecting the lowest periodic rate and  
therefore the maximum time in which to alter these bits if necessary. Care  
should be taken when altering RT0 and RT1 if the time-out period is imminent  
or uncertain. If the selected tap is modified during a cycle in which the counter  
is switching, an RTIF could be missed or an additional one could be generated.  
To avoid problems, the COP should be cleared just prior to changing RTI taps.  
Table 8-1. RTI Rates and COP Reset Times  
RTI RATES AT f FREQ. SPECIFIED:  
MIN. COP RESET AT f FREQ. SPECIFIED:  
OP  
OP  
1.000 MHz  
16.384 ms  
32.768 ms  
65.536 ms  
131.072 ms  
RT1:RT0  
Divider  
16384  
32768  
65536  
131072  
2.000 MHz  
8.192 ms  
Divider  
131072  
262144  
524288  
1048576  
1.000 MHz  
131 ms  
262 ms  
524 ms  
1.059 s  
2.000 MHz  
66 ms  
00  
01  
10  
11  
16.384 ms  
32.768 ms  
65.536 ms  
131 ms  
262 ms  
524 ms  
8.2  
COP WATCHDOG TIMER  
The COP (Computer Operating Properly) Watchdog Timer function is imple-  
mented on this device by using the output of the RTI circuit and further dividing it  
by eight. The minimum COP reset times are listed in Table 8-1. If the COP circuit  
times out, an internal reset is generated and the reset vector is fetched. Prevent-  
ing a COP time-out is done by writing a logical zero to bit 0 of address $07F0 as  
shown in Figure 8-4. The COP register is shared with a Test ROM byte. This  
address location is not affected by any reset signals. Reading this location will  
return the Test ROM byte. When the COP is cleared, only the final divide by eight  
stage (output of the RTI) is cleared. The COP Watchdog Timer can be enabled/  
disabled by a mask option.  
MOTOROLA  
8-4  
MULTI-FUNCTION TIMER  
MC68HC05J5  
REV 1.1  
 
December 11, 1996 GENERAL RELEASE SPECIFICATION  
7
6
5
4
3
2
1
0
R
COP  
$07F0  
W
COPR  
Reading $07F0 returns the contents of Test ROM.  
Unimplemented  
Figure 8-4. COP Watchdog Timer Location  
OPERATION DURING STOP MODE  
8.3  
8.4  
The timer system is cleared when going into STOP mode. When STOP is exited  
by an external interrupt or an LVR reset or an external RESET, the internal oscilla-  
tor will resume, followed by a 4064 internal processor oscillator stabilization delay.  
The timer system counter is then cleared and operation resumes. If chosen by a  
mask option, the STOP instruction will initiate HALT mode and the effects on the  
timer are as described in Section 8.4.  
OPERATION DURING WAIT/HALT MODE  
The CPU clock halts during the WAIT/HALT mode, but the timer remains active. If  
interrupts are enabled, a timer interrupt or custom periodic interrupt will cause the  
processor to exit the WAIT/HALT mode.  
MC68HC05J5  
REV 1.1  
MULTI-FUNCTION TIMER  
MOTOROLA  
8-5  
 
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
8-6  
MULTI-FUNCTION TIMER  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 9  
INSTRUCTION SET  
The MCU has a set of 62 basic instructions. They can be divided into five different  
types: register/memory, read-modify-write, branch, bit manipulation, and control.  
The following paragraphs briefly explain each type. For more information on the  
instruction set, refer to the M6805 Family User’s Manual (M6805UM/AD2) or the  
associated MC68HC05 Data Sheet.  
9.1  
REGISTER/MEMORY INSTRUCTIONS  
Most of these instructions use two operands. One operand is either the accumula-  
tor or the index register. The other operand is obtained from memory using one of  
the addressing modes. The jump unconditional (JMP) and jump to subroutine  
(JSR) instructions have no register operand. Refer to the following instruction list.  
Function  
Load A from Memory  
Mnemonic  
LDA  
Load X from Memory  
LDX  
Store A in Memory  
STA  
Store X in Memory  
STX  
Add Memory to A  
ADD  
ADC  
SUB  
SBC  
AND  
ORA  
EOR  
CMP  
CPX  
BIT  
Add Memory and Carry to A  
Subtract Memory  
Subtract Memory from A with Borrow  
AND Memory to A  
OR Memory with A  
Exclusive OR Memory with A  
Arithmetic Compare A with Memory  
Arithmetic Compare X with Memory  
Bit Test Memory with A (Logical Compare)  
Jump Unconditional  
JMP  
JSR  
Jump to Subroutine  
Multiply  
MUL  
MC68HC05J5  
REV 1.1  
INSTRUCTION SET  
MOTOROLA  
9-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
9.2  
READ-MODIFY-WRITE INSTRUCTIONS  
These instructions read a memory location or a register, modify or test its con-  
tents, and write the modified value back to memory or to the register. The test for  
negative or zero (TST) instruction is an exception to the read-modify-write  
sequence since it does not modify the value. Do not use these read-modify-write  
instructions on write-only locations. Refer to the following list of instructions.  
Function  
Mnemonic  
INC  
Increment  
Decrement  
Clear  
DEC  
CLR  
Complement  
COM  
NEG  
ROL  
ROR  
LSL  
Negate (Two’s Complement)  
Rotate Left to Carry  
Rotate Right to Carry  
Logical Shift Left  
Logical Shift Right  
LSR  
Arithmetic Shift Right  
Arithmetic Shift Left  
Test for Negative or Zero  
ASR  
ASL  
TST  
9.3  
BRANCH INSTRUCTIONS  
This set of instructions branches if a particular condition is met; otherwise, no  
operation is performed. Branch instructions are two-byte instructions. Refer to the  
following list for branch instructions.  
Function  
Mnemonic  
BRA  
BRN  
BHI  
Branch Always  
Branch Never  
Branch if Higher  
Branch if Lower or Same  
Branch if Carry Clear  
Branch if Higher or Same  
Branch if Carry Set  
BLS  
BCC  
BHS  
BCS  
BLO  
BNE  
BEQ  
BHCC  
BHCS  
BPL  
Branch if Lower  
Branch if Not Equal  
Branch if Equal  
Branch if Half Carry Clear  
Branch if Half Carry Set  
Branch if Plus  
Branch if Minus  
BMI  
Branch if Interrupt Mask Bit is Clear  
Branch if Interrupt Mask Bit is Set  
Branch if Interrupt Line is Low  
Branch if Interrupt Line is High  
Branch to Subroutine  
BMC  
BMS  
BIL  
BIH  
BSR  
MOTOROLA  
9-2  
INSTRUCTION SET  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
9.4  
BIT MANIPULATION INSTRUCTIONS  
The MCU is capable of setting or clearing any read/write bit which resides in the  
first 256 bytes of the memory space where all port registers, module registers,  
and part or all of on-chip RAM reside. An additional feature allows the software to  
test and branch on the state of any bit within these 256 locations. The bit set, bit  
clear, and bit test and branch functions are each implemented with a single  
instruction. For test and branch instructions, the value of the bit tested is also  
placed in the carry bit of the condition code register. The bit set and bit clear  
instructions are also read-modify-write instructions and should not be used to  
manipulate write-only locations. Refer to the following list for bit manipulation  
instructions.  
Function  
Mnemonic  
Set Bit n  
BSET n (n = 0. . .7)  
BCLR n (n = 0. . .7)  
BRSET n (n = 0. . .7)  
BRCLR n (n = 0. . .7)  
Clear Bit n  
Branch if Bit n is Set  
Branch if bit n is Clear  
9.5  
CONTROL INSTRUCTIONS  
These instructions are register reference instructions and are used to control pro-  
cessor operation during program execution. Refer to the following list for control  
instructions.  
Function  
Mnemonic  
TAX  
Transfer A to X  
Transfer X to A  
Set Carry Bit  
TXA  
SEC  
CLC  
Clear Carry Bit  
Set Interrupt Mask Bit  
Clear Interrupt Mask Bit  
Software Interrupt  
Return from Subroutine  
Return from Interrupt  
Reset Stack Pointer  
No-Operation  
SEI  
CLI  
SWI  
RTS  
RTI  
RSP  
NOP  
STOP  
WAIT  
Stop  
Wait  
9.6  
ADDRESSING MODES  
The MCU uses ten different addressing modes to provide the programmer with an  
opportunity to optimize the code for all situations. The various indexed addressing  
modes make it possible to locate data tables, code conversion tables, and scaling  
MC68HC05J5  
REV 1.1  
INSTRUCTION SET  
MOTOROLA  
9-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
tables anywhere in the memory space. Short indexed accesses are single byte  
instructions; the longest instructions (three bytes) permit accessing tables  
throughout memory. Short and long absolute addressing is also included. One- or  
two-byte direct addressing instructions access all data bytes in most applications.  
Extended addressing permits jump instructions to reach all memory.  
The term "effective address" (EA) is used in describing the various addressing  
modes. Effective address is defined as the address from which the argument for  
an instruction is fetched or stored.  
9.6.1 Immediate  
In the immediate addressing mode, the operand is contained in the byte immedi-  
ately following the opcode. The immediate addressing mode is used to access  
constants that do not change during program execution (e.g., a constant used to  
initialize a loop counter).  
9.6.2 Direct  
In the direct addressing mode, the effective address of the argument is contained  
in a single byte following the opcode byte. Direct addressing allows the user to  
directly address the lowest 256 bytes in memory with single two-byte instructions.  
9.6.3 Extended  
In the extended addressing mode, the effective address of the argument is con-  
tained in the two bytes following the opcode byte. Instructions with extended  
addressing mode are capable of referencing arguments anywhere in memory with  
a single three-byte instruction. When using the Motorola assembler, the user need  
not specify whether an instruction uses direct or extended addressing. The  
assembler automatically selects the shortest form of the instruction.  
9.6.4 Relative  
The relative addressing mode is only used in branch instructions. In relative  
addressing, the contents of the 8-bit signed offset byte (which is the last byte of  
the instruction) is added to the PC if, and only if, the branch conditions are true.  
Otherwise, control proceeds to the next instruction. The span of relative address-  
ing is from -128 to +127 from the address of the next opcode. The programmer  
need not calculate the offset when using the Motorola assembler, since it calcu-  
lates the proper offset and checks to see that it is within the span of the branch.  
9.6.5 Indexed, No Offset  
In the indexed, no offset addressing mode, the effective address of the argument  
is contained in the 8-bit index register. This addressing mode can access the first  
256 memory locations. These instructions are only one byte long. This mode is  
often used to move a pointer through a table or to hold the address of a frequently  
referenced RAM or I/O location.  
MOTOROLA  
9-4  
INSTRUCTION SET  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
9.6.6 Indexed, 8-bit Offset  
In the indexed, 8-bit offset addressing mode, the effective address is the sum of  
the contents of the unsigned 8-bit index register and the unsigned byte following  
the opcode.The addressing mode is useful for selecting the Kth element in an ele-  
ment table. With this two-byte instruction, K would typically be in X with the  
address of the beginning of the table in the instruction. As such, tables may begin  
anywhere within the first 256 addressable locations and could extend as far as  
location 510. $1FE is the highest location which can be accessed in this way.  
9.6.7 Indexed, 16-bit Offset  
In the indexed, 16-bit offset addressing mode, the effective address is the sum of  
the contents of the unsigned 8-bit index register and the two unsigned bytes fol-  
lowing the opcode. This address mode can be used in a manner similar to  
indexed, 8-bit offset except that this three-byte instruction allows tables to be any-  
where in memory. As with direct and extended addressing, the Motorola assem-  
bler determines the shortest form of indexed addressing.  
9.6.8 Bit Set/Clear  
In the bit set/clear addressing mode, the bit to be set or cleared is part of the  
opcode, and the byte following the opcode specifies the direct address of the byte  
in which the specified bit is to be set or cleared. Any read/write register bit in the  
first 256 locations of memory, including I/O, can by selectively set or cleared with a  
single two-byte instruction.  
9.6.9 Bit Test and Branch  
The bit test and branch addressing mode is a combination of direct addressing  
and relative addressing. The bit that is to be tested and its condition (set or clear),  
is included in the opcode. The address of the byte to be tested is in the single byte  
immediately following the opcode byte. The signed relative 8-bit offset in the third  
byte is added to the PC if the specified bit is set or cleared in the specified mem-  
ory location. This single three-byte instruction allows the program to branch based  
on the condition of any readable bit in the first 256 locations of memory. The span  
of branching is from -128 to +127 from the address of the next opcode. The state  
of the tested bit is also transferred to the carry bit of the condition code register.  
9.6.10 Inherent  
In the inherent addressing mode, all the information necessary to execute the  
instruction is contained in the opcode. Operations specifying only the index regis-  
ter and/or accumulator as well as the control instructions with no other arguments  
are included in this mode. These instructions are one byte long.  
MC68HC05J5  
REV 1.1  
INSTRUCTION SET  
MOTOROLA  
9-5  
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
9-6  
INSTRUCTION SET  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 10  
ELECTRICAL SPECIFICATIONS  
10.1 MAXIMUM RATINGS  
(Voltages referenced to V  
)
SS  
Rating  
Symbol  
Value  
Unit  
V
Supply Voltage  
Input Voltage  
Expanded Test Mode (IRQ Pin Only)  
V
–0.3 to +7.0  
DD  
V
V
–0.3 to V +0.3  
V
IN  
IN  
SS  
DD  
V
V
–0.3 to 2V +0.3  
V
SS  
DD  
Current Drain Per Pin Excluding PB1, PB2, V and V  
I
–25  
mA  
DD  
SS  
Operating Temperature Range  
(Standard)  
T to T  
L H  
0 to +70  
–40 to +85  
T
°C  
°C  
A
(Extended)  
Storage Temperature Range  
T
–65 to +150  
STG  
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 V and  
IN  
V
be constrained to the range V (V or V  
) V . Reliability of opera-  
OUT  
SS  
IN  
OUT DD  
tion is enhanced if unused inputs are connected to an appropriate logic voltage  
level (e.g., either V or V ).  
SS  
DD  
10.2 THERMAL CHARACTERISTICS  
Characteristic  
Symbol  
Value  
Unit  
Thermal Resistance  
Plastic  
SOIC  
θ JA  
60  
60  
°C/W  
°C/W  
MC68HC05J5  
REV 1.1  
ELECTRICAL SPECIFICATIONS  
MOTOROLA  
10-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
10.3 DC ELECTRICAL CHARACTERISTICS  
(V = 5.0 Vdc ±10%, V = 0 VDC, T = –40°C to +85°C, unless otherwise noted)  
DD  
SS  
A
Characteristic  
Symbol  
Min  
Typ  
Max  
Unit  
Output voltage  
V
V
0.1  
V
V
OL  
I
= 10.0 µA  
V
V
–0.1  
OH  
DD  
Load  
Output High Voltage (I  
= -0.8 mA)  
Load  
PA0-5, PB0, PB3-5  
V
–0.8  
V
V
V
OH  
DD  
Output Low Voltage  
(I  
(I  
(I  
= 1.6 mA) PA0-3, PB0, PB3-5  
= 8.0 mA) PA4-PA7  
= 25.0 mA) PB1, PB2 (note 8)  
0.4  
0.4  
0.5  
Load  
Load  
Load  
V
OL  
Input High Voltage  
PA0-5, PB0-5, IRQ, RESET, OSC1  
V
0.7×V  
V
IH  
DD  
DD  
Input Low Voltage  
PA0-5, PB0-5, IRQ, RESET, OSC1  
V
V
0.2×V  
DD  
V
V
IL  
SS  
Positive-Going Input Threshold Voltage  
PA6, PA7 (note 9)  
V
1.7  
T+  
Negative-Going Input Threshold Voltage  
PA6, PA7 (note 9)  
V
1.15  
V
T–  
Supply Current (see Notes)  
Run  
TBD  
TBD  
TBD  
TBD  
TBD  
TBD  
mA  
mA  
Wait  
Stop (LVR on)  
25°C  
–40°C to +85°C  
Stop (LVR off)  
25°C  
I
TBD  
TBD  
TBD  
TBD  
TBD  
TBD  
µA  
µA  
DD  
TBD  
TBD  
TBD  
TBD  
TBD  
TBD  
µA  
µA  
–40°C to +85°C  
I/O Ports Hi-Z Leakage Current  
PA0-7, PB0-5  
I
I
±10  
µA  
IL  
(without individual pull-down/up activated)  
Input Pull-down Current  
PA0-5, PB0, PB3-5  
(with individual pull-down activated)  
50  
100  
200  
µA  
µA  
IL  
Input Current  
±1  
RESET, IRQ, OSC1  
I
IN  
Capacitance  
Ports (as Input or Output)  
RESET, IRQ, OSC1, OSC2/R  
C
C
12  
8
pF  
pF  
OUT  
IN  
Crystal/Ceramic Resonator Oscillator Mode  
Internal Resistor  
R
OSC  
1.0  
2.0  
3.0  
MΩ  
OSC1 to OSC2/R  
Pull-up Resistor  
PA6, PA7 (note 10)  
PB1, PB2  
R
2
25  
5
100  
10  
200  
KΩ  
KΩ  
PULLUP  
LVR Trigger Voltage  
V
TBD  
2.8  
TBD  
V
LVR  
MOTOROLA  
10-2  
ELECTRICAL SPECIFICATIONS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
NOTES:  
1. All values shown reflect average measurements.  
2. Typical values at midpoint of voltage range, 25°C only.  
3. Wait I : Only timer system (MFT) active.  
DD  
4. Run (Operating) I , Wait I : Measured using external square wave clock source to OSC1 (f = 2.0 MHz), all inputs 0.2 Vdc  
OSC  
DD  
DD  
from rail; no dc loads, less than 50pF on all outputs, C = 20 pF on OSC2/R.  
L
5. Wait, Stop I : All ports configured as inputs, V = 0.2 Vdc, V = V –0.2 Vdc.  
DD  
IL  
IH  
DD  
6. Stop I measured with OSC1 = V  
.
SS  
DD  
7. Wait I is affected linearly by the OSC2/R capacitance.  
DD  
8.  
T = 0°C to +40°C.  
A
9. Minimum and maximum values of both V and V will be determined after enough characterization has been done. Input voltage  
T+  
T–  
level on PA6 or PA7 higher than 2.4V is guaranteed to be recognized as a logical one and as a logic zero if lower than 0.8V.  
10. PA6 and PA7 pull-up resistor values are specified under the condition that pin voltage ranges from 0V to 2.4V.  
10.4 CONTROL TIMING  
(V = 5.0 Vdc ±10%, V = 0 VDC, T = –40°C to +85°C, unless otherwise noted)  
DD  
SS  
A
Characteristic  
Symbol  
Min  
Max  
Units  
Frequency of Operation  
RC Oscillator Option (note 3)  
Crystal Oscillator Option  
External Clock Source  
3.8  
dc  
4.2  
4.2  
4.2  
MHz  
MHz  
MHz  
f
OSC  
Internal Operating Frequency  
Crystal Oscillator (f  
÷ 2)  
÷ 2) (note 3)  
1.9  
dc  
2.1  
2.1  
2.1  
MHz  
MHz  
MHz  
OSC  
f
OP  
RC Oscillator (f  
OSC  
External Clock (f  
÷ 2)  
OSC  
Cycle Time (1/f  
)
t
415  
1.5  
ns  
OP  
CYC  
RESET Pulse Width Low  
t
t
t
t
t
t
t
RL  
CYC  
CYC  
CYC  
CYC  
CYC  
IRQ Interrupt Pulse Width Low (Edge-Triggered)  
IRQ Interrupt Pulse Period  
t
0.5  
ILIH  
t
note 1  
0.5  
ILIL  
IHIL  
IHIH  
PA0 to PA3 Interrupt Pulse Width High (Edge-Triggered)  
PA0 to PA3 Interrupt Pulse Period  
PA7 Interrupt Pulse Width Low  
t
t
note 1  
0.5  
t
ILIH  
CYC  
OSC1 Pulse Width  
t
, t  
200  
ns  
OH OL  
Output High to Low Transition Period on PA6, PA7, PB1  
NOTES:  
t
TBD  
TBD  
ns  
SLOW  
1. The minimum period t  
or t  
should not be less than the number of cycles it takes to execute the interrupt service routine plus  
ILIL  
IHIH  
19 t  
.
CYC  
2. Effects of processing, temperature, and supply voltage (excluding tolerances of external R and C).  
3. RC oscillator: Typical center frequency is 4.0 MHz. For the specified range of the operating center frequency from 3.8MHz (min)  
to 4.2 MHz (max), the frequency tolerance is guaranteed to be no more than ±15% under the conditions that V = 5.0 VDC ±10%,  
DD  
T
= 0°C to +40°C and the tolerance of the external R is at most ±1%.  
A
MC68HC05J5  
REV 1.1  
ELECTRICAL SPECIFICATIONS  
MOTOROLA  
10-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
10-4  
ELECTRICAL SPECIFICATIONS  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
SECTION 11  
MECHANICAL SPECIFICATION  
This section provides the mechnical dimensions for the four available packages  
for MC68HC05J5.  
11.1 16-PIN PLASTIC DUAL-IN-LINE PACKAGE (PDIP)  
NOTES:  
–A–  
1. DIMENSIONING AND TOLERANCING PER ANSI  
Y14.5M, 1982.  
2. CONTROLLING DIMENSION: INCH.  
3. DIMENSION L TO CENTER OF LEADS WHEN  
FORMED PARALLEL.  
4. DIMENSION B DOES NOT INCLUDE MOLD FLASH.  
5. ROUNDED CORNERS OPTIONAL.  
16  
1
9
8
B
S
INCHES  
DIM MIN MAX  
MILLIMETERS  
MIN  
18.80  
6.35  
3.69  
0.39  
1.02  
MAX  
19.55  
6.85  
4.44  
0.53  
1.77  
F
A
B
C
D
F
0.740  
0.250  
0.145  
0.015  
0.040  
0.770  
0.270  
0.175  
0.021  
0.70  
C
L
SEATING  
PLANE  
–T–  
G
H
J
K
L
0.100 BSC  
0.050 BSC  
2.54 BSC  
1.27 BSC  
K
M
0.008  
0.015  
0.130  
0.305  
10  
0.21  
0.38  
3.30  
7.74  
10  
H
J
0.110  
0.295  
0
2.80  
7.50  
0
G
D 16 PL  
M
S
0.020  
0.040  
0.51  
1.01  
M
M
0.25 (0.010)  
T A  
STYLE 1:  
STYLE 2:  
PIN 1. CATHODE  
2. CATHODE  
3. CATHODE  
4. CATHODE  
5. CATHODE  
6. CATHODE  
7. CATHODE  
8. CATHODE  
9. ANODE  
PIN 1. COMMON DRAIN  
2. COMMON DRAIN  
3. COMMON DRAIN  
4. COMMON DRAIN  
5. COMMON DRAIN  
6. COMMON DRAIN  
7. COMMON DRAIN  
8. COMMON DRAIN  
9. GATE  
10. ANODE  
11. ANODE  
12. ANODE  
13. ANODE  
14. ANODE  
15. ANODE  
16. ANODE  
10. SOURCE  
11. GATE  
12. SOURCE  
13. GATE  
14. SOURCE  
15. GATE  
16. SOURCE  
MC68HC05J5  
REV 1.1  
MECHANICAL SPECIFICATION  
MOTOROLA  
11-1  
GENERAL RELEASE SPECIFICATION December 11, 1996  
11.2 16-PIN SMALL OUTLINE INTERGRATED CIRCUIT (SOIC)  
–A–  
16  
9
NOTES:  
1. DIMENSIONING AND TOLERANCING PER ANSI  
Y14.5M, 1982.  
2. CONTROLLING DIMENSION: MILLIMETER.  
3. DIMENSIONS A AND B DO NOT INCLUDE MOLD  
PROTRUSION.  
–B–  
8X P  
M
M
0.010 (0.25)  
B
4. MAXIMUM MOLD PROTRUSION 0.15 (0.006) PER  
SIDE.  
1
8
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.  
J
16X D  
M
S
S
0.010 (0.25)  
T A  
B
F
MILLIMETERS  
DIM MIN MAX  
10.45 0.400  
INCHES  
MIN  
MAX  
0.411  
0.299  
0.104  
0.019  
0.035  
A
B
C
D
F
10.15  
7.40  
2.35  
0.35  
0.50  
R X 45  
7.60  
2.65  
0.49  
0.90  
0.292  
0.093  
0.014  
0.020  
C
G
J
K
M
P
R
1.27 BSC  
0.050 BSC  
–T–  
0.25  
0.10  
0
0.32  
0.25  
7
0.010  
0.004  
0
0.012  
0.009  
7
M
SEATING  
14X G  
K
PLANE  
10.05  
0.25  
10.55 0.395  
0.75 0.010  
0.415  
0.029  
11.3 20-PIN PLASTIC DUAL-IN-LINE PACKAGE (PDIP) (CASE 738-03)  
-A-  
NOTES:  
1. DIMENSIONING AND TOLERANCING PER ANSI  
Y14.5M, 1982.  
2. CONTROLLING DIMENSION: INCH.  
20  
1
11  
10  
B
3. DIMENSION  
L
FORMED PARALLEL.  
TO CENTER OF LEAD WHEN  
4. DIMENSION  
FLASH.  
B
DOES NOT INCLUDE MOLD  
C
L
INCHES  
MIN MAX  
1.010 1.070 25.66 27.17  
MILLIMETERS  
DIM  
A
B
C
D
E
MIN MAX  
0.240 0.260  
0.150 0.180  
0.015 0.022  
0.050 BSC  
0.050 0.070  
0.100 BSC  
6.10  
3.81  
0.39  
6.60  
4.57  
0.55  
-T-  
SEATING  
PLANE  
K
M
1.27 BSC  
1.77  
1.27  
F
E
N
G
J
2.54 BSC  
0.008 0.015  
0.110 0.140  
0.300 BSC  
0.21  
2.80  
0.38  
3.55  
G
F
J 20 PL  
K
L
7.62 BSC  
0.25 (0.010M)  
D 20 PL  
M
T B  
0°  
0.020 0.040  
15°  
0°  
0.51  
15°  
1.01  
M
N
M
M
T A  
0.25 (0.010)  
MOTOROLA  
11-2  
MECHANICAL SPECIFICATION  
MC68HC05J5  
REV 1.1  
December 11, 1996 GENERAL RELEASE SPECIFICATION  
11.4 20-PIN SMALL OUTLINE INTERGRATED CIRCUIT (SOIC) (CASE 751D-04)  
-A-  
NOTES:  
1. DIMENSIONING AND TOLERANCING PER  
ANSI Y14.5M, 1982.  
20  
11  
2. CONTROLLING DIMENSION: MILLIMETER.  
B
3. DIMENSIONS  
A
AND  
MOLD PROTRUSION.  
DO NOT INCLUDE  
-B-  
P 10 PL  
4. MAXIMUM MOLD PROTRUSION 0.150  
(0.006) PER SIDE.  
M
0.010 (0.25M)  
B
5. DIMENSION  
D
DOES NOT INCLUDE  
DAMBAR PROTRUSION. ALLOWABLE  
1
10  
DAMBAR PROTRUSION SHALL BE 0.13  
(0.005) TOTAL IN EXCESS OF D  
AT MAXIMUM MATERIAL CONDITION.  
DIMENSION  
D 20 PL  
J
F
MILLIMETERS INCHES  
MIN MAX MIN MAX  
0.010 (0.25M)  
T
A
B
S
S
DIM  
A
12.65 12.95  
0.499 0.510  
0.292 0.299  
0.093 0.104  
0.014 0.019  
0.020 0.035  
0.050 BSC  
B
7.40  
2.35  
0.35  
0.50  
7.60  
2.65  
0.49  
0.90  
C
D
F
R X 45°  
1.27 BSC  
G
J
0.25  
0.10  
0.32  
0.25  
7°  
0.010 0.012  
0.004 0.009  
K
C
M
P
0°  
0° 7°  
0.395 0.415  
10.05 10.55  
0.25 0.75  
-T-  
SEATING  
PLANE  
R
0.010 0.029  
M
K
G 18 PL  
MC68HC05J5  
REV 1.1  
MECHANICAL SPECIFICATION  
MOTOROLA  
11-3  
GENERAL RELEASE SPECIFICATION December 11, 1996  
MOTOROLA  
11-4  
MECHANICAL SPECIFICATION  
MC68HC05J5  
REV 1.1  
Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the  
suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically  
disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or  
specifications 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 officers, employees, subsidiaries, affiliates, and distributors  
harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death  
associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola  
and  
are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer.  
How to reach us:  
MFAX: RMFAX0@email.sps.mot.com – TOUCHTONE (602) 244-6609  
INTERNET: http://Design-NET.com  
USA/EUROPE/Locations Not Listed: Motorola Literature Distribution; P.O. Box 20912; Phoenix,  
Arizona 85036. 1-800-441-2447 or 602-303-5454  
JAPAN: Nippon Motorola Ltd.; Tatsumi-SPD-JLDC, 6F Seibu-Butsuryu-Center, 3-14-2 Tatsumi Koto-Ku,  
Tokyo 135, Japan. 03-81-3521-8315  
ASIA/PACIFIC: Motorola Semiconductors H.K. Ltd.; 8B Tai Ping Industrial Park, 51 Ting Kok Road,  
Tai Po, N.T., Hong Kong. 852-26629298  
HC05J5GRS/H  

相关型号:

HC05JB3GRS

68HC05JB3 and 68HC705JB3 General Release Specification
ETC

HC05JB4GRS

68HC(7)05JB4 General Release Specification
ETC

HC05JJ6GRS

68HC05JJ6 and 68HC05JP6 General Release Specification
ETC

HC05K3GRS

68HC05K3 General Release Specification
ETC

HC05PL4GRS

68HC05PL4A. 68HC05PL4B. 68HC705PL4B General Release Specification
ETC

HC05V7GRS

68HC05V7 General Release Specification
ETC

HC0600C000J0G

Barrier Strip Terminal Block
AMPHENOL

HC0603-10NG-N

General Purpose Inductor, 0.01uH, 5%, 1 Element, Ceramic-Core, SMD, 0603, CHIP, 0603, ROHS COMPLIANT
YAGEO

HC0603-10NG-S

General Purpose Inductor, 0.01uH, 2%, 1 Element, Ceramic-Core, SMD, 0705, CHIP, 0705
YAGEO

HC0603-10NJ-N

General Purpose Inductor, 0.01uH, 10%, 1 Element, Ceramic-Core, SMD, 0603, CHIP, 0603, ROHS COMPLIANT
YAGEO

HC0603-10NK-N

General Purpose Inductor, 0.01uH, 20%, 1 Element, Ceramic-Core, SMD, 0603, CHIP, 0603, ROHS COMPLIANT
YAGEO

HC0603-10NK-S

General Purpose Inductor, 0.01uH, 10%, 1 Element, Ceramic-Core, SMD, 0705, CHIP, 0705
YAGEO