Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

MC9S08QD4CPS Datasheet(PDF) 55 Page - Freescale Semiconductor, Inc

Part # MC9S08QD4CPS
Description  8-Bit HCS08 Central Processor Unit (CPU)
Download  202 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MC9S08QD4CPS Datasheet(HTML) 55 Page - Freescale Semiconductor, Inc

Back Button MC9S08QD4CPS Datasheet HTML 51Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 52Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 53Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 54Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 55Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 56Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 57Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 58Page - Freescale Semiconductor, Inc MC9S08QD4CPS Datasheet HTML 59Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 55 / 202 page
background image
Chapter 5 Resets, Interrupts, and General System Control
MC9S08QD4 Series MCU Data Sheet, Rev. 3
Freescale Semiconductor
55
5.5
Interrupts
Interrupts provide a way to save the current CPU status and registers, execute an interrupt service routine
(ISR), and then restore the CPU status so processing resumes where it was before the interrupt. Other than
the software interrupt (SWI), which is a program instruction, interrupts are caused by hardware events
such as an edge on the IRQ pin or a timer-overflow event. The debug module can also generate an SWI
under certain circumstances.
If an event occurs in an enabled interrupt source, an associated read-only status flag will become set. The
CPU will not respond until and unless the local interrupt enable is a 1 to enable the interrupt. The I bit in
the CCR is 0 to allow interrupts. The global interrupt mask (I bit) in the CCR is initially set after reset
which masks (prevents) all maskable interrupt sources. The user program initializes the stack pointer and
performs other system setup before clearing the I bit to allow the CPU to respond to interrupts.
When the CPU receives a qualified interrupt request, it completes the current instruction before responding
to the interrupt. The interrupt sequence obeys the same cycle-by-cycle sequence as the SWI instruction
and consists of:
Saving the CPU registers on the stack
Setting the I bit in the CCR to mask further interrupts
Fetching the interrupt vector for the highest-priority interrupt that is currently pending
Filling the instruction queue with the first three bytes of program information starting from the
address fetched from the interrupt vector locations
While the CPU is responding to the interrupt, the I bit is automatically set to avoid the possibility of
another interrupt interrupting the ISR itself (this is called nesting of interrupts). Normally, the I bit is
restored to 0 when the CCR is restored from the value stacked on entry to the ISR. In rare cases, the I bit
can be cleared inside an ISR (after clearing the status flag that generated the interrupt) so that other
interrupts can be serviced without waiting for the first service routine to finish. This practice is not
recommended for anyone other than the most experienced programmers because it can lead to subtle
program errors that are difficult to debug.
The interrupt service routine ends with a return-from-interrupt (RTI) instruction which restores the CCR,
A, X, and PC registers to their pre-interrupt values by reading the previously saved information off the
stack.
NOTE
For compatibility with M68HC08 devices, the H register is not
automatically saved and restored. It is good programming practice to push
H onto the stack at the start of the interrupt service routine (ISR) and restore
it immediately before the RTI that is used to return from the ISR.
When two or more interrupts are pending when the I bit is cleared, the highest priority source is serviced
first (see Table 5-2).


Similar Part No. - MC9S08QD4CPS

ManufacturerPart #DatasheetDescription
logo
Freescale Semiconductor...
MC9S08QD4CPC FREESCALE-MC9S08QD4CPC Datasheet
951Kb / 196P
   Microcontrollers
MC9S08QD4CPC FREESCALE-MC9S08QD4CPC Datasheet
2Mb / 202P
   Microcontrollers
MC9S08QD4CPC FREESCALE-MC9S08QD4CPC Datasheet
2Mb / 198P
   HCS08 Microcontrollers
More results

Similar Description - MC9S08QD4CPS

ManufacturerPart #DatasheetDescription
logo
Freescale Semiconductor...
MC9S08DZ60 FREESCALE-MC9S08DZ60_08 Datasheet
4Mb / 416P
   8-Bit HCS08 Central Processor Unit (CPU)
MC9S08MP16 FREESCALE-MC9S08MP16 Datasheet
775Kb / 36P
   8-Bit HCS08 Central Processor Unit (CPU)
MC9S08AW60MFGE FREESCALE-MC9S08AW60MFGE Datasheet
1Mb / 324P
   8-Bit HCS08 Central Processor Unit (CPU)
MC9S08AC32CFGE FREESCALE-MC9S08AC32CFGE Datasheet
2Mb / 350P
   8-Bit HCS08 Central Processor Unit (CPU)
logo
NXP Semiconductors
MC9S08SE8 NXP-MC9S08SE8 Datasheet
773Kb / 35P
   8-Bit HCS08 Central Processor Unit (CPU)
Rev. 4, 4/2015
logo
Freescale Semiconductor...
MC9S08QE32 FREESCALE-MC9S08QE32 Datasheet
1Mb / 44P
   8-Bit HCS08 Central Processor Unit (CPU)
logo
NXP Semiconductors
MC9S08SV16 NXP-MC9S08SV16 Datasheet
915Kb / 40P
   8-Bit HCS08 Central Processor Unit (CPU)
Rev. 2, 7/2009
logo
Freescale Semiconductor...
MC9S08SV16 FREESCALE-MC9S08SV16 Datasheet
755Kb / 40P
   8-Bit HCS08 Central Processor Unit (CPU)
MC9S08QA4 FREESCALE-MC9S08QA4 Datasheet
2Mb / 32P
   8-bit HCS08 Central Processor Unit (CPU)
MC9S08QE128 FREESCALE-MC9S08QE128_08 Datasheet
1Mb / 50P
   8-Bit HCS08 Central Processor Unit (CPU)
MC9S08LG32 FREESCALE-MC9S08LG32_09 Datasheet
3Mb / 50P
   8-bit HCS08 Central Processor Unit (CPU)
More results


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




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   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