AT89LP51ED2-20AU Atmel, AT89LP51ED2-20AU Datasheet - Page 23

no-image

AT89LP51ED2-20AU

Manufacturer Part Number
AT89LP51ED2-20AU
Description
8-bit Microcontrollers - MCU 64KB 20MHz 2.4V-5.5V
Manufacturer
Atmel
Datasheet

Specifications of AT89LP51ED2-20AU

Rohs
yes
Core
8051
Processor Series
AT89x
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Program Memory Size
64 KB
Data Ram Size
256 B
On-chip Adc
Yes
Operating Supply Voltage
2.4 V to 5.5 V
Operating Temperature Range
- 40 C to + 85 C
Package / Case
TQFP-44
Mounting Style
SMD/SMT
Data Rom Size
4 KB
Interface Type
2-Wire, SPI, UART
Number Of Programmable I/os
36
Number Of Timers
3
Program Memory Type
Flash
Factory Pack Quantity
160

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ED2-20AU
Manufacturer:
Atmel
Quantity:
10 000
3.5.1
3.5.2
3.5.2.1
3714A–MICRO–7/11
Read Protocol
Write Protocol
Byte Write
The following procedure is used to read data stored in the on-chip EEPROM.
The EEPROM address space accesses an internal nonvolatile data memory. Writes to
EEPROM require a more complex protocol and take several milliseconds to complete. The
AT89LP51RD2/ED2/ID2 uses an execute-while-write architecture where the CPU continues to
operate while the EEPROM write occurs. The software must poll the state of the EEBUSY flag to
determine when the write completes. EEPROM data can be written one byte or one page at a
time.
An EEPROM write includes both an erase and write of the affected byte location. A write
sequence will not occur if the Brown-out Detector was active within the last 2 ms. If a write cur-
rently in progress is interrupted by the BOD due to a low voltage condition, the ERR flag
(EECON.2) will be set by hardware.
The following procedure is used to write a single byte to the on-chip EEPROM. See
1. Check EEBUSY flag (EECON.0) and wait for it to go low if necessary
2. Disable interrupts if any interrupt routine accesses external data memory in the range
3. Set bit EEE in EECON register
4. Load DPTR (or DPTRB) with the address to read
5. Execute MOVX A, @DPTR (or MOVX A, @/DPTR)
6. Repeat steps 4–5 for other locations if needed
7. Clear bit EEE in EECON register
8. Restore interrupts if disabled in #2
1. If the write will occur within 2 ms of a reset or power-up event, check the INHIBIT flag
2. Check the EEBUSY flag (EECON.0) and wait for it to go low if necessary
3. Disable interrupts if any interrupt routine accesses external data memory in the range
4. Set bit EEE in EECON register
5. Load DPTR (or DPTRB) with the address to write
6. Load the accumulator (ACC) with the data to be written
7. Execute MOVX @DPTR, A (or MOVX @/DPTR, A)
8. Clear bit EEE in EECON register
9. Restore interrupts if disabled in #3
10. The EEBUSY flag is set by hardware to indicate that programming is in progress and
11. The end of programming is indicated by a hardware clear of EEBUSY
0000H–0FFFH
and wait for it to go high if necessary.
0000H–0FFFH
that the EEPROM is not available for reading and writing
AT89LP51RD2/ED2/ID2 Preliminary
Figure
3-16.
23

Related parts for AT89LP51ED2-20AU