|
PAULMON2 exchanges data with a PC computer using Intel-Hex format. Ordinarily it is not necessary to know much about Intel-Hex, but in cases where the downloaded data is not written to memory, but the memory appears to work properly with the memory editor, it can be helpful to take a look at the data in Intel-Hex format.
Intel-Hex is an ASCII only format which also includes address and checksum information for each line. Here are three lines of data in Intel-Hex format:
:10202E00216E016A0162215D217F218C017F01C336
:10203E0001260116022940022AAD0172022A9A02D5
:10204E0029D00229D6022A1402287D02284302270B
^ ^ ^ ^ ^
| | | | |
| | | | checksum----------------+
| | | +-------data bytes
| | +---------record type (00=data, 01=end of file)
| +-------------address for this line of data
+---------------number of bytes of data in this line
HEX-RECORD EXAMPLE
Following is a typical Hex-record module consisting of four data records and a termination record.
:10010000214601360121470136007EFE09D2190140
:100110002146017EB7C20001FF5F16002148011988
:10012000194E79234623965778239EDA3F01B2CAA7
:100130003F0156702B5E712B722B732146013421C7
:00000001FF
The first data record is explained as follows:
: Start code.
10 Hex 10 (decimal 16), indicating 16 data character
pairs, 16 bytes of binary data, in this record.
01 Four-character 2-byte address field: hex address 0100,
00 indicates location where the following data is to be loaded.
00 Record type indicating a data record.
The next 16 character pairs are the ASCII bytes of the actual program data.
40 Checksum of the first Hex-record.
The termination record is explained as follows:
: Start code.
00 Byte count is zero, no data in termination record.
00 Four-character 2-byte address field, zeros.
00
01 Record type 01 is termination.
FF Checksum of termination record.
E-mail: info@telesys.ru