Interupsi adalah kondisi yang mengharuskan mikrokontroler menghentikan sementara eksekusi program utama untuk mengeksekusi rutin interrupt tertentu / Interrupt Service Routine (ISR) Setelah melaksanakan ISR secara lengkap, maka mikrokontroler akan kembali melanjutkan eksekusi program utama yang tadi ditinggalkan.
Gambar Eksekusi Program Tanpa Interupsi
Gambar Eksekusi Program dengan Interupsi
Tabel Interrupt Vector pada ATMega 8535L
Vector No | Program Address | Source | Interrupt Definition |
1 | 0x0000 | RESET | External Pin, Power-on Reset, Brown-out Reset and Watchdog Reset |
2 | 0x0001 | INT0 | External Interrupt Request 0 |
3 | 0x0002 | INT1 | External Interrupt Request 1 |
4 | 0x0003 | TIMER2 COMP | Timer/Counter2 Compare Match |
5 | 0x0004 | TIMER2 OVF | Timer/Counter2 Overflow |
6 | 0x0005 | TIMER1 CAPT | Timer/Counter1 Capture Event |
7 | 0x0006 | TIMER1 COMPA | Timer/Counter1 Compare Match A |
8 | 0x0007 | TIMER1 COMPB | Timer/Counter1 Compare Match B |
9 | 0x0008 | TIMER1 OVF | Timer/Counter1 Overflow |
10 | 0x0009 | TIMER0 OVF | Timer/Counter0 Overflow |
11 | 0x000A | SPI, STC | Serial Transfer Complete |
12 | 0x000B | USART, RXC | USART, Rx Complete |
13 | 0x000C | USART, UDRE | USART Data Register Empty |
14 | 0x000D | USART, TXC | USART, Tx Complete |
15 | 0x000E | ADC | ADC Conversion Complete |
16 | 0x000F | EE_RDY | EEPROM Ready |
17 | 0x0010 | ANA_COMP | Analog Comparator |
18 | 0x0011 | TWI | Two-wire Serial Interface |
19 | 0x0012 | INT2 | External Interrupt Request 2 |
20 | 0x0013 | TIMER0 COMP | Timer/Counter0 Compare Match |
21 | 0x0014 | SPM_RDY | Store Program Memory Ready |
0 Response to "Pengertian Interupsi adalah"
Post a Comment