Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HCS12 Datasheet(PDF) 391 Page - Freescale Semiconductor, Inc

Part # HCS12
Description  HCS12 Microcontrollers
PDF  452 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

HCS12 Datasheet(HTML) 391 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 387Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 388Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 389Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 390Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 391Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 392Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 393Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 394Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 395Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 391 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
Freescale Semiconductor
391
SBA
(A) – (B)
⇒ A
Subtract B from A
INH
18 16
OO
OO
– – – –
∆ ∆ ∆ ∆
SBCA #opr8i
SBCA opr8a
SBCA opr16a
SBCA oprx0_xysp
SBCA oprx9,xysp
SBCA oprx16,xysp
SBCA [D,xysp]
SBCA [oprx16,xysp]
(A) – (M) – C
⇒ A
Subtract with Borrow from A
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
82 ii
92 dd
B2 hh ll
A2 xb
A2 xb ff
A2 xb ee ff
A2 xb
A2 xb ee ff
P
rPf
rPO
rPf
rPO
frPP
fIfrPf
fIPrPf
P
rfP
rOP
rfP
rPO
frPP
fIfrfP
fIPrfP
– – – –
∆ ∆ ∆ ∆
SBCB #opr8i
SBCB opr8a
SBCB opr16a
SBCB oprx0_xysp
SBCB oprx9,xysp
SBCB oprx16,xysp
SBCB [D,xysp]
SBCB [oprx16,xysp]
(B) – (M) – C
⇒ B
Subtract with Borrow from B
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
C2 ii
D2 dd
F2 hh ll
E2 xb
E2 xb ff
E2 xb ee ff
E2 xb
E2 xb ee ff
P
rPf
rPO
rPf
rPO
frPP
fIfrPf
fIPrPf
P
rfP
rOP
rfP
rPO
frPP
fIfrfP
fIPrfP
– – – –
∆ ∆ ∆ ∆
SEC
1
⇒ C
Translates to ORCC #$01
IMM
14 01
PP
– – – –
– – – 1
SEI
1
⇒ I; (inhibit I interrupts)
Translates to ORCC #$10
IMM
14 10
PP
– – – 1
– – – –
SEV
1
⇒ V
Translates to ORCC #$02
IMM
14 02
PP
– – – –
– – 1 –
SEX abc,dxys
$00:(r1)
⇒ r2 if r1, bit 7 is 0 or
$FF:(r1)
⇒ r2 if r1, bit 7 is 1
Sign Extend 8-bit r1 to 16-bit r2
r1 may be A, B, or CCR
r2 may be D, X, Y, or SP
Alternate mnemonic for TFR r1, r2
INH
B7 eb
PP
– – – –
– – – –
STAA opr8a
STAA opr16a
STAA oprx0_xysp
STAA oprx9,xysp
STAA oprx16,xysp
STAA [D,xysp]
STAA [oprx16,xysp]
(A)
⇒ M
Store Accumulator A to Memory
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5A dd
7A hh ll
6A xb
6A xb ff
6A xb ee ff
6A xb
6A xb ee ff
Pw
PwO
Pw
PwO
PwP
PIfw
PIPw
Pw
wOP
Pw
PwO
PwP
PIfPw
PIPPw
– – – –
∆ ∆ 0 –
STAB opr8a
STAB opr16a
STAB oprx0_xysp
STAB oprx9,xysp
STAB oprx16,xysp
STAB [D,xysp]
STAB [oprx16,xysp]
(B)
⇒ M
Store Accumulator B to Memory
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5B dd
7B hh ll
6B xb
6B xb ff
6B xb ee ff
6B xb
6B xb ee ff
Pw
PwO
Pw
PwO
PwP
PIfw
PIPw
Pw
wOP
Pw
PwO
PwP
PIfPw
PIPPw
– – – –
∆ ∆ 0 –
STD opr8a
STD opr16a
STD oprx0_xysp
STD oprx9,xysp
STD oprx16,xysp
STD [D,xysp]
STD [oprx16,xysp]
(A)
⇒ M, (B) ⇒ M+1
Store Double Accumulator
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
5C dd
7C hh ll
6C xb
6C xb ff
6C xb ee ff
6C xb
6C xb ee ff
PW
PWO
PW
PWO
PWP
PIfW
PIPW
PW
WOP
PW
PWO
PWP
PIfPW
PIPPW
– – – –
∆ ∆ 0 –
STOP
(SP) – 2
⇒ SP;
RTNH:RTNL ⇒ M(SP):M(SP+1);
(SP) – 2
⇒ SP; (YH:YL) ⇒ M(SP):M(SP+1);
(SP) – 2
⇒ SP; (XH:XL) ⇒ M(SP):M(SP+1);
(SP) – 2
⇒ SP; (B:A) ⇒ M(SP):M(SP+1);
(SP) – 1
⇒ SP; (CCR) ⇒ M(SP);
STOP All Clocks
Registers stacked to allow quicker recovery by interrupt.
If S control bit = 1, the STOP instruction is disabled and acts
like a two-cycle NOP.
INH
18 3E
(entering STOP)
– – – –
– – – –
OOSSSSsf
OOSSSfSs
(exiting STOP)
fVfPPP
fVfPPP
(continue)
ff
fO
(if STOP disabled)
OO
OO
Table A-1. Instruction Set Summary (Sheet 11 of 14)
Source Form
Operation
Addr.
Mode
Machine
Coding (hex)
Access Detail
S X H I
N Z V C
HCS12
M68HC12



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com