MC68HC11 Reference Guide and Instruction Set - PG 13-27
MC68HC11 Reference Guide and Instruction Set - PG 13-27
Instruction Set
Instruction Set
Refer to Table 1, which shows all the M68HC11 instructions in all possible
addressing modes. For each instruction, the table shows the operand
construction, the number of machine code bytes, and execution time in
CPU E-clock cycles.
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Instruction Set
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Instruction Set
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
C b7 b0
ROLB Rotate Left B B INH 59 — 2 — — — — ∆ ∆ ∆ ∆
C b7 b0
ROR (opr) Rotate Right EXT 76 hh ll 6 — — — — ∆ ∆ ∆ ∆
IND,X 66 ff 6
b7 b0 C IND,Y 18 66 ff 7
RORA Rotate Right A A INH 46 — 2 — — — — ∆ ∆ ∆ ∆
b7 b0 C
RORB Rotate Right B B INH 56 — 2 — — — — ∆ ∆ ∆ ∆
b7 b0 C
RTI Return from See Figure 3–2 INH 3B — 12 ∆ ↓ ∆ ∆ ∆ ∆ ∆ ∆
Interrupt
RTS Return from See Figure 3–2 INH 39 — 5 — — — — — — — —
Subroutine
SBA Subtract B from A–B⇒A INH 10 — 2 — — — — ∆ ∆ ∆ ∆
A
SBCA (opr) Subtract with A–M–C⇒A A IMM 82 ii 2 — — — — ∆ ∆ ∆ ∆
Carry from A A DIR 92 dd 3
A EXT B2 hh ll 4
A IND,X A2 ff 4
A IND,Y 18 A2 ff 5
SBCB (opr) Subtract with B–M–C⇒B B IMM C2 ii 2 — — — — ∆ ∆ ∆ ∆
Carry from B B DIR D2 dd 3
B EXT F2 hh ll 4
B IND,X E2 ff 4
B IND,Y 18 E2 ff 5
SEC Set Carry 1⇒C INH 0D — 2 — — — — — — — 1
SEI Set Interrupt 1⇒I INH 0F — 2 — — — 1 — — — —
Mask
SEV Set Overflow 1⇒V INH 0B — 2 — — — — — — 1 —
Flag
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Instruction Set
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Operands
dd = 8-bit direct address ($0000–$00FF) (high byte assumed to be $00)
ff = 8-bit positive offset $00 (0) to $FF (255) (is added to index)
hh = High-order byte of 16-bit extended address
ii = One byte of immediate data
jj = High-order byte of 16-bit immediate data
kk = Low-order byte of 16-bit immediate data
ll = Low-order byte of 16-bit extended address
mm = 8-bit mask (set bits to be affected)
rr = Signed relative offset $80 (–128) to $7F (+127)
(offset relative to address following machine code offset byte))
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Special Operations
Special Operations
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
Read:
Parallel I/O Control Register STAF STAI CWOM HNDS OIN PLS EGA INVB
$1002 Write:
(PIOC)
Reset: 0 0 0 0 0 U 1 1
Read:
Port C Data Register PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0
$1003 Write:
(PORTC)
Reset: Indeterminate after reset
Read:
Port B Data Register PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0
$1004 Write:
(PORTB)
Reset: 0 0 0 0 0 0 0 0
Read:
Port C Latched Register PCL7 PCL6 PCL5 PCL4 PCL3 PCL2 PCL1 PCL0
$1005 Write:
(PORTCL)
Reset: Indeterminate after reset
$1006 Reserved R R R R R R R R
Read:
Port C Data Direction Register DDRC7 DDRC6 DDRC5 DDRC4 DDRC3 DDRC2 DDRC1 DDRC0
$1007 Write:
(DDRC)
Reset: 0 0 0 0 0 0 0 0
Read:
Port D Data Register 0 0 PD5 PD4 PD3 PD2 PD1 PD0
$1008 Write:
(PORTD)
Reset: U U I I I I I I
Read:
Port D Data Direction Register DDRD5 DDRD4 DDRD3 DDRD2 DDRD1 DDRD0
$1009 Write:
(DDRD)
Reset: 0 0 0 0 0 0 0 0
Read:
Port E Data Register PE7 PE6 PE5 PE4 PE3 PE2 PE1 PE0
$100A Write:
(PORTE)
Reset: Indeterminate after reset
Read:
Timer Compare Force Register FOC1 FOC2 FOC3 FOC4 FOC5
$100B Write:
(CFORC)
Reset: 0 0 0 0 0 0 0 0
= Unimplemented R = Reserved U = Unaffected
I = Indeterminate after reset
Figure 6. Register and Control Bit Assignments (Sheet 1 of 6)
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
M68HC11E Series Registers
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
M68HC11E Series Registers
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
$1038 Reserved R R R R R R R R
Read:
System Configuration Options ADPU CSEL IRQE(1) DLY(1) CME CR1(1) CR0(1)
$1039 Write:
Register (OPTION)
Reset: 0 0 0 1 0 0 0 0
Read:
Arm/Reset COP Timer Circuitry Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
$103A Write:
Register (COPRST)
Reset: 0 0 0 0 0 0 0 0
EPROM and EEPROM Read:
ODD EVEN ELAT(2) BYTE ROW ERASE EELAT EPGM
$103B Programming Control Register Write:
(PPROG) Reset: 0 0 0 0 0 0 0 0
Highest Priority I Bit Interrupt and Read:
RBOOT SMOD MDA IRV(NE) PSEL3 PSEL2 PSEL1 PSEL0
$103C Miscellaneous Register Write:
(HPRIO) Reset: 0 0 0 0 0 1 1 0
= Unimplemented R = Reserved U = Unaffected
I = Indeterminate after reset
Figure 6. Register and Control Bit Assignments (Sheet 5 of 6)
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.
M68HC11ERG/AD
M68HC11E Series Registers
Read:
System Configuration Register NOSEC NOCOP ROMON EEON
$103F Write:
(CONFIG)
Reset: 0 0 0 0 U U 1 U
Read:
System Configuration Register Write: EE3 EE2 EE1 EE0 NOSEC NOCOP EEON
$103F
(CONFIG)(3)
Reset: 1 1 1 1 U U 1 1
1. Can be written only once in first 64 cycles out of reset in normal modes or at any time during special modes.
2. MC68HC711E9 only
3. MC68HC811E2 only
= Unimplemented R = Reserved U = Unaffected
I = Indeterminate after reset
Figure 6. Register and Control Bit Assignments (Sheet 6 of 6)
TRIAL MODE − a valid license will remove this message. See the keywords property of this PDF for more information.