ATmega48PA/88PA/168PA/328P
this byte is automatically written into the OSCCAL Register to ensure correct frequency of the
calibrated RC Oscillator.
27.5 Page Size
Table 27-11. 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)
ATmega48PA
32 words
PC[4:0]
64
PC[10:5]
10
4K words
(8K bytes)
ATmega88PA
ATmega168PA
ATmega328P
32 words
64 words
64 words
PC[4:0]
PC[5:0]
PC[5:0]
128
128
256
PC[11:5]
PC[12:6]
PC[13:6]
11
12
13
8K words
(16K bytes)
16K words
(32K bytes)
Table 27-12. 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]
EEA[1:0]
PCPAGE
EEA[7:2]
EEA[8:2]
EEA[8:2]
EEA[9:2]
EEAMSB
ATmega48PA
ATmega88PA
ATmega168PA
ATmega328P
256 bytes
512 bytes
512 bytes
1K bytes
4 bytes
4 bytes
4 bytes
4 bytes
64
7
8
8
9
128
128
256
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 ATmega48PA/88PA/168PA/328P. Pulses
are assumed to be at least 250 ns unless otherwise noted.
27.6.1
Signal Names
In this section, some pins of the ATmega48PA/88PA/168PA/328P are referenced by signal
names describing their functionality during parallel programming, see Figure 27-1 and Table 27-
13. 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-15.
When pulsing WR or OE, the command loaded determines the action executed. The different
Commands are shown in Table 27-16.
299
8161D–AVR–10/09