ATAM894X-TNQY ATMEL [ATMEL Corporation], ATAM894X-TNQY Datasheet - Page 11

no-image

ATAM894X-TNQY

Manufacturer Part Number
ATAM894X-TNQY
Description
8k-flash Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Table 5-1.
Table 5-2.
5.2.9.1
5.2.9.2
4679D–4BMCU–05/05
Interrupt
INT0
INT1
INT2
INT3
INT4
INT5
INT6
INT7
Interrupt
INT1
INT2
INT3
INT4
INT5
INT6
INT7
Software Interrupts
Hardware Interrupts
Interrupt Priority Table
Hardware Interrupts
Priority
Highest
Lowest
|
|
|
|
|
The programmer can generate interrupts by using the software interrupt instruction (SWI) which
is supported in qFORTH by predefined macros named SWI0 to SWI7. The software triggered
interrupt operates exactly like any hardware triggered interrupt. The SWI instruction takes the
top two elements from the expression stack and writes the corresponding bits via the I/O bus to
the interrupt pending register. Therefore, by using the SWI instruction, interrupts can be re-prior-
itized or lower priority processes scheduled for later execution.
In the ATAM894, there are eleven hardware interrupt sources with seven different levels. Each
source can be masked individually by mask bits in the corresponding control registers. An over-
view of the possible hardware configurations is shown in
Register
T3CM1
T3CM2
T2CM
P5CR
P5CR
SISC
VCM
ROM Address
T1M
T3C
0C0h
1C0h
1E0h
040h
080h
100h
140h
180h
Interrupt Mask
D8h (SCALL 0C0h)
FCh (SCALL 1E0h)
C8h (SCALL 040h)
D0h (SCALL 080h)
F8h (SCALL 1C0h)
E8h (SCALL 100h)
E8h (SCALL 140h)
F0h (SCALL 180h)
Interrupt Opcode
P52M1, P52M2
P53M1, P53M2
P50M1, P50M2
P51M1, P51M2
T3EIM
T3IM1
T3IM2
T1IM
T2IM
SIM
VIM
Bit
Interrupt Source
Any edge at BP52
Any edge at BP53
Timer 1
SSI buffer full/empty or BP40/BP43 interrupt
Timer 2 compare match/overflow
Timer 3 compare register 1 match
Timer 3 compare register 2 match
Timer 3 edge event occurs (T3I)
Any edge at BP50
Any edge at BP51
External/internal voltage monitoring
Function
Software interrupt (SWI0)
External hardware interrupt, any edge at BP52 or BP53
Timer 1 interrupt
SSI interrupt or external hardware interrupt at BP40 or
BP43
Timer 2 interrupt
Timer 3 interrupt
External hardware interrupt, at any edge at BP50 or
BP51
Voltage Monitor (VM) interrupt
Table 5-2 on page
11.
ATAM894
11

Related parts for ATAM894X-TNQY