Download AutoSite User Manual
Transcript
Translation Formats Texas Instruments SDSMAC Format, Code 90 Data files in the SDSMAC format consist of a start-of-file record, data records, and an end-of-file record. See Figure B-17. Figure B-17 An Example of TI SDSMAC Format Byte Count Tag Character End-of-File Record Filename Tag Character Checksum Tag Character 00050 7FDD4F 90000BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F400F 90010BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FFF 90020BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FEF 90030BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FDF 90040BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FCF : Tag Characters Data Records Checksum Load Address LEGEND Nonprinting Carriage Return, with optional line feed and nulls determined by null count. 0089-4 Each record is composed of a series of small fields, each initiated by a tag character. The programmer recognizes and acknowledges the following tag characters: 0 or K—followed by a file header. 7—followed by a checksum which the programmer acknowledges. 8—followed by a checksum which the programmer ignores. 9—followed by a load address. B—followed by 4 data characters. F—denotes the end of a data record. *—followed by 2 data characters. The start-of-file record begins with a tag character and a 12-character file header. The first four characters are the byte count of the data bytes; the remaining file header characters are the name of the file and may be any ASCII characters (in hex notation). Next come interspersed address fields and data fields (each with tag characters). If any data fields appear before the first address field in the file, the first of those data fields is assigned to address 0000. Address fields may be expressed for any data byte, but none are required. The record ends with a checksum field initiated by the tag character 7 or 8, a 4-character checksum, and the tag character F. The checksum is the two's complement of the sum of the 8-bit ASCII values of the characters, beginning with the first tag character and ending with the checksum tag character (7 or 8). Data records follow the same format as the start-of-file record but do not contain a file header. The end-of-file record consists of a colon (:) only. The output translator sends a CTRL-S after the colon. AutoSite User Manual B-33