Functional Description
Figure 37. Bootloader Functional Description
Exernal Host with
Specific Protocol
Communication
User
Application
User Call
Management (API )
ISP Communication
Management
Flash Memory
Management
Flash
Memory
On the above diagram, the on-chip bootloader processes are:
ISP Communication Management
•
The purpose of this process is to manage the communication and its protocol between
the on-chip bootloader and a external device. The on-chip ROM implement a serial pro-
tocol (see section Bootloader Protocol). This process translate serial communication
frame (UART) into Flash memory acess (read, write, erase ...).
•
User Call Management
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
through a common interface (API calls), included in the ROM bootloader. The program-
ming functions are selected by setting up the microcontroller’s registers before making a
call to a common entry point (0xFFF0). Results are returned in the registers. The pur-
pose on this process is to translate the registers values into internal Flash Memory
Management.
•
Flash Memory Management
This process manages low level access to Flash memory (performs read and write
access).
92
AT89C51RB2/RC2
4180E–8051–10/06