| Electronic Components Datasheet Search |
|
M68HC12B Datasheet(PDF) 73 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
M68HC12B Datasheet(HTML) 73 Page - Freescale Semiconductor, Inc |
|
73 / 334 page ![]() Interrupt Recognition M68HC12B Family Data Sheet, Rev. 9.1 Freescale Semiconductor 73 4.7.7 Other Resources The timer, serial communications interface (SCI), serial peripheral interface (SPI), byte data link controller (BDLC), pulse-width modulator (PWM), analog-to-digital converter (ATD), and MSCAN are off after reset. 4.8 Interrupt Recognition Once enabled, an interrupt request can be recognized at any time after the I bit in the CCR is cleared. When an interrupt request is recognized, the CPU responds at the completion of the instruction being executed. Interrupt latency varies according to the number of cycles required to complete the instruction. Some of the longer instructions can be interrupted and resume normally after servicing the interrupt. When the CPU begins to service an interrupt request, it: • Clears the instruction queue • Calculates the return address • Stacks the return address and the contents of the CPU registers as shown in Table 4-3 After stacking the CCR, the CPU: • Sets the I bit to prevent other interrupts from disrupting the interrupt service routine • Sets the X bit if an XIRQ interrupt request is pending • Fetches the interrupt vector for the highest-priority request that was pending at the beginning of the interrupt sequence • Begins execution of the interrupt service routine at the location pointed to by the vector If no other interrupt request is pending at the end of the interrupt service routine, a return-from-interrupt (RTI) instruction recovers the stacked values. Program execution resumes program at the return address. If another interrupt request is pending at the end of an interrupt service routine, the RTI instruction recovers the stacked values. However, the CPU then: • Adjusts the stack pointer to point again at the stacked CCR location, SP – 9 • Fetches the vector of the pending interrupt • Begins execution of the interrupt service routine at the location pointed to by the vector Table 4-3. Stacking Order on Entry to Interrupts Memory Location Stacked Values SP – 2 RTNH : RTNL SP – 4 YH : YL SP – 6 XH : XL SP – 8 B : A SP – 9 CCR |
|
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 |
| 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 |