ATmega8 Atmel Corporation, ATmega8 Datasheet - Page 224
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega8
Manufacturer Part Number
ATmega8
Description
Manufacturer
Atmel Corporation
Specifications of ATmega8
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
Output Compare Channels
3
Input Capture Channels
1
Pwm Channels
3
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega8-16AI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATmega8-16AU
Manufacturer:
Atmel
Quantity:
20 000
Company:
Part Number:
ATmega8-16AU
Manufacturer:
ATMEL
Quantity:
5
Part Number:
ATmega8-16AU
Manufacturer:
ATMEL
Quantity:
20 000
Company:
Part Number:
ATmega8-16AUR
Manufacturer:
AVX
Quantity:
4 000
Company:
Part Number:
ATmega8-16AUЈ¬ SL383
Manufacturer:
ATMEL
Quantity:
6 000
Company:
Part Number:
ATmega8-16PU
Manufacturer:
ATMEL
Quantity:
5 510
Part Number:
ATmega8515
Manufacturer:
AT
Quantity:
20 000
Programming the
EEPROM
224
ATmega8(L)
Figure 106. Programming the Flash Waveforms
Note:
The EEPROM is organized in pages, see
EEPROM, the program data is latched into a page buffer. This allows one page of data to be
programmed simultaneously. The programming algorithm for the EEPROM Data memory is as
follows (refer to
Data loading):
1. A: Load Command “0001 0001”
2. G: Load Address High byte (0x00 - 0xFF)
3. B: Load Address Low byte (0x00 - 0xFF)
4. C: Load Data (0x00 - 0xFF)
5. E: Latch data (give PAGEL a positive pulse)
K: Repeat 3 through 5 until the entire buffer is filled
L: Program EEPROM page
1. Set BS1 to “0”
2. Give WR a negative pulse. This starts programming of the EEPROM page. RDY/BSY
3. Wait until to RDY/BSY goes high before programming the next page (see
goes low
page 225
RESET +12V
RDY/BSY
PAGEL
1. “XX” is don’t care. The letters refer to the programming description above
XTAL1
DATA
XA1
XA0
BS1
BS2
WR
OE
for signal waveforms)
“Programming the Flash” on page 222
0x10
A
ADDR. LOW
B
DATA LOW
C
DATA HIGH
D
E
XX
ADDR. LOW
Table 90 on page
B
(1)
DATA LOW
C
F
DATA HIGH
for details on Command, Address and
D
E
XX
218. When programming the
ADDR. HIGH
G
H
XX
Figure 107 on
2486Z–AVR–02/11