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

X  

HCS12 Datasheet(PDF) 414 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) 414 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 410Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 411Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 412Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 413Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 414Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 415Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 416Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 417Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 418Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 414 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
414
Freescale Semiconductor
B.6.3 Accumulator Offset Indexing
This indexed addressing variation allows the programmer to use either an
8-bit accumulator (A or B) or the 16-bit D accumulator as the offset for
indexed addressing. This allows for a program-generated offset, which is
more difficult to achieve in the M68HC11. The following code compares the
M68HC11 and CPU12 operations.
The CPU12 object code is only one byte smaller, but the LDX # instruction
is outside the loop. It is not necessary to reload the base address in the
index register on each pass through the loop because the LDAA B,X
instruction does not alter the index register. This reduces the loop execution
time from 15 cycles to six cycles. This reduction, combined with the 25-MHz
bus speed of the HCS12 (M68HC12) Family, can have significant effects.
B.6.4 Indirect Indexing
The CPU12 allows some forms of indexed indirect addressing where the
instruction points to a location in memory where the address of the operand
is stored. This is an extra level of indirection compared to ordinary indexed
addressing. The two forms of indexed indirect addressing are 16-bit
constant offset indexed indirect and D accumulator indexed indirect. The
reference index register can be X, Y, SP, or PC as in other CPU12 indexed
addressing modes. PC-relative indirect addressing is one of the more
common uses of indexed indirect addressing. The indirect variations of
indexed addressing help in the implementation of pointers. D accumulator
indexed indirect addressing can be used to implement a runtime computed
GOTO function. Indirect addressing is also useful in high-level language
compilers. For instance, PC-relative indirect indexing can be used to
efficiently implement some C case statements.
C6 05
CE 10 00
3A
A6 00
5A
26 F7
LDAB
#$5
[2]
LOOP LDX #$1000 [3]
ABX
[3]
LDAA
0,X
[4]
|
DECB
[2]
BNE
LOOP
[3]
C6 05
CE 10 00
A6 E5
04 31 FB
LDAB
#$5
[1]
LDX
#$1000
[2]
LOOP LDAA
B,X
[3]
|
DBNE
B,LOOP
[3]



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