參數(shù)資料
型號: TS87C51RD2-VLMR
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 40 MHz, MICROCONTROLLER, PQFP64
封裝: 1.40 MM HEIGHT, VQFP-64
文件頁數(shù): 16/83頁
文件大?。?/td> 8336K
代理商: TS87C51RD2-VLMR
17
8021G–AVR–03/11
ATmega329P/3290P
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.
6.8.1
Interrupt Response Time
The interrupt execution response for all the enabled AVR interrupts is four clock cycles mini-
mum. After four clock cycles the program vector address for the actual interrupt handling routine
is executed. During this four clock cycle period, the Program Counter is pushed onto the Stack.
The vector is normally a jump to the interrupt routine, and this jump takes three clock cycles. If
an interrupt occurs during execution of a multi-cycle instruction, this instruction is completed
before the interrupt is served. If an interrupt occurs when the MCU is in sleep mode, the interrupt
execution response time is increased by four clock cycles. This increase comes in addition to the
start-up time from the selected sleep mode.
A return from an interrupt handling routine takes four clock cycles. During these four clock
cycles, the Program Counter (two bytes) is popped back from the Stack, the Stack Pointer is
incremented by two, and the I-bit in SREG is set.
Assembly Code Example
in
r16, SREG
; store SREG value
cli
; disable interrupts during timed sequence
sbi
EECR, EEMWE
; start EEPROM write
sbi
EECR, EEWE
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<<EEMWE); /* start EEPROM write */
EECR |= (1<<EEWE);
SREG = cSREG; /* restore SREG value (I-bit) */
Assembly Code Example
sei
; set Global Interrupt Enable
sleep
; enter sleep, waiting for interrupt
; note: will enter sleep before any pending
; interrupt(s)
C Code Example
__enable_interrupt(); /* set Global Interrupt Enable */
__sleep(); /* enter sleep, waiting for interrupt */
/* note: will enter sleep before any pending interrupt(s) */
相關(guān)PDF資料
PDF描述
TS87C51RB2-VLEB 8-BIT, OTPROM, 40 MHz, MICROCONTROLLER, PQFP44
TS80C52X2-LLCB 8-BIT, MROM, 30 MHz, MICROCONTROLLER, PQFP44
TS80C51RA2-VLBB 8-BIT, 40 MHz, MICROCONTROLLER, PQCC44
TS87C52X2-VLEB 8-BIT, OTPROM, 40 MHz, MICROCONTROLLER, PQFP44
TS87C54X2-VLBB 8-BIT, OTPROM, 40 MHz, MICROCONTROLLER, PQCC44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TS87C51U2 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:Double UART 8-bit CMOS Microcontroller, 0-60 MHz
TS87C51U2-EA 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
TS87C51U2-EB 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
TS87C51U2-EE 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller
TS87C51U2-EJ 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Microcontroller