C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 268

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Table 10-5
Bootstrap Loader Subroutines - Survey (cont’d)
Address Function
00C7 H
00E9 H
00F0 H
0119 H
0161 H
Semiconductor Group
GetBlock
CalcChks
CalcChksFLASH In : DPTR - start address
CheckFLASH
Block2XRAM
Registers
In : R7 - block length
Out : None
In : R0 - start address of
Out : A - calculated
Out : R0 - calculated
In : R2/R3 - start address
Out : C - carry flag
In : R0 - start address of
Out : DPTR - actual
the temporary buffer
with length R1
checksum
of the area in the
FLASH memory
R4/R5 - length of the
FLASH memory area
checksum #1
R1 - calculated
checksum #2
of corresponding
FLASH memory
block
the temporary buffer
R1 - length of the
buffer
DPTR - actual
address in the XRAM
address in the XRAM
10-30
Description
Get an amount (in R7) of data bytes
from the host and save it to a
temporary buffer starting at address
70 H and ending at address FF H . The
last received byte contains the
checksum of the data block. Examine
the sent checksum and send back a
checksum error code, if it is incorrect.
Calculate the checksum of the data
block starting at address in R0 with a
length of R1. The checksum is saved in
A.
Calculate the special checksum of an
area in the FLASH memory starting at
address in DPTR with a length of R4/
R5 (high, low). The checksums #1 and
#2 are saved in R0 and R1.
Check if the FLASH memory block
starting at address R2/R3 contains a
functional custom program.
1. Check the ID bytes of the FLASH
memory block
2. Calculate the checksum of the given
memory block
3. Set the carry flag if no custom
program exists
Copy the contents of the temporary
buffer starting at address in R0 with a
length of R1 to the actual address
(DPTR) in the XRAM. The data pointer
DPTR is incremented automatically.
Bootstrap Loader
1997-10-01
C509-L

Related parts for C509-L_97