參數資料
型號: MC68HC05P4ADW
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO28
封裝: SOIC-28
文件頁數: 16/72頁
文件大?。?/td> 400K
代理商: MC68HC05P4ADW
MC68HC05P4A Data Sheet, Rev. 7.1
Freescale Semiconductor
23
Chapter 4
Interrupts
4.1 Introduction
The MCU can be interrupted four different ways:
Two maskable hardware interrupts, IRQ and timer
Non-maskable software interrupt instruction (SWI)
Optional external asynchronous interrupt on each port A pin (enabled by pullup mask option)
Interrupts cause the processor to save register contents on the stack and to set the interrupt mask (I bit)
to prevent additional interrupts. The return to interrupt (RTI) instruction causes the register contents to be
recovered from the stack and normal processing to resume.
Unlike RESET, hardware interrupts do not cause the current instruction execution to be halted, but are
considered pending until the current instruction is complete.
NOTE
The current instruction is the one already fetched and being operated on.
When the current instruction is complete, the processor checks all pending hardware interrupts. If
interrupts are not masked (CCR I bit clear) and if the corresponding interrupt enable bit is set, the
processor proceeds with interrupt processing; otherwise, the next instruction is fetched and executed.
If both an external interrupt and a timer interrupt are pending at the end of an instruction execution, the
external interrupt is serviced first. The SWI is executed the same as any other instruction, regardless of
the I-bit state.
Table 4-1 lists vector addresses for all interrupts including reset.
4.2 Hardware Controlled Interrupt Sequence
RESET, STOP, and WAIT are not interrupts in the strictest sense. However, they are acted upon in a
similar manner. Flowcharts for hardware interrupts are shown in Figure 4-1 and for STOP and WAIT in
Table 4-1. Vector Address for Interrupts and Reset
Register
Flag
Name
Interrupts
CPU
Interrupt
Vector Address
N/A
Reset
RESET
$1FFE–$1FFF
N/A
Software
SWI
$1FFC–$1FFD
N/A
External interrupt
IRQ
$1FFA–$1FFB
TSR
ICF
Timer input capture
TIMER
$1FF8–$1FF9
TSR
OCF
Timer output capture
TIMER
$1FF8–$1FF9
TSR
TOF
Timer overflow
TIMER
$1FF8–$1FF9
相關PDF資料
PDF描述
MC68HC05P6VS 8-BIT, 2.1 MHz, MICROCONTROLLER, CDIP28
MC68HC05P6CS 8-BIT, 2.1 MHz, MICROCONTROLLER, CDIP28
MC68HC05P6VP 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP28
MC68HC05P6CDW 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO28
MC68HC05P6DW 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDSO28
相關代理商/技術參數
參數描述
MC68HC05P4DW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P4P 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P6 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P6_1 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P8 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT