English
Language : 

ATMEGA128RFR2_14 Datasheet, PDF (509/611 Pages) ATMEL Corporation – Microcontroller with Low Power
ATmega256/128/64RFR2
Signal Name in
Programming Mode Pin Name I/O Function
BS2
PE2
I Byte Select 2.
DATA
PB7-0
I/O
Bi-directional Data bus (Output when ¯O¯E¯ is
low).
Table 31-10. BS2 and BS1 Encoding
Flash / EEPROM
Flash Data
BS2 BS1
Address
Loading / Reading
0
0
Low Byte
Low Byte
0
1
High Byte
High Byte
1
0
Extended High
Byte
Reserved
1
1
Reserved
Reserved
Fuse
Programming
Low Byte
High Byte
Extended Byte
Reserved
Reading Fuse
and Lock Bits
Fuse Low Byte
Lock Bits
Extended Fuse
Byte
Fuse High Byte
Table 31-11. Pin Values Used to Enter Programming Mode
Pin
Symbol
PAGEL
Prog_enable[3]
XA1
Prog_enable[2]
XA0
Prog_enable[1]
BS1
Prog_enable[0]
Value
0
0
0
0
Table 31-12. XA1 and XA0 Encoding
XA1
XA0
Action when CLKI is Pulsed
0
0
Load Flash or EEPROM Address (High or low address byte
determined by BS2 and BS1).
0
1
Load Data (High or Low data byte for Flash determined by
BS1).
1
0
Load Command.
1
1
No Action, Idle.
Table 31-13. Command Byte Bit Encoding
Command Byte
Command Executed
1000 0000
Chip Erase
0100 0000
Write Fuse bits
0010 0000
Write Lock bits
0001 0000
Write Flash
0001 0001
Write EEPROM
0000 1000
Read Signature bytes and Calibration byte
0000 0100
Read Fuse and Lock bits
0000 0010
Read Flash
0000 0011
Read EEPROM
8393C-MCU Wireless-09/14
509