Toshiba H1 Series Network Card User Manual


 
TMP92CZ26A
92CZ26A-55
d) Notes on Intel Hex format (binary)
1. After receiving the checksum of a record, the boot program waits for the start
mark (3AH for “:”) of the next record. If data other than 3AH is received
between records, it is ignored.
2. Once the PC program has finished sending the checksum of an end record, it
must wait for 2 bytes of data (upper and lower bytes of SUM) before sending
any other data. This is because after receiving the checksum of an end record,
the boot program calculates SUM and returns the result to the PC in 2 bytes.
3. Writing to areas other than internal RAM may cause incorrect operation. To
transfer a record, set the paragraph address to 0000H.
4. Since the address pointer is initially set to 00H, the record type to be
transferred first does not have to be an address record.
5. Addresses 3000H to 49800H are allocated as the user program download
area.
6. A user program in Intel Hex format (ASCII codes) must be converted into
binary data in advance, as explained in the example below.
Example: How to convert an Intel Hex file into binary format
The following shows how an Intel Hex format file is displayed on a text editor.
: 103000000607F100030000F201030000B1F16010B7
: 00000001FF
However, the actual data consists of ASCII codes, as shown below.
3A3130333030303030303630374631303030333030303046323031303330303030
423146313630313042370D0A3A303030303030303146460D0A
Thus, the ASCII codes must be converted into binary data based on the conversion rules
shown in the table below.
ASCII Code Binary Data
3A 3A (Only 3A remains the same.)
30 to 39 0 to 9
41 or 61 A
42 or 62 B
43 or 63 C
44 or 64 D
45 or 65 E
46 or 66 F
0D0A Delete
Intel Hex format
Data record 3A
10 3000 00 0607F100030000F201030000B1F16010 B7
Data
Checksum
Record type
Address
Record length
End record : (Start mark)
3A
00 0000 01 FF
Data
Record type
Address
Record length
: (Start mark)