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

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.2.2
24
AT89LP51RD2/ED2/ID2 Preliminary
Page Write
Figure 3-16. EEPROM Byte Write of Two Bytes
The LDPG bit in EECON prevents a write to the EEPROM from starting. While LDPG = 1 all
writes will load the temporary page buffer of the EEPROM. The next write to occur with
LDPG = 0 will write that byte and all previously loaded bytes to the EEPROM. The
AT89LP51ED2/ID2 has a EEPROM buffer of 32 bytes. Address locations that are not loaded will
remain untouched, i.e. no erase/write will occur.
The following procedure is used to write multiple bytes (up to 32) to the on-chip EEPROM. See
Figure
may not be loaded more than once. This procedure assumes N bytes will be written, where 2
≤ ≤ N ≤ 32.
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. Set bit LDPG in EECON register
6. Load DPTR (or DPTRB) with the address to write
7. Load the accumulator (ACC) with the data to be written
8. Execute MOVX @DPTR, A (or MOVX @/DPTR, A)
9. Repeat steps 6–8 for the first N-1 bytes
10. Clear bit LDPG in EECON register
11. Load DPTR (or DPTRB) with the address of byte N. The page address is set by the
12. Load the accumulator (ACC) with the data to be written
13. Execute MOVX @DPTR, A (or MOVX @/DPTR, A)
14. Clear bit EEE in EECON register
15. Restore interrupts if disabled in #3
16. The EEBUSY flag is set by hardware to indicate that programming is in progress and
17. The end of programming is indicated by a hardware clear of EEBUSY
and wait for it to go high if necessary.
0000H–0FFFH
address of this byte
that the EEPROM is not available for reading and writing
3-17. All bytes must reside within the same 32-byte page boundary and the same byte
EEBUSY
MOVX
LDPG
EEE
t
WC
t
WC
3714A–MICRO–7/11

Related parts for AT89LP51ED2-20AU