Требуется программист в Зеленограде
- обработка данных с датчиков; ColdFire; 40 тыс. e-mail:jobsmp@pochta.ru |
:10017000707172737475767778797A7B7C7D7E7F07 (CR/LF)
Broken down, it looks as follows:
: - Colon, indicates that this is IntelHex
10 - Number of data bytes to follow = $10, or 16 decimal
0170 - Starting address in the EPROM for this record.
00 - This is the record type -- $00 = Data
70 - These are the data bytes (in hex) - 16 of them as noted above
71 The first byte ($70) will be stored at $0170, with the
72 remaining bytes following in sequence.
73
74
75
76
77
78
79
7A
7B
7C
7D
7E
7F
07 - This is the checksum. If you add all of the successive bytes
(note that the address is treated as two individual bytes) the
result is $7F9. Truncating this to eight bits yields $F9. The
two's complement of $F9 is $07. (This may be derived by
subtracting $F9 from $100, or by inverting the bits and adding
one to the result.)
(CR/LF) - End of this record -- I think the linefeed may be optional.