| 数据搜索系统,热门电子元器件搜索 |
|
ATmega169PV-8MCH 数据表(PDF) 59 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega169PV-8MCH 数据表(HTML) 59 Page - ATMEL Corporation |
|
59 / 393 page ![]() 59 8018N–AVR–08/09 ATmega169P ; 0x1C2E RESET: ldi r16,high(RAMEND); Main program start 0x1C2F out SPH,r16 ; Set Stack Pointer to top of RAM 0x1C30 ldi r16,low(RAMEND) 0x1C31 out SPL,r16 0x1C32 sei ; Enable interrupts 0x1C33 <instr> xxx 11.2 Moving Interrupts Between Application and Boot Space The General Interrupt Control Register controls the placement of the Interrupt Vector table, see ”MCUCR – MCU Control Register” on page 60. To avoid unintentional changes of Interrupt Vector tables, a special write procedure must be fol- lowed to change the IVSEL bit: a. Write the Interrupt Vector Change Enable (IVCE) bit to one. b. Within four cycles, write the desired value to IVSEL while writing a zero to IVCE. Interrupts will automatically be disabled while this sequence is executed. Interrupts are disabled in the cycle IVCE is set, and they remain disabled until after the instruction following the write to IVSEL. If IVSEL is not written, interrupts remain disabled for four cycles. The I-bit in the Status Register is unaffected by the automatic disabling. Note: If Interrupt Vectors are placed in the Boot Loader section and Boot Lock bit BLB02 is programmed, interrupts are disabled while executing from the Application section. If Interrupt Vectors are placed in the Application section and Boot Lock bit BLB12 is programed, interrupts are disabled while executing from the Boot Loader section. Refer to the section ”Boot Loader Support – Read-While- Write Self-Programming” on page 279 for details on Boot Lock bits. The following example shows how interrupts are moved. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |