Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button HCS12 Datasheet HTML 38Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 39Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 40Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 41Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 42Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 43Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 44Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 45Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 46Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 42 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
42
Freescale Semiconductor
Move instructions do not support indirect modes, 9-bit, or 16-bit offset
modes requiring extra extension bytes. There are special considerations
when using PC-relative addressing with move instructions. The original
M68HC12 implemented the instruction queue slightly differently than the
newer HCS12. In the older M68HC12 implementation, the CPU did not
maintain a pointer to the start of the instruction after the current instruction
(what the user thinks of as the PC value during execution). This caused an
offset for PC-relative move instructions.
PC-relative addressing uses the address of the location immediately
following the last byte of object code for the current instruction as a
reference point. The CPU12 normally corrects for queue offset and for
instruction alignment so that queue operation is transparent to the user.
However, in the original M68HC12, move instructions pose three special
problems:
• Some moves use an indexed source and an indexed destination.
• Some moves have object code that is too long to fit in the queue all at
one time, so the PC value changes during execution.
• All moves do not have the indexed postbyte as the last byte of object
code.
These cases are not handled by automatic queue pointer maintenance, but
it is still possible to use PC-relative indexing with move instructions by
providing for PC offsets in source code.
Table 3-3 shows PC offsets from the location immediately following the
current instruction by addressing mode.
Table 3-3. PC Offsets for MOVE Instructions (M68HC12 Only)
MOVE Instruction
Addressing Modes
Offset Value
MOVB
IMM
⇒ IDX
+1
EXT
⇒ IDX
+2
IDX
⇒ EXT
–2
IDX
⇒ IDX
–1 for first operand
+1 for second operand
MOVW
IMM
⇒ IDX
+2
EXT
⇒ IDX
+2
IDX
⇒ EXT
–2
IDX
⇒ IDX
–1 for first operand
+1 for second operand



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