參數(shù)資料
型號: MEGA32C1-15AZ
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 16 MHz, RISC MICROCONTROLLER, PQFP32
封裝: 7 X 7 MM, 1 MM HEIGHT, 0.80 MM PITCH, LEAD FREE, PLASTIC, TQFP-32
文件頁數(shù): 10/132頁
文件大?。?/td> 10886K
代理商: MEGA32C1-15AZ
18
7593L–AVR–09/12
AT90USB64/128
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描述
MS80C51C-30R 8-BIT, MROM, 30 MHz, MICROCONTROLLER, PQCC44
MQ80C52EXXX-16P883R 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQFP44
MC80C32-30SCD 8-BIT, 30 MHz, MICROCONTROLLER, CDIP40
MQ83C154CXXX-L16P883 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQFP44
MD83C154CXXX-20/883D 8-BIT, MROM, 20 MHz, MICROCONTROLLER, CDIP40
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MEGA32C1-15MZ 制造商:Atmel Corporation 功能描述:
MEGA32C1-ESAZ 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/32K/64K Bytes In-System Programmable Flash
MEGA32C1-ESMZ 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/32K/64K Bytes In-System Programmable Flash
MEGA32M1-15AZ 制造商:Atmel Corporation 功能描述:
MEGA32M1-15MZ 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/32K/64K Bytes In-System Programmable Flash