90

Freescale Semiconductor

MC68HC908MR32 • MC68HC908MR16 Data Sheet, Rev. 6.1

Table 7-2. Opcode Map

 

 

Bit Manipulation

 

Branch

 

 

 

 

 

Read-Modify-Write

 

 

 

 

 

Control

 

 

 

 

 

 

Register/Memory

 

 

 

 

 

 

 

 

 

DIR

DIR

 

 

REL

 

DIR

 

INH

 

 

INH

 

IX1

 

SP1

 

IX

 

INH

 

INH

 

IMM

 

DIR

 

EXT

 

IX2

 

SP2

 

IX1

 

SP1

 

IX

MSB

 

0

1

 

 

2

 

3

 

4

 

 

5

 

6

 

9E6

 

7

 

8

 

9

 

A

 

B

 

C

 

D

 

9ED

 

E

 

9EE

 

F

LSB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

7

 

3

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET0

BSET0

 

 

BRA

 

NEG

 

NEGA

 

 

NEGX

 

NEG

 

NEG

 

NEG

 

RTI

 

BGE

 

SUB

 

SUB

 

SUB

 

SUB

 

SUB

 

SUB

 

SUB

 

SUB

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

2

REL

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

1

 

 

5

 

4

 

 

3

 

5

 

4

 

 

4

 

5

 

6

 

4

 

4

 

3

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR0

BCLR0

 

 

BRN

 

CBEQ

CBEQA

CBEQX

 

CBEQ

 

CBEQ

 

CBEQ

 

RTS

 

BLT

 

CMP

 

CMP

 

CMP

 

CMP

 

CMP

 

CMP

 

CMP

 

CMP

 

 

3

DIR

2

DIR

2

REL

3

DIR

3

IMM

3

IMM

3

IX1+

4

SP1

2

IX+

1

INH

2

REL

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

2

 

 

5

 

4

 

 

3

 

 

 

5

 

 

7

 

3

 

 

 

2

 

 

 

3

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET1

BSET1

 

 

BHI

 

 

 

MUL

 

 

DIV

 

NSA

 

 

 

DAA

 

 

 

BGT

 

SBC

 

SBC

 

SBC

 

SBC

 

SBC

 

SBC

 

SBC

 

SBC

 

 

3

DIR

2

DIR

2

REL

 

 

1

INH

1

INH

1

INH

 

 

1

INH

 

 

2

REL

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

3

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

9

 

3

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR1

BCLR1

 

 

BLS

 

COM

COMA

 

COMX

 

COM

 

COM

 

COM

 

SWI

 

BLE

 

CPX

 

CPX

 

CPX

 

CPX

 

CPX

 

CPX

 

CPX

 

CPX

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

2

REL

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

4

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

2

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET2

BSET2

 

 

BCC

 

LSR

 

LSRA

 

 

LSRX

 

LSR

 

LSR

 

LSR

 

TAP

 

TXS

 

AND

 

AND

 

AND

 

AND

 

AND

 

AND

 

AND

 

AND

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

5

 

 

5

 

4

 

 

3

 

4

 

3

 

 

4

 

3

 

 

 

4

 

1

 

2

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR2

BCLR2

 

 

BCS

 

STHX

 

LDHX

 

 

LDHX

 

CPHX

 

 

 

CPHX

 

TPA

 

TSX

 

BIT

 

BIT

 

BIT

 

BIT

 

BIT

 

BIT

 

BIT

 

BIT

 

 

3

DIR

2

DIR

2

REL

2

DIR

3

IMM

2

DIR

3

IMM

 

 

2

DIR

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

6

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

 

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET3

BSET3

 

 

BNE

 

ROR

RORA

 

RORX

 

ROR

 

ROR

 

ROR

 

PULA

 

 

 

LDA

 

LDA

 

LDA

 

LDA

 

LDA

 

LDA

 

LDA

 

LDA

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

 

 

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

7

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

1

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR3

BCLR3

 

 

BEQ

 

ASR

 

ASRA

 

 

ASRX

 

ASR

 

ASR

 

ASR

 

PSHA

 

TAX

 

AIS

 

STA

 

STA

 

STA

 

STA

 

STA

 

STA

 

STA

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

8

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

1

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET4

BSET4

 

 

BHCC

 

LSL

 

LSLA

 

 

LSLX

 

LSL

 

LSL

 

LSL

 

PULX

 

CLC

 

EOR

 

EOR

 

EOR

 

EOR

 

EOR

 

EOR

 

EOR

 

EOR

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

9

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

1

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR4

BCLR4

 

 

BHCS

 

ROL

 

ROLA

 

 

ROLX

 

ROL

 

ROL

 

ROL

 

PSHX

 

SEC

 

ADC

 

ADC

 

ADC

 

ADC

 

ADC

 

ADC

 

ADC

 

ADC

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

A

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

2

 

