Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

AT90S2313-4PI View Datasheet(PDF) - Atmel Corporation

Part Name
Description
MFG CO.
'AT90S2313-4PI' PDF : 92 Pages View PDF
Reset and Interrupt
Handling
The AT90S2313 provides 10 different interrupt sources. These interrupts and the sepa-
rate Reset Vector each have a separate Program Vector in the program memory space.
All the interrupts are assigned individual enable bits that must be set (one) together with
the I-bit in the Status Register in order to enable the interrupt.
The lowest addresses in the Program memory space are automatically defined as the
Reset and Interrupt Vectors. The complete list of vectors is shown in Table 2. The list
also determines the priority levels of the different interrupts. The lower the address, the
higher the priority level. RESET has the highest priority, and next is INT0 (the External
Interrupt Request 0), etc.
Table 2. Reset and Interrupt Vectors
Vector No.
1
2
3
4
5
6
7
8
9
10
11
Program Address
$000
$001
$002
$003
$004
$005
$006
$007
$008
$009
$00A
Source
RESET
INT0
INT1
TIMER1 CAPT1
TIMER1 COMP1
TIMER1 OVF1
TIMER0 OVF0
UART, RX
UART, UDRE
UART, TX
ANA_COMP
Interrupt Definition
Hardware Pin, Power-on Reset and
Watchdog Reset
External Interrupt Request 0
External Interrupt Request 1
Timer/Counter1 Capture Event
Timer/Counter1 Compare Match
Timer/Counter1 Overflow
Timer/Counter0 Overflow
UART, RX Complete
UART Data Register Empty
UART, TX Complete
Analog Comparator
The most typical and general program setup for the Reset and Interrupt Vector
addresses are:
Address Labels Code
Comments
$000
$001
$002
$003
$004
$005
$006
$007
$008
$009
$00a
;
$00b
$00c
$00d
rjmp RESET
rjmp EXT_INT0
rjmp EXT_INT1
rjmp TIM_CAPT1
rjmp TIM_COMP1
rjmp TIM_OVF1
rjmp TIM_OVF0
rjmp UART_RXC
rjmp UART_DRE
rjmp UART_TXC
rjmp ANA_COMP
; Reset Handler
; IRQ0 Handler
; IRQ1 Handler
; Timer1 Capture Handler
; Timer1 Compare Handler
; Timer1 Overflow Handler
; Timer0 Overflow Handler
; UART RX Complete Handler
; UDR Empty Handler
; UART TX Complete Handler
; Analog Comparator Handler
MAIN:
ldi r16,low(RAMEND); Main program start
out SPL,r16
<instr> xxx
18 AT90S2313
0839IAVR06/02
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]