Datasheet
253
7734Q–AVR–02/12
AT90PWM81/161
XA1/BS2 PD6 I
XTAL Action Bit 1
Byte Select 2
(“0” selects Low byte, “1” selects 2’nd High byte)
PAGEL/BS1 PE2 I
Program memory and EEPROM Data Page Load
Byte Select 1 (“0” selects Low byte, “1” selects High byte)
DATA PB[7:0] I/O Bi-directional Data bus (Output when OE
is low)
Table 21-9. Pin Values Used to Enter Programming Mode.
Pin Symbol Value
XA1/BS2 Prog_enable[3] 0
XA0 Prog_enable[2] 0
OE
Prog_enable[1] 0
WR
Prog_enable[0] 0
Table 21-10. XA1 and XA0 coding.
XA1 XA0 Action when XTAL1 is pulsed
0 0 Load flash or EEPROM address (high or low address byte determined by 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 21-11. Command byte bit coding.
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
Table 21-8. Pin name mapping. (Continued)
Signal name in
programming mode Pin name I/O Function