background image

Features

High-performance, Low-power Atmel

®

AVR

® 

8-bit Microcontroller

Advanced RISC Architecture

– 130 Powerful Instructions – Most Single-clock Cycle Execution
– 32 × 8 General Purpose Working Registers
– Fully Static Operation
– Up to 16MIPS Throughput at 16MHz
– On-chip 2-cycle Multiplier

High Endurance Non-volatile Memory segments

– 8Kbytes of In-System Self-programmable Flash program memory
– 512Bytes EEPROM
– 1Kbyte Internal SRAM
– Write/Erase Cycles: 10,000 Flash/100,000 EEPROM
– Data retention: 20 years at 85°C/100 years at 25°C

(1)

– Optional Boot Code Section with Independent Lock Bits

In-System Programming by On-chip Boot Program

True Read-While-Write Operation

– Programming Lock for Software Security

Peripheral Features

– Two 8-bit Timer/Counters with Separate Prescaler, one Compare Mode
– One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and Capture 

Mode

– Real Time Counter with Separate Oscillator
– Three PWM Channels
– 8-channel ADC in TQFP and QFN/MLF package

Eight Channels 10-bit Accuracy

– 6-channel ADC in PDIP package

Six Channels 10-bit Accuracy

– Byte-oriented Two-wire Serial Interface
– Programmable Serial USART
– Master/Slave SPI Serial Interface
– Programmable Watchdog Timer with Separate On-chip Oscillator
– On-chip Analog Comparator

Special Microcontroller Features

– Power-on Reset and Programmable Brown-out Detection
– Internal Calibrated RC Oscillator
– External and Internal Interrupt Sources
– Five Sleep Modes: Idle, ADC Noise Reduction, Power-save, Power-down, and 

Standby

I/O and Packages

– 23 Programmable I/O Lines
– 28-lead PDIP, 32-lead TQFP, and 32-pad QFN/MLF

Operating Voltages

– 2.7V - 5.5V (ATmega8L) 
– 4.5V - 5.5V (ATmega8)

Speed Grades

– 0 - 8MHz (ATmega8L)
– 0 - 16MHz (ATmega8)

Power Consumption at 4Mhz, 3V, 25

C

– Active: 3.6mA
– Idle Mode: 1.0mA
– Power-down Mode: 0.5µA

8-bit Atmel with 
8KBytes  In-
System
Programmable 
Flash

ATmega8
ATmega8L

Summary

Rev.2486AAS–AVR–02/2013

Содержание ATmega8

Страница 1: ... Compare Mode and Capture Mode Real Time Counter with Separate Oscillator Three PWM Channels 8 channel ADC in TQFP and QFN MLF package Eight Channels 10 bit Accuracy 6 channel ADC in PDIP package Six Channels 10 bit Accuracy Byte oriented Two wire Serial Interface Programmable Serial USART Master Slave SPI Serial Interface Programmable Watchdog Timer with Separate On chip Oscillator On chip Analog...

Страница 2: ... T1 PD5 AIN0 PD6 AIN1 PD7 ICP1 PB0 PC5 ADC5 SCL PC4 ADC4 SDA PC3 ADC3 PC2 ADC2 PC1 ADC1 PC0 ADC0 GND AREF AVCC PB5 SCK PB4 MISO PB3 MOSI OC2 PB2 SS OC1B PB1 OC1A PDIP 1 2 3 4 5 6 7 8 24 23 22 21 20 19 18 17 32 31 30 29 28 27 26 25 9 10 11 12 13 14 15 16 MLF Top View INT1 PD3 XCK T0 PD4 GND VCC GND VCC XTAL1 TOSC1 PB6 XTAL2 TOSC2 PB7 PC1 ADC1 PC0 ADC0 ADC7 GND AREF ADC6 AVCC PB5 SCK T1 PD5 AIN0 PD6...

Страница 3: ...ure 1 Block Diagram INTERNAL OSCILLATOR OSCILLATOR WATCHDOG TIMER MCU CTRL TIMING OSCILLATOR TIMERS COUNTERS INTERRUPT UNIT STACK POINTER EEPROM SRAM STATUS REGISTER USART PROGRAM COUNTER PROGRAM FLASH INSTRUCTION REGISTER INSTRUCTION DECODER PROGRAMMING LOGIC SPI ADC INTERFACE COMP INTERFACE PORTC DRIVERS BUFFERS PORTC DIGITAL INTERFACE GENERAL PURPOSE REGISTERS X Y Z ALU PORTB DRIVERS BUFFERS PO...

