AT89C4051 Atmel Corporation, AT89C4051 Datasheet - Page 9
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
AT89C4051
Manufacturer Part Number
AT89C4051
Description
Manufacturer
Atmel Corporation
Datasheet
1.AT89C4051.pdf
(19 pages)
Specifications of AT89C4051
Flash (kbytes)
4 Kbytes
Max. Operating Frequency
24 MHz
Cpu
8051-12C
Max I/o Pins
15
Uart
1
Sram (kbytes)
0.125
Operating Voltage (vcc)
2.7 to 6.0
Timers
2
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89C4051-12PI
Manufacturer:
ATMEL
Quantity:
1 588
Company:
Part Number:
AT89C4051-12PU
Manufacturer:
SyncMOS
Quantity:
5 000
Part Number:
AT89C4051-12PU
Manufacturer:
AT
Quantity:
20 000
Part Number:
AT89C4051-12SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
AT89C4051-12SI
Manufacturer:
ES
Quantity:
21 000
Company:
Part Number:
AT89C4051-12SU
Manufacturer:
ATMEL
Quantity:
5 000
Part Number:
AT89C4051-12SU
Manufacturer:
AT
Quantity:
20 000
Company:
Part Number:
AT89C4051-24PC
Manufacturer:
ATM
Quantity:
2 060
Part Number:
AT89C4051-24PC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89C4051-24PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
13. Programming Interface
13.1
Notes:
1001F–MICRO–6/08
Mode
Write Code Data
Read Code Data
Write Lock
Chip Erase
Read Signature Byte
Flash Programming Modes
1. The internal PEROM address counter is reset to 000H on the rising edge of RST and is advanced by a positive pulse at
2. Chip Erase requires a 10-ms PROG pulse.
3. P3.1 is pulled Low during programming to indicate RDY/BSY.
XTAL1 pin.
(1)(3)
(1)
Program Verify: If lock bits LB1 and LB2 have not been programmed code data can be read
back via the data lines for verification:
The lock bits cannot be verified directly. Verification of the lock bits is achieved by observing that
their features are enabled.
Chip Erase: The entire PEROM array (4K bytes) and the two Lock Bits are erased electrically
by using the proper combination of control signals and by holding P3.2 low for 10 ms. The code
array is written with all “1”s in the Chip Erase operation and must be executed before any non-
blank memory byte can be re-programmed.
Reading the Signature Bytes: The signature bytes are read by the same procedure as a nor-
mal verification of locations 000H, 001H, and 002H, except that P3.5 and P3.7 must be pulled to
a logic low. The values returned are as follows.
Every code byte in the Flash array can be written and the entire array can be erased 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.
1. Reset the internal address counter to 000H by bringing RST from “L” to “H”.
2. Apply the appropriate control signals for Read Code data and read the output data at
3. Pulse pin XTAL1 once to advance the internal address counter.
4. Read the next code data byte at the port P1 pins.
5. Repeat steps 3 and 4 until the entire array is read.
(000H) = 1EH indicates manufactured by Atmel
(001H) = 41H indicates AT89C4051
the port P1 pins.
Bit - 1
Bit - 2
RST/V
12V
12V
12V
12V
H
H
PP
P3.2/PROG
H
H
(2)
P3.3
H
H
H
L
L
L
P3.4
H
H
H
L
L
L
AT89C4051
P3.5
H
H
H
L
L
L
P3.7
H
H
H
L
L
L
9