Toshiba TLCS-900/H1 Series Manual page 35

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

d) Notes on Intel Hex format (Binary)
1.
After receiving the checksum of a record, the device waits for the start
mark (3AH for " : ") of the next record. Therefore, the device ignores all
data received between records during that time unless the data is 3AH.
2.
Make sure that once the PC program has finished sending the checksum
of the end record, it does not send anything and waits for 2 bytes of data to
be received (upper and lower bytes of SUM). This is because after
receiving the checksum of the end record, the boot program calculates the
SUM and returns the calculated SUM in 2 bytes to the PC.
3.
Writing to areas outside the device's internal RAM causes incorrect
operation. Therefore, when an extended record is transmitted, be sure to
set a paragraph address to 0000H.
4.
Always make sure the first record type is an extended record, because the
initial value of the address pointer is 00H.
5.
The user program is assigned to the address from 3000H to 57FFH and it
should be within 10 Kbytes.
6.
Transmit a user program not by the ASCII code but by binary. An
example explaining how to make binary format file is given below.
Example: How to convert from Intel Hex format file to binary format file.
The following is an example of display in text editor where an Intel Hex format file is opened.
: 103000000607F100030000F201030000B1F16010B7
: 00000001FF
In fact, their data are as below because ASCII code is used for Intel Hex format files.
3A3130333030303030303630374631303030333030303046323031303330303030
423146313630313042370D0A3A303030303030303146460D0A
So, first convert the above data to binary format using the table below.
Before (ASCII)
3A
30 to 39
41 or 61
42 or 62
43 or 63
44 or 64
45 or 65
46 or 66
0D0A
The Intel Hex format and its meaning are given below.
Data record
End record
After (Binary)
3A (Only 3A should not be converted.)
0 to 9
A
B
C
D
E
F
Delete it
3A 10 3000 00 0607F100030000F201030000B1F16010 B7
Data
Record type
Address
Data number
: (Start mark)
3A 00 0000 01 FF
Data
Record type
Address
Data number
: (Start mark)
92CH21-452
TMP92CH21
Checksum
2006-09-15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92ch21fg

Table of Contents