AT89LP51ID2 Atmel Corporation, AT89LP51ID2 Datasheet - Page 192

no-image

AT89LP51ID2

Manufacturer Part Number
AT89LP51ID2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89LP51ID2

Flash (kbytes)
64 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
42
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
7
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
2.25
Eeprom (bytes)
4096
Self Program Memory
API
Operating Voltage (vcc)
2.4 to 5.5
Timers
4
Isp
SPI/OCD/UART
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ID2-20AAU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ID2-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ID2-20JU
Manufacturer:
Atmel
Quantity:
10 000
Table 24-6.
24.4
24.4.1
192
Mode
1
2
3
4
In-Application Programming (IAP)
Program Lock Bits (by address)
AT89LP51RD2/ED2/ID2 Preliminary
API Call Description
Security Protection Modes
00h
FFh
00h
00h
00h
The AT89LP51RD2/ED2/ID2 supports In-Application Programming (IAP), allowing the program
memory to be modified during execution. IAP can be used to modify the user application on the
fly or to use program memory for nonvolatile data storage. The AT89LP51RD2/ED2/ID2
includes a Flash Application Programming Interface (API) as part of the bootloader ROM code.
The Flash API is the preferred way to program the Flash memory from the application code.
Advanced users looking to write their own low-level routines should refer to
page
The In-Application Programming (IAP) feature allows reprogramming a microcontroller on-chip
Flash memory without removing it from the system and while the embedded application is run-
ning. The user application can call Flash Application Programming Interface (API) routines
allowing IAP. These Flash API are also executed by the bootloader.
To call the corresponding API, the user may use a set of routines which can be linked with the
application. Example of Flash_api routines are available on the Atmel web site on the software
application note:
C Flash Drivers for the AT89C51RD2/ED2
The API calls description and arguments are shown in
The application selects an API by setting R1, ACC, DPTR0 and DPTR1 registers. All calls are
made through a common interface “USER_CALL” at the address FFF0h. The jump to the
USER_CALL must be done by an LCALL instruction in order to be able to return to the applica-
tion. Before jumping to USER_CALL, the bit ENBOOT in AUXR1 register must be set to map the
ROM code into the address space.
Flash API calls have the following constraints:
• The interrupts are not disabled by the bootloader. Interrupts must be disabled by the user
• The user must feed the hardware watchdog before launching a Flash operation.
• The API call requires a minimum of two free stack bytes
01h
FFh
FFh
00h
00h
prior to calling USER_CALL, then re-enabled when returning.
194.
02h
FFh
FFh
FFh
00h
Protection Mode
No program lock features
Further programming of the Flash is disabled
Further programming of the Flash is disabled and verify (read) is also disabled
Further programming of the Flash is disabled and verify (read) is also disabled;
External execution above 32K when BMS = 1 is disabled
Table
24-7.
Section 24.4.2 on
3714A–MICRO–7/11

Related parts for AT89LP51ID2