ATmega32(L)
Table 107. No. of Words in a Page and no. of Pages in the EEPROM
EEPROM Size
Page Size
PCWORD
No. of Pages
PCPAGE
EEAMSB
1024 bytes
4 bytes
EEA[1:0]
256
EEA[9:2]
9
Parallel Programming
Parameters, Pin
Mapping, and
This section describes how to parallel program and verify Flash Program memory,
EEPROM Data memory, Memory Lock bits, and Fuse bits in the ATmega32. Pulses are
assumed to be at least 250 ns unless otherwise noted.
Commands
Signal Names
In this section, some pins of the ATmega32 are referenced by signal names describing
their functionality during parallel programming, see Figure 127 and Table 108. 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 posi-
tive pulse. The bit coding is shown in Table 110.
When pulsing WR or OE, the command loaded determines the action executed. The dif-
ferent Commands are shown in Table 111.
Figure 127. Parallel Programming
+5V
RDY/BSY
OE
PD1
PD2
PD3
PD4
PD5
PD6
PD7
VCC
+5V
WR
AVCC
BS1
PB7 - PB0
DATA
XA0
XA1
PAGEL
+12 V
BS2
RESET
PA0
XTAL1
GND
Table 108. Pin Name Mapping
Signal Name in
Pin
Programming Mode
Name
I/O
Function
0: Device is busy programming, 1: Device is ready
for new command
RDY/BSY
PD1
O
OE
PD2
PD3
I
I
Output Enable (Active low)
Write Pulse (Active low)
WR
Byte Select 1 (“0” selects low byte, “1” selects high
byte)
BS1
PD4
I
XA0
XA1
PD5
PD6
I
I
XTAL Action Bit 0
XTAL Action Bit 1
259
2503J–AVR–10/06