ATmega16HVB Atmel Corporation, ATmega16HVB Datasheet - Page 58

no-image

ATmega16HVB

Manufacturer Part Number
ATmega16HVB
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega16HVB

Flash (kbytes)
16 Kbytes
Pin Count
44
Max. Operating Frequency
8 MHz
Cpu
8-bit AVR
# Of Touch Channels
8
Hardware Qtouch Acquisition
No
Max I/o Pins
17
Ext Interrupts
15
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
12
Adc Speed (ksps)
1.9
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
4.0 to 25
Operating Voltage (vcc)
4.0 to 25
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
4
Input Capture Channels
2
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega16HVB-8X3
Manufacturer:
LT
Quantity:
51
Part Number:
ATmega16HVB-8X3
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
13. External interrupts
13.1
13.2
13.2.1
58
Overview
Register description
ATmega16HVB/32HVB
EICRA – External Interrupt Control Register A
The External Interrupts are triggered by the INT3:0 pin or any of the PCINT11:0 pins. Observe
that, if enabled, the interrupts will trigger even if the INT3:0 or PCINT11:0 pins are configured as
outputs. This feature provides a way of generating a software interrupt.
The External 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
the external interrupt is enabled and is configured as level triggered, the interrupt will trigger as
long as the pin is held low. Interrupts are detected asynchronously. This implies that these inter-
rupts can be used for waking the part also from sleep modes other than Idle mode. The I/O clock
is halted in all sleep modes except Idle mode.
The Pin change interrupt PCI1 will trigger if any enabled PCINT11:4 pin toggles and Pin change
interrupts PCI0 will trigger if any enabled PCINT3:0 pin toggles. PCMSK1 and PCMSK0 Regis-
ters control which pins contribute to the pin change interrupts. Pin change interrupts on
PCINT11:0 are detected asynchronously. This implies that these interrupts can be used for wak-
ing the part also from sleep modes other than Idle mode.
Note that if a level triggered interrupt is used for wake-up from Power-save, the required level
must be held long enough for the MCU to complete the wake-up to trigger the level interrupt. If
the level disappears before the end of the Start-up Time, the MCU will still wake up, but no inter-
rupt will be generated. The start-up time is defined by the SUT fuses as described in
systems and their distribution” on page
• Bits 7:0 – ISCn: External Interrupt Sense Control Bits
The External Interrupts 3:0 are activated by the external pins INT3:0 if the SREG I-flag and the
corresponding interrupt mask in the EIMSK is set. The level and edges on the external pins that
activate the interrupts are defined in
asynchronously. Pulses on INT3:0 pins wider than the minimum pulse width given in
11 on page 230
interrupt. If low level interrupt is selected, the low level must be held until the completion of the
currently executing instruction to generate an interrupt. If enabled, a level triggered interrupt will
generate an interrupt request as long as the pin is held low. When changing the ISCn bit, an
interrupt can occur. Therefore, it is recommended to first disable INTn by clearing its Interrupt
Enable bit in the EIMSK Register. Then, the ISCn bit can be changed. Finally, the INTn interrupt
flag should be cleared by writing a logical one to its Interrupt Flag bit (INTFn) in the EIFR Regis-
ter before the interrupt is re-enabled.
Bit
(0x69)
Read/Write
Initial Value
ISC31
R/W
will generate an interrupt. Shorter pulses are not guaranteed to generate an
7
0
ISC30
R/W
6
0
ISC21
R/W
5
0
Table 13-1 on page
25.
“EICRA – External Interrupt Control Register A”
ISC20
R/W
4
0
ISC11
R/W
3
0
59. Edges on INT3..INT0 are registered
ISC10
R/W
2
0
ISC01
R/W
1
0
ISC00
R/W
0
0
8042D–AVR–10/11
Table 32-
EICRA
. When
”Clock

Related parts for ATmega16HVB