Tektronix hex format

Tektronix hex format[2] (TEK HEX[2]) and Extended Tektronix hex format[2] (EXT TEK HEX or XTEK[2]) / Extended Tektronix Object Format[3] are ASCII-based hexadecimal file formats, created by Tektronix, for conveying binary information for applications like programming microcontrollers, EPROMs, and other kinds of chips.

Tektronix hex
Filename extension
.tek[1]

Each line of a Tektronix hex file starts with a slash (/) character,[2] whereas extended Tektronix hex files start with a percent (%) character.[2][3]

Tektronix hex format

[2]

Extended Tektronix hex format

A line consists of five parts:

  1. Record Length — 2 character (1 byte) field that specifies the number of characters (not bytes) in the record, excluding the percent sign.[2][3]
  2. Type — 1 character field, specifies whether the record is data (6) or termination (8).[3] (6 record contains data, placed at the address specified. 8 termination record: The address field may optionally contain the address of the instruction to which control is passed ; there is no data field.)
  3. Checksum — 2 hex digits (1 byte, represents the sum of all the nibbles on the line, excluding the checksum itself.[3]
  4. Address — 2 to N character field. The first character is how many characters are to follow for this field. The remaining characters contains the address that specifies where the data is to be loaded into memory. For example, if the first character is 8, then the following 8 characters should specify the address for a total of 9 characters in this field.
  5. Data — contains the executable code, memory-loadable data or descriptive information to be transferred.
gollark: Hey, that worked. I wonder if autoclicking would be against the rules.
gollark: _wonders how clicks work_
gollark: Yes, exactly.
gollark: I'm considering putting up an info section with the seeeeecret ND stuff.
gollark: It has been done.

See also

References

  1. "AR#476 PROMGen - Description of PROM/EEPROM file formats: MCS, EXO, HEX, and others". Xilinx. 2010-03-08. Tektronix Hexdecimal - File Format Code 86. Archived from the original on 2020-03-03. Retrieved 2020-03-03.
  2. "Tektronix Hex (TEX HEX) / Extended Tektronix Hex (XTEK)". Generating PROM Programming Files. San Jose, California, USA: Cypress Semiconductor Corporation. April 1994. pp. 1, 4–5. Archived from the original on 2020-03-01. Retrieved 2020-03-01. (11 pages)
  3. "12.15.4 Extended Tektronix Object Format (--tektronix Option)". TMS320C28x Assembly Language Tools - User's Guide (PDF). v19.6.0.STS. Dallas, Texas, USA: Texas Instruments Incorporated. June 2019 [August 2001]. p. 316. SPRU513S. Archived (PDF) from the original on 2020-03-01. Retrieved 2020-03-01.

Further reading

  • SRecord is a collection of tools for manipulating hex format files, including both Tektronix formats
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.