AT89C51RC
22. Programming Interface
Every code byte in the Flash array can be programmed by using the appropriate combination of
control signals. The write operation cycle is self-timed and once initiated, will automatically time
itself to completion.
Most major worldwide programming vendors offer support for the Atmel AT89 microcontroller
series. Please contact your local programming vendor for the appropriate software revision.
Table 22-1. Flash Programming Modes
ALE/
Mode
VCC RST PSEN PROG
(1)
Write Code Data
5V
H
L
Read Code Data
5V
H
L
H
(2)
Write Lock Bit 1
6.5V
H
L
EA/
VPP
12 V
H/12
V
P2.6
P2.7
P3.3
P3.6
P3.7
P0.7-0
Data
P3.4
L
H
H
H
H
DIN
A14
L
L
L
H
H
DOUT
A14
12 V
H
H
H
H
H
X
X
P2.5-0 P1.7-0
Address
A13-8
A7-0
A13-8
A7-0
X
X
(2)
Write Lock Bit 2
6.5V
H
L
12 V
H
H
H
L
L
X
X
X
X
(2)
Write Lock Bit 3
6.5V
H
L
12 V
H
L
H
H
L
X
X
X
X
Read Lock Bits
P0.2,
5V
H
L
H
H
H
H
L
H
L
P0.3,
X
X
X
1, 2, 3
P0.4
(3)
Chip Erase
6.5V
H
L
12V
H
L
H
L
L
X
X
X
X
Read Atmel ID
5V
H
L
H
H
L
L
L
L
L
1EH
X
XX 0000 00H
Read Device ID
5V
H
L
H
H
L
L
L
L
L
51H
X
XX 0001 00H
Read Device ID
5V
H
L
H
H
L
L
L
L
L
07H
X
XX 0010 00H
Notes:
1. Write Code Data requires a 200 ns PROG pulse.
2. Write Lock Bits requires a 100 µs PROG pulse.
3. Chip Erase requires a 200 ns - 500 ns PROG pulse.
4. RDY/BSY signal is output on P3.0 during programming.
23
1920C–MICRO–03/05