English
Language : 

DS80C400_07 Datasheet, PDF (75/97 Pages) Maxim Integrated Products – Network Microcontroller
DS80C400 Network Microcontroller
Figure 17. User Code Signature (Required by Find-User Code)
SIGNATURE BYTES
80h,xxh 54h,49h,4Eh,49h Segment Address(1)
USER CODE
SJMP xx
‘TINI’
Once a valid signature is found, the signature byte at offset 6, referred to in Figure 17 as the segment address, is
examined to determine whether execution control should be transferred immediately or whether the search should
continue. If the segment address byte equals 00h or matches the most significant address byte for the 64kB block
being examined, execution is transferred to the user code. If the segment address byte does not match, that
segment address byte is used to determine the next memory block examined for a valid signature.
Exported ROM Functions
The DS80C400 ROM firmware implements many functions that are made accessible to the user application code.
For user application code to call a specific function, the location of that function must be known. The absolute
address location of each DS80C400 ROM function must be read from an export table (also found in the ROM). To
allow flexibility for future ROM firmware structural changes and improvements, the export table itself is not
connected to a specific address range, but instead a 3-Byte pointer to the start of the export table is fixed at
addresses FF0002h (XSB), FF0003h (MSB), and FF0004h (LSB). The first three bytes of the export table contain
the quantity of function entries in the export table. In 3-Byte increments, following the first three bytes, the rest of
the table contains absolute address locations for the exported ROM functions. Thus, once the export table location
has been discovered, the index for a given function/structure (Table 18) can be used to find its absolute address
(Function address = ExportTable[Index x 3]). Figure 18 illustrates the method for locating the export table and a
specific ROM function. Table 18 shows the contents of the ROM export table. Brief descriptions of the functionality
provided by the TCP/IP stack, socket layer, and task manager are included after the table, while the full details for
these and other exported ROM functions are covered in the High-Speed Microcontroller User’s Guide: Network
Microcontroller Supplement.
Figure 18. Finding the Location of an Exported ROM Function
TINI400 ROM
(LOGICALLY LOCATED FF0000h–
FFFFFFh WHEN MROM = 1)
FF0000h
Export Table
Address
FFxxxxh
FFxxxxh +03h
FFxxxxh +06h
FFxxxxh +09h
FFxxxxh +(n x 3)h
ROM FUNCTION EXPORT TABLE
Number of Functions Exported (n)
Function [index=1] Address
Function [2] Address
Function [3] Address
.
.
.
Function [n] Address
2
FFxxxxh
ROM Exported Function [3]
1
ROM Export Table
FFFFFFh
75 of 97