AT89LP51RC2 Atmel Corporation, AT89LP51RC2 Datasheet - Page 190
AT89LP51RC2
Manufacturer Part Number
AT89LP51RC2
Description
Manufacturer
Atmel Corporation
Specifications of AT89LP51RC2
Flash (kbytes)
32 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)
1.375
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
- Current page: 190 of 254
- Download datasheet (8Mb)
Table 24-6.
24.4
24.4.1
190
Mode
1
2
3
4
In-Application Programming (IAP)
Program Lock Bits (by address)
AT89LP51RB2/RC2/IC2 Preliminary
API Call Description
Security Protection Modes
00h
FFh
00h
00h
00h
The AT89LP51RB2/RC2/IC2 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 AT89LP51RB2/RC2/IC2
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.
192.
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
3722A–MICRO–10/11
Related parts for AT89LP51RC2
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
8-Bit Microcontroller with 4K Bytes Flash
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet: