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

no-image

AT89C51SND1_06

Manufacturer Part Number
AT89C51SND1_06
Description
USB Microcontrollers
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Program
Configuration
Information
Erasing the Flash
Starting the
Bootloader
4254C–MP3–03/06
Notes:
The AT89C51SND1 Flash memory is divided into four blocks:
Block 0: from address 0000h to 1FFFh (64 pages)
Block 1: from address 2000h to 3FFFh (64 pages)
Block 2: from address 4000h to 7FFFh (128 pages)
Block 3: from address 8000h to FFFFh (256 pages)
Notes:
This routine allows to start at the beginning of the bootloader as after a reset. After calling this
routine the regular boot process is performed and the communication must be opened before
any action.
API Name
__api_clr_BLJB
__api_set_BLJB
__api_clr_X2
__api_set_X2
__api_wr_BSB
__api_wr_SBV
__api_wr_SSB
__api_wr_EB
API Name
__api_erase_block0
__api_erase_block1
__api_erase_block2
__api_erase_block3
Parameter settings
Instruction: LCALL FFC0h.
Parameter settings
Instruction: LCALL FFC0h.
No special parameter setting
Set bit ENBOOT in AUXR1 register
instruction: LJUMP or LCALL at address F000h
1. Unprogram BLJB so disable bootloader exection at reset.
2. Program BLJB so enable bootloader exection at reset.
3. Unprogram X2B so disable X2 mode at reset.
4. Program X2B so enable X2 mode at reset.
5. Refer to the AT89C51SND1 datasheet for information on Write operation Timing.
6. No special resources are used by the bootloader during these operations.
1. Refer to the AT89C51SND1 datasheet for information on Write operation Timing, then multiply
2. No special resources are used by the bootloader during these operations.
(3)
this timing by the number of pages.
(4)
(1)
(2)
api_command
api_command
07h
07h
07h
07h
04h
04h
04h
04h
00h
00h
00h
00h
api_dph
api_dph
00h
20h
40h
80h
AT89C51SND1
api_dpl
api_dpl
00h
01h
05h
06h
(HSB & BFh) |
(HSB & 7Fh) |
value to write
value to write
value to write
value to write
HSB & BFh
HSB & 7Fh
api_value
api_value
40h
80h
29

Related parts for AT89C51SND1_06