Instruction Set Summary

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

 

 

 

 

 

 

 

 

 

Effect

 

 

Address Mode

Opcode

Operand

Cycles

Source

 

Operation

Description

 

on CCR

 

 

 

 

 

Form

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

V

H

 

I

N

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BHS rel

Branch if Higher or Same

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

 

 

REL

24

rr

3

(Same as BCC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BIH rel

Branch if

 

Pin High

PC (PC) + 2 + rel ?

 

= 1

 

 

REL

2F

rr

3

IRQ

IRQ

BIL rel

Branch if

 

Pin Low

PC (PC) + 2 + rel ?

 

= 0

 

 

REL

2E

rr

3

IRQ

IRQ

BIT #opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IMM

A5

ii

2

BIT opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR

B5

dd

3

BIT opr

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXT

C5

hh ll

4

BIT opr,X

Bit Test

(A) & (M)

0

 



 



IX2

D5

ee ff

4

BIT opr,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IX1

E5

ff

3

BIT ,X

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IX

F5

 

2

BIT opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SP1

9EE5

ff

4

BIT opr,SP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SP2

9ED5

ee ff

5

BLE opr

Branch if Less Than or Equal To

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

 

 

REL

93

rr

3

 

(Signed Operands)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLO rel

Branch if Lower (Same as BCS)

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

 

 

REL

25

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLS rel

Branch if Lower or Same

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

 

 

REL

23

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BLT opr

Branch if Less Than (Signed Operands)

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

 

 

REL

91

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BMC rel

Branch if Interrupt Mask Clear

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

 

 

REL

2C

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BMI rel

Branch if Minus

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

 

 

REL

2B

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BMS rel

Branch if Interrupt Mask Set

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

 

 

REL

2D

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BNE rel

Branch if Not Equal

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

 

 

REL

26

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BPL rel

Branch if Plus

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

 

 

REL

2A

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

BRA rel

Branch Always

PC (PC) + 2 + rel

 

 

REL

20

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b0)

01

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b1)

03

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b2)

05

dd rr

5

BRCLR n,opr,rel

Branch if Bit n in M Clear

PC (PC) + 3 + rel ? (Mn) = 0

 

 



DIR (b3)

07

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b4)

09

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b5)

0B

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b6)

0D

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b7)

0F

dd rr

5

BRN rel

Branch Never

PC (PC) + 2

 

 

REL

21

rr

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b0)

00

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b1)

02

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b2)

04

dd rr

5

BRSET n,opr,rel

Branch if Bit n in M Set

PC (PC) + 3 + rel ? (Mn) = 1

 

 



DIR (b3)

06

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b4)

08

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b5)

0A

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b6)

0C

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b7)

0E

dd rr

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b0)

10

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b1)

12

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b2)

14

dd

4

BSET n,opr

Set Bit n in M

Mn 1

 

 

DIR (b3)

16

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b4)

18

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b5)

1A

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b6)

1C

dd

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DIR (b7)

1E

dd

4

 

 

 

 

PC (PC) + 2; push (PCL)

 

 

 

 

 

 

 

 

 

 

 

 

BSR rel

Branch to Subroutine

SP (SP) – 1; push (PCH)

REL

AD

rr

4

SP (SP) – 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC (PC) + rel

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CBEQ opr,rel

 

 

 

PC (PC) + 3 + rel ? (A) – (M) = $00

 

 

 

 

 

 

 

 

DIR

31

dd rr

5

CBEQA #opr,rel

 

 

 

PC (PC) + 3 + rel ? (A) – (M) = $00

 

 

 

 

 

 

 

 

IMM

41

ii rr

4

CBEQX #opr,rel

Compare and Branch if Equal

PC (PC) + 3 + rel ? (X) – (M) = $00

 

 

IMM

51

ii rr

4

CBEQ opr,X+,rel

PC (PC) + 3 + rel ? (A) – (M) = $00

 

 

IX1+

61

ff rr

5

CBEQ X+,rel

 

 

 

PC (PC) + 2 + rel ? (A) – (M) = $00

 

 

 

 

 

 

 

 

IX+

71

rr

4

CBEQ opr,SP,rel

 

 

 

PC (PC) + 4 + rel ? (A) – (M) = $00

 

 

 

 

 

 

 

 

SP1

9E61

ff rr

6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CLC

Clear Carry Bit

C 0

 

 

0

INH

98

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CLI

Clear Interrupt Mask

I 0

 

0

 

INH

9A

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Freescale Semiconductor

 

 

 

 

 

 

 

 

 

 

 

 

 

 

85

Page 85
Image 85
Freescale Semiconductor MC68HC908MR16 manual Instruction Set Summary Sheet 2, Source Operation Description On CCR Form

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.