Autosite_Users_Manual - 第118页

Trans lati on Form ats B-20 AutoSite User Manual Although each data byte has a n address, most are implied. Data bytes a re addressed sequen tially unless an explicit address is i ncluded in the data stream. This a ddres…

100%1 / 175
Translation Formats
AutoSite User Manual B-19
ASCII Octal and Hex Formats, Codes 30-37 and 50-58
Each of these formats has a start and end code, and similar address and
checksum specifications. Figure B-6 illustrates 4 data bytes coded in each
of the 9 ASCII Octal and Hexadecimal formats. Data in these formats are
organized into sequential bytes separated by the execute character (space,
percent, apostrophe, or comma). Characters immediately preceding the
execute character are interpreted as data. ASCII Octal and Hex formats
can express 8-bit data, by 3 octal or 2 hexadecimal characters. Line feeds,
carriage returns, and other characters may be included in the data stream
as long as a data byte directly precedes each execute character.
Figure B-6
An Example of ASCII Octal and Hex Formats
$A000000,
377 377 377 377 377 377 377 377 377 377 377 377 377 377 377 377
$S007760,
$A000000,
377%377%377%377%377%377%377%377%377%377%377%377%377%377%377%377%
$S007760,
$A000000,
377'377'377'377'377'377'377'377'377'377'377'377'377'377'377'377'
$S007760,
$A000000,
377'377'377'377'377'377'377'377'377'377'377'377'377'377'377'377'
$S007760,
$A0000,
FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%FF%
$S0FF0,
$A0000,
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
$S0FF0,
$A0000,
FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'
$S0FF0,
$A0000,
FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,
$S0FF0,
$A0000,
FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'FF'
$S0FF0,
1
1
1
2
1
1
1
1
2
4
4
4
3
4
4
4
3
4
FORMAT 30 (OR 35)
FORMAT 31 (OR 36)
FORMAT 32
FORMAT 37
FORMAT 50 (OR 55)
FORMAT 51 (OR 56)
FORMAT 52
FORMAT 53 (OR 58)
FORMAT 57
Optional Octal Address Field (Typical)
Optional Octal Sumcheck Field (Typical)
Octal Data Byte (Typical)
Execute Character
Optional Hex Address Field
Optional Hex Sumcheck Field
LEGEND
Start Code is nonprintable STX - CTRL B (optionally SOH - CTRL A)
Start Code is nonprintable SOM - CTRL R
End Code is nonprintable EOM - CTRL T
End Code is nonprintable ETX - CTRL C
1
2
3
4
0078-2
Translation Formats
B-20 AutoSite User Manual
Although each data byte has an address, most are implied. Data bytes are
addressed sequentially unless an explicit address is included in the data
stream. This address is preceded by a $ and an A, must contain 2 to 8 hex
or 3 to 11 octal characters, and must be followed by a comma, except for
the ASCII-Hex (Comma) format, which uses a period. The programmer
skips to the new address to store the next data byte; succeeding bytes are
again stored sequentially.
Each format has an end code, which terminates input operations.
However, if a new start code follows within 16 characters of an end code,
input will continue uninterrupted. If no characters come within 2
seconds, input operation is terminated.
After receiving the final end code following an input operation, the
programmer calculates a sumcheck of all incoming data. Optionally, a
sumcheck can also be entered in the input data stream. The programmer
compares this sumcheck with its own calculated sumcheck. If they
match, the programmer will display the sumcheck; if not, a sumcheck
error will be displayed.
Note: The sumcheck field consists of either 2-4 hex or 3-6 octal characters,
sandwiched between the $ and comma characters. The sumcheck
immediately follows an end code. The sumcheck is optional in the input
mode but is always included in the output mode. The most significant
digit of the sumcheck may be 0 or 1 when expressing 16 bits as 6 octal
characters.
the programmer divides the output data into 8-line blocks. Data
transmission is begun with the start code, a nonprintable STX character,
or optionally, SOH.* Data blocks follow, each one prefaced by an address
for the first data byte in the block. The end of transmission is signaled by
the end code, a nonprintable ETX character. Directly following the end
code is a sumcheck of the transferred data.
* ASCII-Octal SMS and ASCII-Hex SMS use SOM (CTRL-R) as a start code and EOM
(CTRL-T) as an end code.
Translation Formats
AutoSite User Manual B-21
RCA Cosmac Format, Code 70
Data in this format begin with a start record consisting of the start
character (!M or ?M), an address field, and a space. See Figure B-7.
The start character ?M is sent to the programmer by a development
system, followed by the starting address and a data stream which
conforms to the data input format described in the ASCII-Hex and Octal
figure. Transmission stops when the specified number of bytes has been
transmitted.
Address specification is required for only the first data byte in the
transfer. An address must have 1 to 4 hex characters and must be
followed by a space. The programmer records the next hexadecimal
character after the space as the start of the first data byte. (A carriage
return must follow the space if the start code ?M is used.) Succeeding
bytes are recorded sequentially.
Each data record is followed by a comma if the next record is not
preceded by an address, or by a semicolon if it starts with an address.
Records consist of data bytes expressed as 2 hexadecimal characters and
followed by either a comma or semicolon, and a carriage return. The
programmer ignores any characters received between a comma or
semicolon and a carriage return.
The carriage return character is significant to this format because it can
signal either the continuation or the end of data flow; if the carriage
return is preceded by a comma or semicolon, more data must follow; the
absence of a comma or semicolon before the carriage return indicates the
end of transmission.
Output data records are followed by either a comma or a semicolon and a
carriage return. The start-of-file records are expressed exactly as for
input.
Figure B-7
An Example of RCA Cosmac
Format
!M0000 ,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Start Record
!M or ?M = Start Characters
0000 = Address
End-of-File Record
1
2
Data Records
FF =
, =
; =
2 Hex Characters = (1 Byte)
Bytes per record is variable
End of Record Character
End of Record Character
if followed by expressed
address
LEGEND
Nonprinting line feed, carriage return, and nulls
Nonprinting carriage return
1
2
0079-2