ATmega8(L)
Table 89. Pin Name Mapping (Continued)
Signal Name in
Programming Mode
Pin Name
I/O Function
Program memory and EEPROM Data
Page Load
PAGEL
PD7
I
I
Byte Select 2 (“0” selects Low byte, “1”
selects 2’nd High byte)
BS2
PC2
Bi-directional Data bus (Output when OE is
low)
DATA
{PC[1:0]: PB[5:0]} I/O
Table 90. Pin Values used to Enter Programming Mode
Pin
PAGEL
XA1
Symbol
Value
Prog_enable[3]
Prog_enable[2]
Prog_enable[1]
Prog_enable[0]
0
0
0
0
XA0
BS1
Table 91. XA1 and XA0 Coding
XA1 XA0 Action when XTAL1 is Pulsed
Load Flash or EEPROM Address (High or low address byte determined by
BS1)
0
0
0
1
1
1
0
1
Load Data (High or Low data byte for Flash determined by BS1)
Load Command
No Action, Idle
Table 92. Command Byte Bit Coding
Command Byte
1000 0000
0100 0000
0010 0000
0001 0000
0001 0001
0000 1000
0000 0100
0000 0010
0000 0011
Command Executed
Chip Erase
Write Fuse Bits
Write Lock Bits
Write Flash
Write EEPROM
Read Signature Bytes and Calibration byte
Read Fuse and Lock Bits
Read Flash
Read EEPROM
223
2486M–AVR–12/03