ATA5771 ATMEL Corporation, ATA5771 Datasheet - Page 100

no-image

ATA5771

Manufacturer Part Number
ATA5771
Description
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA5771
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATA5771-PXQW
Manufacturer:
ATMEL
Quantity:
218
9.2
9.2.1
48
External Interrupts
ATtiny24/44/84
Low Level Interrupt
The External Interrupts are triggered by the INT0 pin or any of the PCINT11..0 pins. Observe
that, if enabled, the interrupts will trigger even if the INT0 or PCINT11..0 pins are configured as
outputs. This feature provides a way of generating a software interrupt. Pin change 0 interrupts
PCI0 will trigger if any enabled PCINT7..0 pin toggles. Pin change 1 interrupts PCI1 will trigger if
any enabled PCINT11..8 pin toggles. The PCMSK0 and PCMSK1 Registers control which pins
contribute to the pin change interrupts. Pin change interrupts on PCINT11..0 are detected asyn-
chronously. This implies that these interrupts can be used for waking the part also from sleep
modes other than Idle mode.
The INT0 interrupts can be triggered by a falling or rising edge or a low level. This is set up as
indicated in the specification for the MCU Control Register – MCUCR. When the INT0 interrupt is
enabled and is configured as level triggered, the interrupt will trigger as long as the pin is held
low. Note that recognition of falling or rising edge interrupts on INT0 requires the presence of an
I/O clock, as described in
A low level interrupt on INT0 is detected asynchronously. This means that the interrupt source
can be used for waking the part also from sleep modes other than Idle (the I/O clock is halted in
all sleep modes except Idle).
Address Labels Code
0x0000
0x0001
0x0002
0x0003
0x0004
0x0005
0x0006
0x0007
0x0008
0x0009
0x000A
0x000B
0x000C
0x000D
0x000E
0x000F
0x0010
;
0x0011
0x0012
0x0013
0x0014
0x0015
0x0016
...
RESET: ldi
...
<instr>
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
rjmp
out
ldi
out
sei
...
“Clock Systems and their Distribution” on page
xxx
...
RESET
INT0
PCINT0
PCINT1
WDT
TIM1_CAPT
TIM1_COMPA
TIM1_COMPB
TIM1_OVF
TIM0_COMPA
TIM0_COMPB
TIM0_OVF
ANA_COMP
ADC
EE_RDY
USI_STR
USI_OVF
r16, high(RAMEND); Main program start
SPH,r16
r16, low(RAMEND)
SPL,r16
Comments
; Reset Handler
; IRQ0 Handler
; PCINT0 Handler
; PCINT1 Handler
; Watchdog Interrupt Handler
; Timer1 Capture Handler
; Timer1 Compare A Handler
; Timer1 Compare B Handler
; Timer1 Overflow Handler
; Timer0 Compare A Handler
; Timer0 Compare B Handler
; Timer0 Overflow Handler
; Analog Comparator Handler
; ADC Conversion Handler
; EEPROM Ready Handler
; USI STart Handler
; USI Overflow Handler
; Set Stack Pointer to top of RAM
; Enable interrupts
23.
8006G–AVR–01/08

Related parts for ATA5771