參數(shù)資料
型號: MV80C51T-20D
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 20 MHz, MICROCONTROLLER, PQFP44
封裝: 1.40 MM HEIGHT, QFP-44
文件頁數(shù): 7/32頁
文件大?。?/td> 3152K
代理商: MV80C51T-20D
14
7707F–AVR–11/10
AT90USB82/162
There are basically two types of interrupts. The first type is triggered by an event that sets the
Interrupt Flag. For these interrupts, the Program Counter is vectored to the actual Interrupt Vec-
tor in order to execute the interrupt handling routine, and hardware clears the corresponding
Interrupt Flag. Interrupt Flags can also be cleared by writing a logic one to the flag bit position(s)
to be cleared. If an interrupt condition occurs while the corresponding interrupt enable bit is
cleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag is
cleared by software. Similarly, if one or more interrupt conditions occur while the Global Interrupt
Enable bit is cleared, the corresponding Interrupt Flag(s) will be set and remembered until the
Global Interrupt Enable bit is set, and will then be executed by order of priority.
The second type of interrupts will trigger as long as the interrupt condition is present. These
interrupts do not necessarily have Interrupt Flags. If the interrupt condition disappears before the
interrupt is enabled, the interrupt will not be triggered.
When the AVR exits from an interrupt, it will always return to the main program and execute one
more instruction before any pending interrupt is served.
Note that the Status Register is not automatically stored when entering an interrupt routine, nor
restored when returning from an interrupt routine. This must be handled by software.
When using the CLI instruction to disable interrupts, the interrupts will be immediately disabled.
No interrupt will be executed after the CLI instruction, even if it occurs simultaneously with the
CLI instruction. The following example shows how this can be used to avoid interrupts during the
timed EEPROM write sequence..
When using the SEI instruction to enable interrupts, the instruction following SEI will be exe-
cuted before any pending interrupts, as shown in this example.
Assembly Code Example
in
r16, SREG
; store SREG value
cli
; disable interrupts during timed sequence
sbi
EECR, EEMPE
; start EEPROM write
sbi
EECR, EEPE
out
SREG, r16
; restore SREG value (I-bit)
C Code Example
char
cSREG;
cSREG = SREG; /* store SREG value */
/* disable interrupts during timed sequence */
__disable_interrupt();
EECR |= (1<<EEMPE); /* start EEPROM write */
EECR |= (1<<EEPE);
SREG = cSREG; /* restore SREG value (I-bit) */
相關(guān)PDF資料
PDF描述
MT80C51C-36D 8-BIT, MROM, 36 MHz, MICROCONTROLLER, PQFP44
MD80C32E-16SCD 8-BIT, 16 MHz, MICROCONTROLLER, CDIP40
MD80C52CXXX-16P883D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CDIP40
MD80C32-20SC 8-BIT, 20 MHz, MICROCONTROLLER, CDIP40
MQ80C52EXXX-25SBR 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MV8102 功能描述:標(biāo)準(zhǔn)LED-通孔 T-1 3/4 RED CLR 20DG RoHS:否 制造商:Vishay Semiconductors 照明顏色:Red 光強(qiáng)度:0.7 mcd 波長/色溫:615 nm 顯示角:45 deg 透鏡顏色/類型:Clear, Non-Diffused 正向電流:70 mA 正向電壓:1.83 V to 3.03 V LED 大小:2 mm 系列: 封裝:Tube
MV8102 制造商:Fairchild Semiconductor Corporation 功能描述:LED ALGAAS SUPERBRIGHT RED
MV8102 制造商:Fairchild Semiconductor Corporation 功能描述:LED LAMP
MV8103 功能描述:標(biāo)準(zhǔn)LED-通孔 T-1 3/4 RED CLR 20DG RoHS:否 制造商:Vishay Semiconductors 照明顏色:Red 光強(qiáng)度:0.7 mcd 波長/色溫:615 nm 顯示角:45 deg 透鏡顏色/類型:Clear, Non-Diffused 正向電流:70 mA 正向電壓:1.83 V to 3.03 V LED 大小:2 mm 系列: 封裝:Tube
MV8104 功能描述:標(biāo)準(zhǔn)LED-通孔 T-1 3/4 RED CLR 20DG RoHS:否 制造商:Vishay Semiconductors 照明顏色:Red 光強(qiáng)度:0.7 mcd 波長/色溫:615 nm 顯示角:45 deg 透鏡顏色/類型:Clear, Non-Diffused 正向電流:70 mA 正向電壓:1.83 V to 3.03 V LED 大小:2 mm 系列: 封裝:Tube