參數(shù)資料
型號(hào): MD80C154-16P883
廠商: TEMIC SEMICONDUCTORS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, 16 MHz, MICROCONTROLLER, CDIP40
文件頁(yè)數(shù): 512/839頁(yè)
文件大?。?/td> 61013K
代理商: MD80C154-16P883
56
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P [DATASHEET]
8285E–AVR–02/2013
The following example shows how interrupts are moved.
12.3
Register description
12.3.1
MCUCR – MCU Control Register
Note:
1. Only available in the picoPower devices ATmega165PA/325PA/3250PA/645P/6450P.
Bit 1 – IVSEL: Interrupt Vector Select
When the IVSEL bit is cleared (zero), the Interrupt Vectors are placed at the start of the Flash memory. When this
bit is set (one), the Interrupt Vectors are moved to the beginning of the Boot Loader section of the Flash. The actual
address of the start of the Boot Flash Section is determined by the BOOTSZ Fuses. Refer to the section ”Boot
Bit 0 – IVCE: Interrupt Vector Change Enable
The IVCE bit must be written to logic one to enable change of the IVSEL bit. IVCE is cleared by hardware four
cycles after it is written or when IVSEL is written. Setting the IVCE bit will disable interrupts, as explained in the
Assembly code example
Move_interrupts:
; Get MCUCR
in
r16, MCUCR
mov
r17, r16
; Enable change of Interrupt Vectors
ori
r16, (1<<IVCE)
out
MCUCR, r16
; Move interrupts to Boot Flash section
ori
r17, (1<<IVSEL)
out
MCUCR, r17
ret
C code example
void
Move_interrupts(void)
{
uchar temp;
/* Get MCUCR*/
temp = MCUCR;
/* Enable change of Interrupt Vectors */
MCUCR = temp | (1<<IVCE);
/* Move interrupts to Boot Flash section
*/ MCUCR = temp | (1<<IVSEL);
}
Bit
7
654
3
2
1
0
0x35 (0x55)
JTD
BODS
BODSE
PUD
IVSEL
IVCE
MCUCR
Read/Write
R/W
RR
R/W
RR
R/W
Initial Value
0
相關(guān)PDF資料
PDF描述
MD83C154TXXX-16P883D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CDIP40
MR83C154XXX-16P883D 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQCC44
MR80C154-20/883 8-BIT, 20 MHz, MICROCONTROLLER, CQCC44
MQ83C154XXX-25/883R 8-BIT, MROM, 25 MHz, MICROCONTROLLER, CQFP44
MD80C52XXX-12SC 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CDIP40
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MD80C154-20 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:CMOS 0 to 36 MHz Single Chip 8-bit Microcontroller
MD80C154-25 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:CMOS 0 to 36 MHz Single Chip 8-bit Microcontroller
MD80C154-30 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:CMOS 0 to 36 MHz Single Chip 8-bit Microcontroller
MD80C154-36 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:CMOS 0 to 36 MHz Single Chip 8-bit Microcontroller
MD80C154-L16 制造商:TEMIC 制造商全稱:TEMIC Semiconductors 功能描述:CMOS 0 to 36 MHz Single Chip 8-bit Microcontroller