Datasheet
47
4337K–USB–04/08
AT89C5130A/31A-M
Figure 11-2. Hardware Boot Process Algorithm
11.3 Application-Programming-Interface
Several Application Program Interface (API) calls are available for use by an application pro-
gram to permit selective erasing and programming of Flash pages. All calls are made by
functions.
All these APIs are described in detail in the following document on the Atmel web site.
– Datasheet Bootloader USB AT89C5131.
11.4 XROW Bytes
The EXTRA ROW (XROW) includes 128 bytes. Some of these bytes are used for specific pur-
pose in conjonction with the bootloader.
Table 11-1. XROW Mapping
RESET
BLJB == 0
?
Hardware
Software
Bootloader
in FM1
Application
in FM0
bit ENBOOT in AUXR1 Register
Is Initialized with BLJB Inverted.
ENBOOT = 0
PC = 0000h
ENBOOT = 1
PC = F400h
Example, if BLJB=0, ENBOOT
is set (=1) during reset, thus the
bootloader is executed after the
reset.
Description Default Value Address
Copy of the Manufacturer Code 58h 30h
Copy of the Device ID#1: Family code D7h 31h
Copy of the Device ID#2: Memories size and type BBh 60h