20.01.2013 Views

3980xpi Users Manual - Data I/O Corporation

3980xpi Users Manual - Data I/O Corporation

3980xpi Users Manual - Data I/O Corporation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fairchild Fairbug, Code 80<br />

Translation Formats<br />

In the Fairbug format, input and output requirements are identical; both have<br />

8-byte records and identical control characters. Figure 5-8 shows a Fairbug<br />

data file. A file begins with a 5-character prefix and ends with a 1-character<br />

suffix. The start-of-file character is an S, followed by the address of the first<br />

data byte. Each data byte is represented by 2 hexadecimal characters. The<br />

programmer will ignore all characters received prior to the first S.<br />

Note: Address specification is optional in this format; a record with<br />

no address directly follows the previous record.<br />

Each data record begins with an X and always contains 8 data bytes. A 1-digit<br />

hexadecimal checksum follows the data in each data record. The checksum<br />

represents, in hexadecimal notation, the sum of the binary equivalents of the<br />

16 digits in the record; the half carry from the fourth bit is ignored.<br />

The programmer ignores any character (except for address characters and the<br />

asterisk character, which terminates the data transfer) between a checksum<br />

and the start character of the next data record. This space can be used for<br />

comments.<br />

Figure 5-8. Fairchild Fairbug (example)<br />

Start Record<br />

S = Start Character<br />

0000 = Address Field<br />

S0000<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

XFFFFFFFFFFFFFFFFC<br />

*<br />

End-of-File Record<br />

<strong>Data</strong> Records<br />

X = <strong>Data</strong> Record Start Character<br />

FF = 2 Hex Characters (1 Byte)<br />

C = Checksum. 1-digit summation<br />

of data in record<br />

The last record consists of an asterisk only, which indicates the end of file.<br />

<strong>3980xpi</strong>/3980/3900/2900 User <strong>Manual</strong> 5-17<br />

0080-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!