![]() ![]() The number of bytes of data contained in this record is "Byte Count Field" minus 4 (3 bytes for "24-bit Address Field" plus 1 byte for "Checksum Field"). ![]() This record contains data that starts at a 24-bit address. This record is typically used for 8-bit processors, such as 6502, 6800, 8051, Z80, AVR, PIC. The number of bytes of data contained in this record is "Byte Count Field" minus 3 (2 bytes for "16-bit Address Field" plus 1 byte for "Checksum Field"). This record contains data that starts at a 16-bit address. It is common to see: 48, 44, 52 which is the ASCII representation of the letters "H", "D", "R". The text data can be anything including a mixture of the following information: file/module name, version/revision number, date/time, product name, vendor name, memory designator on PCB, copyright notice, sign on. It is common to see the data for this record in the format of a null-terminated string. This record contains vendor specific ASCII text comment represented as a series of hex digit pairs. S6 was originally reserved but was later redefined. S4 is reserved and not currently defined. The following table describes 10 possible S-records. For example, Linux programs use a single LF character ( line feed, 0x0A as ASCII character value) character to terminate lines, whereas Windows programs use a CR character ( carriage return, 0x0D as ASCII character value) followed by a LF character. Programs that create HEX records typically use line termination characters that conform to the conventions of their operating systems. This enhances legibility by visually delimiting the records and it also provides padding between records that can be used to improve machine parsing efficiency. SREC records are separated by one or more ASCII line termination characters so that each record appears alone on a text line. In the C programming language, the sum is converted into the checksum by: 0xFF - (sum & 0xFF)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |