Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

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

Back Button HCS12 Datasheet HTML 314Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 315Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 316Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 317Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 318Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 319Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 320Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 321Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 322Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 318 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
318
Freescale Semiconductor
CPU12, the stacked return address can be used to calculate the address of
the unimplemented opcode for software-controlled traps.
7.7 Software Interrupt Instruction (SWI)
Execution of the SWI instruction causes an interrupt without an interrupt
service request. SWI is not inhibited by the global mask bits in the CCR, and
execution of SWI sets the I mask bit. Once an SWI interrupt begins,
maskable interrupts are inhibited until the I bit in the CCR is cleared. This
typically occurs when an RTI instruction at the end of the SWI service
routine restores context.
7.8 Exception Processing Flow
The first cycle in the exception processing flow for all CPU12 exceptions is
the same, regardless of the source of the exception. Between the first and
second cycles of execution, the CPU chooses one of three alternative
paths. The first path is for resets, the second path is for pending X or I
interrupts, and the third path is used for software interrupts (SWI) and
trapping unimplemented opcodes. The last two paths are virtually identical,
differing only in the details of calculating the return address. Refer to Figure
7-1 for the following discussion.
7.8.1 Vector Fetch
The first cycle of all exception processing, regardless of the cause, is a
vector fetch. The vector points to the address where exception processing
will continue. Exception vectors are stored in a table located at the top of the
memory map ($FFxx). The CPU cannot use the fetched vector until the third
cycle of the exception processing sequence.
During the vector fetch cycle, the CPU issues a signal that tells the interrupt
module to drive the vector address of the highest priority, pending exception
onto the system address bus (the CPU does not provide this address).
After the vector fetch, the CPU selects one of the three alternate execution
paths, depending upon the cause of the exception.



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