Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button HCS12 Datasheet HTML 404Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 405Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 406Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 407Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 408Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 409Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 410Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 411Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 412Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 408 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
408
Freescale Semiconductor
B.5.2 Instruction Queue
The CPU12 has a 2-word instruction queue and a 16-bit holding buffer,
which sometimes acts as a third word for queueing program information. All
program information is fetched from memory as aligned 16-bit words, even
though there is no requirement for instructions to begin or end on even word
boundaries. There is no penalty for misaligned instructions. If a program
begins on an odd boundary (if the reset vector is an odd address), program
information is fetched to fill the instruction queue, beginning with the aligned
word at the next address below the misaligned reset vector. The instruction
queue logic starts execution with the opcode in the low-order half of this
word.
The instruction queue causes three bytes of program information (starting
with the instruction opcode) to be directly available to the CPU at the
beginning of every instruction. As it executes, each instruction performs
enough additional program fetches to refill the space it took up in the queue.
Alignment information is maintained by the logic in the instruction queue.
The CPU provides signals that tell the queue logic when to advance a word
of program information and when to toggle the alignment status.
The CPU is not aware of instruction alignment. The queue logic includes a
multiplexer that sorts out the information in the queue to present the opcode
and the next two bytes of information as CPU inputs. The multiplexer
determines whether the opcode is in the even or odd half of the word at the
head of the queue. Alignment status is also available to the ALU for address
calculations. The execution sequence for all instructions is independent of
the alignment of the instruction.
The only situation where alignment can affect the number of cycles an
instruction takes occurs in devices that have a narrow (8-bit) external data
bus and is related to optional program fetch cycles (O type cycles). O cycles
are always performed, but serve different purposes determined by
instruction size and alignment.
Each instruction includes one program fetch cycle for every two bytes of
object code. Instructions with an odd number of bytes can use an O cycle to
fetch an extra word of object code. If the queue is aligned at the start of an
instruction with an odd byte count, the last byte of object code shares a
queue word with the opcode of the next instruction. Since this word holds
part of the next instruction, the queue cannot advance after the odd byte
executes because the first byte of the next instruction would be lost. In this
case, the O cycle appears as a free cycle since the queue is not ready to
accept the next word of program information. If this same instruction had



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