English
Language : 

C509-L_97 Datasheet, PDF (269/290 Pages) Siemens Semiconductor Group – 8-Bit CMOS Microcontroller
Bootstrap Loader
C509-L
Table 10-5
Bootstrap Loader Subroutines - Survey (cont’d)
Address Function
0168H CheckHeader
018AH SendCheckErr
018FH Mode0
01B1H Mode1
01BBH Mode2
01D6H Mode3
Registers
Description
In : R0 - start address of
the temporary buffer
Out : R1 - operating mode
R2/R3, DPTR -
header data
startaddress
R4/R5 - header data
datalength
R7 - header data
blocklength
C - Carry flag
Analyze the received header and save
the header data into the corresponding
registers. If the checked block is not of
type HEADER, a block error code
(FFH) is sent to the host and the carry
flag C is set.
In : None
Out : None
Send a checksum error code to the
serial interface 0
In : DPTR - start address
of XRAM to copy a
custom program
R7 - length of the data
blocks received via
serial interface 0
Out : DPTR - actual
address in the XRAM
Activate operating mode 0. The header
data must be received or the registers
DPTR and R7 must be set manually,
before this routine can work correctly.
In : DPTR - address to Activate operating mode 1, that is to
start a custom
start custom program in the XRAM at
program in the XRAM address in DPTR. Attention: This
Out : None
routine does not return, when finished.
In : DPTR - start address
of the area in the
FLASH memory
R4/R5 - length of the
FLASH memory area
Out : None
Activate operating mode 2, that is to
calculate a special checksum of a
FLASH memory area given by the start
address in DPTR and the area length
in R4/R5.
In : DPTR - address to
start a custom
program in the
FLASH memory
Out : None
Activate operating mode 3, that is to
start a custom program in the FLASH
memory at address in DPTR.
Attention: This routine does not return,
when finished.
Semiconductor Group
10-31
1997-10-01