ATmega8A Atmel Corporation, ATmega8A Datasheet - Page 13

no-image

ATmega8A

Manufacturer Part Number
ATmega8A
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega8A

Flash (kbytes)
8 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
2
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
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
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Pwm Channels
3
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA8A
Manufacturer:
ATMEL
Quantity:
530
Part Number:
ATmega8A-AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega8A-ANR
Manufacturer:
Atmel
Quantity:
2 034
Part Number:
ATmega8A-ANR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega8A-AU
Manufacturer:
NXP
Quantity:
1 001
Part Number:
ATmega8A-AU
Manufacturer:
ATM
Quantity:
10 000
Part Number:
ATmega8A-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega8A-AU
Manufacturer:
ATMEL
Quantity:
1 000
Part Number:
ATmega8A-AU
Manufacturer:
Microchip
Quantity:
1 000
Part Number:
ATmega8A-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATmega8A-AU
Quantity:
10 000
Part Number:
ATmega8A-MNR
Manufacturer:
Atmel
Quantity:
9 939
Part Number:
ATmega8A-MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega8A-PU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
6.7
8159D–AVR–02/11
Reset and Interrupt Handling
The Atmel
Reset Vector each have a separate Program Vector in the Program memory space. All inter-
rupts are assigned individual enable bits which must be written logic one together with the
Global Interrupt Enable bit in the Status Register in order to enable the interrupt. Depending on
the Program Counter value, interrupts may be automatically disabled when Boot Lock Bits
BLB02 or BLB12 are programmed. This feature improves software security. See the section
“Memory Programming” on page 226
The lowest addresses in the Program memory space are by default defined as the Reset and
Interrupt Vectors. The complete list of Vectors is shown in
determines the priority levels of the different interrupts. The lower the address the higher is the
priority level. RESET has the highest priority, and next is INT0 – the External Interrupt Request
0. The Interrupt Vectors can be moved to the start of the boot Flash section by setting the Inter-
rupt Vector Select (IVSEL) bit in the General Interrupt Control Register (GICR). Refer to
“Interrupts” on page 45
the boot Flash section by programming the BOOTRST Fuse, see
While-Write Self-Programming” on page
When an interrupt occurs, the Global Interrupt Enable I-bit is cleared and all interrupts are dis-
abled. The user software can write logic one to the I-bit to enable nested interrupts. All enabled
interrupts can then interrupt the current interrupt routine. The I-bit is automatically set when a
Return from Interrupt instruction – RETI – is executed.
There are basically two types of interrupts. The first type is triggered by an event that sets the
Interrupt Flag. For these interrupts, the Program Counter is vectored to the actual Interrupt Vec-
tor in order to execute the interrupt handling routine, and hardware clears the corresponding
Interrupt Flag. Interrupt Flags can also be cleared by writing a logic one to the flag bit position(s)
to be cleared. If an interrupt condition occurs while the corresponding interrupt enable bit is
cleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag is
cleared by software. Similarly, if one or more interrupt conditions occur while the global interrupt
enable bit is cleared, the corresponding Interrupt Flag(s) will be set and remembered until the
global interrupt enable bit is set, and will then be executed by order of priority.
The second type of interrupts will trigger as long as the interrupt condition is present. These
interrupts do not necessarily have Interrupt Flags. If the interrupt condition disappears before the
interrupt is enabled, the interrupt will not be triggered.
When the AVR exits from an interrupt, it will always return to the main program and execute one
more instruction before any pending interrupt is served.
Note that the Status Register is not automatically stored when entering an interrupt routine, nor
restored when returning from an interrupt routine. This must be handled by software.
When using the CLI instruction to disable interrupts, the interrupts will be immediately disabled.
No interrupt will be executed after the CLI instruction, even if it occurs simultaneously with the
®
AVR
®
provides several different interrupt sources. These interrupts and the separate
for more information. The Reset Vector can also be moved to the start of
for details.
212.
“Interrupts” on page
“Boot Loader Support – Read-
ATmega8A
45. The list also
13

Related parts for ATmega8A