AT89C5115 Atmel Corporation, AT89C5115 Datasheet - Page 21

no-image

AT89C5115

Manufacturer Part Number
AT89C5115
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89C5115

Flash (kbytes)
16 Kbytes
Max. Operating Frequency
40 MHz
Cpu
8051-12C
Max I/o Pins
20
Uart
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
62.5
Sram (kbytes)
0.5
Eeprom (bytes)
2048
Self Program Memory
API
Operating Voltage (vcc)
3.0 to 5.5
Timers
4
Isp
UART
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89C5115-RATUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C5115-SISUM
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89C5115-UM
Manufacturer:
SANYO
Quantity:
84
In-Application
Programming/S
elf-
programming
API Call
Process
Constraints
API Commands
Read/Program Flash
and EEPROM Data
Memory
4225C–8051–03/08
The IAP allows to reprogram the microcontroller’s on-chip Flash memory without removing it
from the system and while the embedded application is running.
The user application can call some Application Programming Interface (API) routines allowing
IAP. These API are executed by the bootloader.
To call the corresponding API, the user must use a set of Flash_api 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 T89C5115
The Flash_api routines on the package work only with the UART bootloader.
The Flash_api routines are listed in APPENDIX-2.
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 at the USER_CALL must be done by LCALL instruction to be able to comeback into
the application.
Before jump at the USER_CALL, the bit ENBOOT in AUXR1 register must be set.
The interrupts are not disabled by the bootloader.
Interrupts must be disabled by user prior to jump to the USER_CALL, then re-enabled when
returning.
Interrupts must also be disabled before accessing EEPROM Data then re-enabled after.
The user must take care of hardware watchdog before launching a Flash operation.
For more information regarding the Flash writing time see the T89C5115 datasheet.
Several types of APIs are available:
All routines to access EEPROM Data are managed directly from the application without using
bootloader resources.
To read the Flash memory the bootloader is not involved.
For more details on these routines see the T89C5115 datasheet sections ’Program/Code Mem-
ory’ and ’EEPROM Data Memory’.
Two routines are available to program the Flash:
Read/Program Flash and EEPROM Data memory
Read Configuration and Manufacturer Information
Program Configuration Information
Erase Flash
Start Bootloader
__api_wr_code_byte
__api_wr_code_page
T89C5115 UART Bootloader
21

Related parts for AT89C5115