A/T89C51AC2
Figure 26. Hardware Boot Process Algorithm
RESET
Hardware
condition?
bit ENBOOT in AUXR1 register
is initialized with BLJB inverted.
(Example, if BLJB=0, ENBOOT is set (=1) during reset,
thus the bootloader is executed after the reset)
ENBOOT = 1
PC = F800h
FCON = 00h
Yes
ENBOOT = 0
PC = 0000h
No
No
FCON = F0h
BLJB = = 0
?
Yes
ENBOOT = 1
PC = F800h
Application
in FM0
Boot Loader
in FM1
Application
Programming Interface
XROW Bytes
Several Application Program Interface (API) calls are available for use by an application
program to permit selective erasing and programming of Flash pages. All calls are made
by functions.
All of these APIs are described in detail in the following documents on the Atmel web
site.
• Datasheet Bootloader UART A/T89C51AC2
Table 32. XROW Mapping
Description
Copy of the Manufacturer Code
Copy of the Device ID#1: Family code
Copy of the Device ID#2: Memories size and type
Copy of the Device ID#3: Name and Revision
Default Value
58h
D7h
F7h
FFh
Address
30h
31h
60h
61h
49
4127H–8051–02/08