beautypg.com

3 application- programming-interface – Rainbow Electronics T89C51AC2 User Manual

Page 42

background image

42

T89C51AC2

Rev. B – 19-Dec-01

Figure 17. Hardware Boot Process Algorithm

10.3 Application-
Programming-Interface

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 these APIs are describe in an documentation: "In-System Programing: Flash Library
for T89C51CC01".

This is available on the web site.

RESET

Hardware

condition?

BLJB == 0

?

bit ENBOOT in AUXR1 register
is initialized with BLJB.

H

a

rdw

a

re

So

ft

w

a

re

ENBOOT = 1
PC = F800h

ENBOOT = 1
PC = F800h

FCON = 00h

FCON = F0h

Boot Loader

in FM1

ENBOOT = 0
PC = 0000h

Yes

Yes

No

No

Application

in FM0