Страница 4: ...the user to maintain a timer base while the rest of the device is sleep ing The ADC Noise Reduction mode stops the CPU and all I O modules except asynchronous timer and ADC to minimize switching noise during ADC conversions In Standby mode the crystal resonator Oscillator is running while the rest of the device is sleeping This allows very fast start up combined with low power consumption The devi...

Страница 5: ...rce capability As inputs Port C pins that are externally pulled low will source current if the pull up resistors are activated The Port C pins are tri stated when a reset condition becomes active even if the clock is not running PC6 RESET If the RSTDISBL Fuse is programmed PC6 is used as an I O pin Note that the electrical char acteristics of PC6 differ from those of the other pins of Port C If th...

Страница 6: ...Tmega8L 8AU ATmega8L 8AUR 3 ATmega8L 8PU ATmega8L 8MU ATmega8L 8MUR 3 32A 32A 28P3 32M1 A 32M1 A Industrial 40 C to 85 C 16 4 5 5 5 ATmega8 16AU ATmega8 16AUR 3 ATmega8 16PU ATmega8 16MU ATmega8 16MUR 3 32A 32A 28P3 32M1 A 32M1 A 8 2 7 5 5 ATmega8L 8AN ATmega8L 8ANR 3 ATmega8L 8PN ATmega8L 8MN ATmega8L 8MUR 3 32A 32A 28P3 32M1 A 32M1 A Industrial 40 C to 105 C 16 4 5 5 5 ATmega8 16AN ATmega8 16ANR...

Страница 7: ...ms to JEDEC reference MS 026 Variation ABA 2 Dimensions D1 and E1 do not include mold protrusion Allowable protrusion is 0 25mm per side Dimensions D1 and E1 are maximum plastic body size dimensions including mold mismatch 3 Lead coplanarity is 0 10mm maximum A 1 20 A1 0 05 0 15 A2 0 95 1 00 1 05 D 8 75 9 00 9 25 D1 6 90 7 00 7 10 Note 2 E 8 75 9 00 9 25 E1 6 90 7 00 7 10 Note 2 B 0 30 0 45 C 0 09...

Страница 8: ...1 C L SEATING PLANE A 0º 15º D e eB B2 4 PLACES COMMON DIMENSIONS Unit of Measure mm SYMBOL MIN NOM MAX NOTE A 4 5724 A1 0 508 D 34 544 34 798 Note 1 E 7 620 8 255 E1 7 112 7 493 Note 1 B 0 381 0 533 B1 1 143 1 397 B2 0 762 1 143 L 3 175 3 429 C 0 203 0 356 eB 10 160 e 2 540 TYP Note 1 Dimensions D and E1 do not include mold Flash or Protrusion Mold Flash or Protrusion shall not exceed 0 25mm 0 01...

Страница 9: ...of Measure mm SYMBOL MIN NOM MAX NOTE D1 D E1 E e b A3 A2 A1 A D2 E2 0 08 C L 1 2 3 P P 0 1 2 3 A 0 80 0 90 1 00 A1 0 02 0 05 A2 0 65 1 00 A3 0 20 REF b 0 18 0 23 0 30 D D1 D2 2 95 3 10 3 25 4 90 5 00 5 10 4 70 4 75 4 80 4 70 4 75 4 80 4 90 5 00 5 10 E E1 E2 2 95 3 10 3 25 e 0 50 BSC L 0 30 0 40 0 50 P 0 60 12o Note JEDEC Standard MO 220 Fig 2 Anvil Singulation VHHD 2 TOP VIEW SIDE VIEW BOTTOM VIE...

Страница 10: ...Register TCNTx or asynchronous Output Compare Register OCRx 3 Signature may be Erased in Serial Programming Mode If the signature bytes are read before a chiperase command is completed the signature may be erased causing the device ID and calibration bytes to disappear This is critical espe cially if the part is running on internal RC oscillator Problem Fix Workaround Ensure that the chiperase com...

Страница 11: ... or STS to set EERE bit triggers unexpected interrupt request Reading EEPROM by using the ST or STS command to set the EERE bit in the EECR reg ister triggers an unexpected EEPROM interrupt request Problem Fix Workaround Always use OUT or SBI to set EERE in EECR ...

Страница 12: ...products EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE OR NON INFRINGEMENT IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT INDIRECT ...

Отзывы: