AT89C51SND1_06 ATMEL [ATMEL Corporation], AT89C51SND1_06 Datasheet - Page 26

no-image

AT89C51SND1_06

Manufacturer Part Number
AT89C51SND1_06
Description
USB Microcontrollers
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
In-Application
Programming/S
elf-
Programming
API Call
Process
Constraints
26
AT89C51SND1
The IAP allows to reprogram the microcontroller on-chip Flash memory without removing it from
the system and while the embedded application is running.
The user application can call 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:
C Flash Drivers for the AT89C51SND1
The Flash_api routines on the package work only with the USB bootloader.
The Flash_api routines are listed in APPENDIX-B.
The application selects an API by setting the 4 variables available when the Flash_api library is
linked to the application.
These four variables are located in RAM at fixed address:
All calls are made through a common interface “USER_CALL” at the address FFC0h.
The jump at the USER_CALL must be done by LCALL instruction to be able to comeback in 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.
The user must take care of hardware watchdog before launching a Flash operation.
For more information regarding the Flash writing time see the AT89C51SND1 datasheet.
api_command: 1Ch
api_value: 1Dh
api_dph: 1Eh
api_dpl: 1Fh
4254C–MP3–03/06

Related parts for AT89C51SND1_06