Central Processor Unit (CPU)

7.7 Instruction Set Summary

Table 7-1provides a summary of the M68HC08 instruction set.

Table 7-1. Instruction Set Summary (Sheet 1 of 6)

Source

Operation

 

 

 

 

 

Description

Form

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC #opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC opr,X

Add with Carry

 

A (A) + (M) + (C)

ADC opr,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC ,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADC opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD #opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD opr,X

Add without Carry

 

 

 

 

 

A (A) + (M)

ADD opr,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD ,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ADD opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AIS #opr

Add Immediate Value (Signed) to SP

 

SP (SP) + (16 « M)

AIX #opr

Add Immediate Value (Signed) to H:X

H:X (H:X) + (16 « M)

AND #opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND opr,X

Logical AND

 

 

 

 

 

A (A) & (M)

AND opr,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND ,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASL opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASLA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASLX

Arithmetic Shift Left

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

ASL opr,X

(Same as LSL)

 

 

 

b7

 

 

 

 

 

 

 

 

 

 

b0

 

ASL ,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASL opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASR opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASRA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASRX

Arithmetic Shift Right

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

ASR opr,X

 

 

 

b7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

ASR opr,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ASR opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BCC rel

Branch if Carry Bit Clear

PC (PC) + 2 + rel ? (C) = 0

BCLR n, opr

Clear Bit n in M

 

 

 

 

 

 

 

 

 

 

Mn 0

BCS rel

Branch if Carry Bit Set (Same as BLO)

PC (PC) + 2 + rel ? (C) = 1

BEQ rel

Branch if Equal

PC (PC) + 2 + rel ? (Z) = 1

BGE opr

Branch if Greater Than or Equal To

PC (PC) + 2 + rel ? (N V) = 0

 

(Signed Operands)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BGT opr

Branch if Greater Than (Signed

PC (PC) + 2 + rel ? (Z) (N V) = 0

 

Operands)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BHCC rel

Branch if Half Carry Bit Clear

PC (PC) + 2 + rel ? (H) = 0

BHCS rel

Branch if Half Carry Bit Set

PC (PC) + 2 + rel ? (H) = 1

BHI rel

Branch if Higher

PC (PC) + 2 + rel ? (C) (Z) = 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Effect

Address Mode

on CCR

 

V H I N Z C

 

 

IMM

 

DIR

 

EXT

    IX2IX1

IX SP1 SP2

IMM

DIR

EXT

    IX2IX1

IX SP1 SP2

– – – – – IMM

– – – – – IMM

IMM

DIR

EXT 0 – –   IX2IX1

IX

SP1

SP2

DIR

INH

– –    INHIX1

IX SP1

DIR

INH

– –    INHIX1

IX SP1

– – – – – – REL

DIR (b0)

DIR (b1)

DIR (b2)

– – – – – DIR (b3) DIR (b4)

DIR (b5)

DIR (b6)

DIR (b7)

– – – – – REL

– – – – – REL

– – – – – REL

– – – – – REL

– – – – – REL

– – – – – REL

– – – – – REL

Opcode

Operand

Cycles

A9

ii

2

B9

dd

3

C9

hh ll

4

D9

ee ff

4

E9

ff

3

F9

 

2

9EE9

ff

4

9ED9

ee ff

5

AB

ii

2

BB

dd

3

CB

hh ll

4

DB

ee ff

4

EB

ff

3

FB

 

2

9EEB

ff

4

9EDB

ee ff

5

A7

ii

2

AF

ii

2

A4

ii

2

B4

dd

3

C4

hh ll

4

D4

ee ff

4

E4

ff

3

F4

 

2

9EE4

ff

4

9ED4

ee ff

5

38

dd

4

48

 

1

58

 

1

68

ff

4

78

 

3

9E68

ff

5

37

dd

4

47

 

1

57

 

1

67

ff

4

77

 

3

9E67

ff

5

24

rr

3

11

dd

4

13

dd

4

15

dd

4

17

dd

4

19

dd

4

1B

dd

4

1D

dd

4

1F

dd

4

25

rr

3

27

rr

3

90

rr

3

92

rr

3

28

rr

3

29

rr

3

22

rr

3

 

 

 

MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1

84

Freescale Semiconductor

Page 84
Image 84
Freescale Semiconductor MC68HC908MR32, MC68HC908MR16 manual Instruction Set Summary Sheet 1

MC68HC908MR16, MC68HC908MR32 specifications

Freescale Semiconductor's MC68HC908MR32 and MC68HC908MR16 microcontrollers are part of the popular HC08 family, designed primarily for embedded applications. These microcontrollers are particularly favored in automotive, industrial, and consumer product sectors due to their reliability and versatility.

One of the standout features of the MC68HC908MR series is its CMOS technology, which enhances performance while minimizing power consumption. This makes these microcontrollers suitable for battery-operated devices. They operate at a maximum clock frequency of 2 MHz and offer a 16-bit architecture, providing a solid balance between processing power and efficiency.

The MC68HC908MR32 variant is equipped with 32KB of flash memory, which allows for the storage of complex programs and extensive data handling. In contrast, the MC68HC908MR16 features 16KB of flash memory, making it ideal for simpler applications. Both microcontrollers also come with 1KB of RAM, enabling efficient data processing and real-time operations.

Another significant characteristic of these microcontrollers is their integrated peripherals. They come with multiple input/output (I/O) pins, which allow for connectivity with various sensors and actuators. The built-in timer systems offer precise timing control for automotive and industrial applications, while the Analog-to-Digital Converter (ADC) provides essential conversion capabilities for various analog signals.

For communication purposes, the MC68HC908MR series includes a serial communication interface, enabling easy integration with other devices and systems. This versatility facilitates the development of complex systems that require interaction with external components.

Security is another crucial aspect of these microcontrollers. They have built-in fail-safe mechanisms to ensure reliable operation under various conditions, making them suitable for critical systems. Additionally, their robust architecture helps to safeguard against potential disruptions or attacks.

In summary, Freescale Semiconductor's MC68HC908MR32 and MC68HC908MR16 microcontrollers are key players in the embedded systems landscape. Their blend of power efficiency, integrated features, and scalability ensures they remain relevant for a wide array of applications, making them a favored choice among engineers and developers looking for dependable solutions in a competitive market.