Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button HCS12 Datasheet HTML 311Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 312Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 313Page - Freescale Semiconductor, Inc 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 315 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
Freescale Semiconductor
315
7.5 Interrupts
Each HCS12 device can recognize a number of interrupt sources. Each
source has a vector in the vector table. The XIRQ signal, the unimplemented
opcode trap, and the SWI instruction are non-maskable, and have a fixed
priority. The remaining interrupt sources can be masked by the I bit. In most
devices, the external interrupt request pin is assigned the highest maskable
interrupt priority, and the internal periodic real-time interrupt generator has
the next highest priority. Other maskable interrupts are associated with
on-chip peripherals such as timers or serial ports. These maskable sources
have default priorities that follow the address order of the interrupt vectors.
The higher the vector address, the higher the priority of the interrupt. On The
HCS12, a device integration module incorporates logic that can give any
one maskable source priority over other maskable sources.
7.5.1 Non-Maskable Interrupt Request (XIRQ)
The XIRQ input is an updated version of the non-maskable interrupt (NMI)
input of earlier MCUs. The XIRQ function is disabled during system reset
and upon entering the interrupt service routine for an XIRQ interrupt.
During reset, both the I bit and the X bit in the CCR are set. This disables
maskable interrupts and interrupt service requests made by asserting the
XIRQ signal. After minimum system initialization, software can clear the X
bit using an instruction such as ANDCC #$BF. Software cannot set the X bit
from 0 to 1 once it has been cleared, and interrupt requests made via the
XIRQ pin become non-maskable. When a non-maskable interrupt is
recognized, both the X and I bits are set after context is saved. The X bit is
not affected by maskable interrupts. Execution of an return-from-interrupt
(RTI) instruction at the end of the interrupt service routine normally restores
the X and I bits to the pre-interrupt request state.
7.5.2 Maskable Interrupts
Maskable interrupt sources include on-chip peripheral systems and external
interrupt service requests. Interrupts from these sources are recognized
when the global interrupt mask bit (I) in the CCR is cleared. The default state
of the I bit out of reset is 1, but it can be written at any time.
The interrupt module manages maskable interrupt priorities. Typically, an
on-chip interrupt source is subject to masking by associated bits in control
registers in addition to global masking by the I bit in the CCR. Sources



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