2

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET5

BSET5

 

 

BPL

 

DEC

 

DECA

 

 

DECX

 

DEC

 

DEC

 

DEC

 

PULH

 

CLI

 

ORA

 

ORA

 

ORA

 

ORA

 

ORA

 

ORA

 

ORA

 

ORA

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

B

 

 

5

 

4

 

 

3

 

5

 

3

 

 

3

 

5

 

6

 

4

 

2

 

2

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR5

BCLR5

 

 

BMI

 

DBNZ

DBNZA

DBNZX

 

DBNZ

 

DBNZ

 

DBNZ

 

PSHH

 

SEI

 

ADD

 

ADD

 

ADD

 

ADD

 

ADD

 

ADD

 

ADD

 

ADD

 

 

3

DIR

2

DIR

2

REL

3

DIR

2

INH

2

INH

3

IX1

4

SP1

2

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

C

 

 

5

 

4

 

 

3

 

4

 

1

 

 

1

 

4

 

5

 

3

 

1

 

1

 

 

 

2

 

3

 

4

 

 

 

3

 

 

 

2

 

BRSET6

BSET6

 

 

BMC

 

INC

 

INCA

 

 

INCX

 

INC

 

INC

 

INC

 

CLRH

 

RSP

 

 

 

JMP

 

JMP

 

JMP

 

 

 

JMP

 

 

 

JMP

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

 

 

2

DIR

3

EXT

3

IX2

 

 

2

IX1

 

 

1

IX

D

 

 

5

 

4

 

 

3

 

3

 

1

 

 

1

 

3

 

4

 

2

 

 

 

1

 

4

 

4

 

5

 

6

 

 

 

5

 

 

 

4

 

BRCLR6

BCLR6

 

 

BMS

 

TST

 

TSTA

 

 

TSTX

 

TST

 

TST

 

TST

 

 

 

NOP

 

BSR

 

JSR

 

JSR

 

JSR

 

 

 

JSR

 

 

 

JSR

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

 

 

1

INH

2

REL

2

DIR

3

EXT

3

IX2

 

 

2

IX1

 

 

1

IX

E

 

 

5

 

4

 

 

3

 

 

 

5

 

 

4

 

4

 

 

 

4

 

1

 

 

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRSET7

BSET7

 

 

BIL

 

 

 

MOV

 

 

MOV

 

MOV

 

 

 

MOV

 

STOP

 

*

 

LDX

 

LDX

 

LDX

 

LDX

 

LDX

 

LDX

 

LDX

 

LDX

 

 

3

DIR

2

DIR

2

REL

 

 

3

DD

 

2

DIX+

3

IMD

 

 

2

IX+D

1

INH

 

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

F

 

 

5

 

4

 

 

3

 

3

 

1

 

 

1

 

3

 

4

 

2

 

1

 

1

 

2

 

3

 

4

 

4

 

5

 

3

 

4

 

2

 

BRCLR7

BCLR7

 

 

BIH

 

CLR

 

CLRA

 

 

CLRX

 

CLR

 

CLR

 

CLR

 

WAIT

 

TXA

 

AIX

 

STX

 

STX

 

STX

 

STX

 

STX

 

STX

 

STX

 

 

3

DIR

2

DIR

2

REL

2

DIR

1

INH

1

INH

2

IX1

3

SP1

1

IX

1

INH

1

INH

2

IMM

2

DIR

3

EXT

3

IX2

4

SP2

2

IX1

3

SP1

1

IX

INH

Inherent

REL

Relative

 

 

 

SP1

Stack Pointer, 8-Bit Offset

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MSB

 

0

High Byte of Opcode in Hexadecimal

 

 

IMM

Immediate

IX

 

Indexed, No Offset

 

SP2

Stack Pointer, 16-Bit Offset

 

 

 

 

 

 

 

 

LSB

 

 

 

DIR

Direct

 

IX1

Indexed, 8-Bit Offset

 

IX+

Indexed, No Offset with

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXT

Extended

IX2

Indexed, 16-Bit Offset

 

 

Post Increment

 

 

 

 

 

 

 

 

 

 

 

 

 

5

Cycles

 

 

 

 

 

 

 

 

DD

Direct-Direct

IMD

Immediate-Direct

 

IX1+ Indexed, 1-Byte Offset with

 

Low Byte of Opcode in Hexadecimal

 

0

BRSET0

Opcode Mnemonic

 

 

 

 

 

 

IX+D Indexed-Direct

DIX+ Direct-Indexed

 

 

Post Increment

 

 

 

 

 

 

 

 

 

 

 

 

3

DIR

Number of Bytes / Addressing Mode

 

 

*Pre-byte for stack pointer indexed instructions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Central Processor Unit (CPU)

Page 90
Image 90
Freescale Semiconductor MC68HC908MR32, MC68HC908MR16 manual Opcode Map, 9ED 9EE

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.