27.5 Page Size
Table 27-9. No. of Words in a Page and No. of Pages in the Flash
No. of
Device
Flash Size
Page Size
PCWORD
Pages
PCPAGE
PCMSB
2K words
(4K bytes)
ATmega48
32 words
PC[4:0]
64
PC[10:5]
10
4K words
(8K bytes)
ATmega88
32 words
64 words
PC[4:0]
PC[5:0]
128
128
PC[11:5]
PC[12:6]
11
12
8K words
(16K bytes)
ATmega168
Table 27-10. No. of Words in a Page and No. of Pages in the EEPROM
EEPROM
Size
Page
Size
No. of
Pages
Device
PCWORD
EEA[1:0]
EEA[1:0]
EEA[1:0]
PCPAGE
EEA[7:2]
EEA[8:2]
EEA[8:2]
EEAMSB
ATmega48
ATmega88
ATmega168
256 bytes
512 bytes
512 bytes
4 bytes
4 bytes
4 bytes
64
7
8
8
128
128
27.6 Parallel Programming Parameters, Pin Mapping, and Commands
This section describes how to parallel program and verify Flash Program memory, EEPROM
Data memory, Memory Lock bits, and Fuse bits in the ATmega48/88/168. Pulses are assumed
to be at least 250 ns unless otherwise noted.
27.6.1
Signal Names
In this section, some pins of the ATmega48/88/168 are referenced by signal names describing
their functionality during parallel programming, see Figure 27-1 and Table 27-11. Pins not
described in the following table are referenced by pin names.
The XA1/XA0 pins determine the action executed when the XTAL1 pin is given a positive pulse.
The bit coding is shown in Table 27-13.
When pulsing WR or OE, the command loaded determines the action executed. The different
Commands are shown in Table 27-14.
290
ATmega48/88/168
2545M–AVR–09/07