Autosite_Users_Manual - 第103页
Trans lation Fo rmats AutoSite User Manual B-5 ASCII Binary Format, Codes 01, 02, and 03 (or 05, 06, and 07) In these formats, bytes are record ed in ASCII codes w ith binary digit s represented by Ns and Ps, L s and Hs,…

Translation Formats
B-4 AutoSite User Manual
General Notes
Some information about data translation is listed below:
Note: Formats 10, 11, and 89 do not function properly unless you select NO
parity and 8-bit data.
Compatibility
When translating data, you may use any remote source that produces
formats compatible with the descriptions listed in this section.
Formats with Limited
Address Fields
Some formats are not defined for use with address fields greater than
64K. Thus, if you transfer a block greater than 64K, the address fields that
would be greater than 64K may wrap around and overwrite data
transferred in previous data records. Formats 70 through 86, and 90 may
exhibit this characteristic.
Hardware Handshaking
Hardware handshaking may be used if compatible with the host
interface by connecting the appropriate lines at the serial port interface.
Hardware handshake (CTS/DTR) is enabled as the default. However, if
those signals aren’t connected, the programming electronics sense this
and communicate using software handshake (XON/XOFF). The
programmer always uses software handshake regardless of whether
hardware handshake is enabled.
Leader/Trailer
During output of all formats except 89 (HP 64000), a 50-character leader
precedes the formatted data and a 50-character trailer follows. This
leader/trailer consists of null characters. If the null count parameter is
set to FF hex, then the leader/trailer is skipped. To set the null count, go
to the More Commands/Configure/Edit/Communication Parameters
screen and set the Number of Nulls parameter. If in CRC, use the CRC
U
command to set the null count.

Translation Formats
AutoSite User Manual B-5
ASCII Binary Format, Codes 01, 02, and 03(or 05, 06, and 07)
In these formats, bytes are recorded in ASCII codes with binary digits
represented by Ns and Ps, Ls and Hs, or 1s and 0s, respectively. See
Figure B-1. The ASCII Binary formats do not have addresses.
Figure B-1 shows sample data bytes coded in each of the three ASCII
Binary formats. Incoming bytes are stored in RAM sequentially starting
at the first RAM address. Bytes are sandwiched between B and F
characters and are separated by spaces.
Data can also be expressed in 4-bit words. The programmer generates the
4-bit format on upload if the data word width is 4 bits. Any other
characters, such as carriage returns or line feeds, may be inserted between
an F and the next B.
The start code is a nonprintable STX, which is a CTRL-B (the same as a
hex 02). The end code is a nonprintable ETX, which is a CTRL-C (the
same as a hex 03).
Figure B-1
An Example of ASCII Binary Format
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF BPPPPPPPPF
2
FORMAT 01 (OR 05)
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF BHHHHHHHHF
2
FORMAT 02 (OR 06)
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
B11111111F B11111111F B11111111F B11111111F
2
1
3
1
3
1
3
FORMAT 03 (OR 07)
LEGEND
Start Code - nonprintable STX - CTRL B is the optional Start Code
Characters such as spaces, carriage returns and line feeds may appear between bytes
End Code - nonprintable ETX - CTRL C
1
2
3
0074-2

Translation Formats
B-6 AutoSite User Manual
Note: Data without a start or end code may be input to or output from the
programmer by use of alternate data translation format codes. These are
ASCII-BNPF, 05; ASCII-BHLF, 06; ASCII-B10F, 07.
A single data byte can be aborted if the programmer receives an E
character between B and F characters. Data will continue to be stored in
sequential RAM addresses. Data are output in 4-byte lines with a space
between bytes.