2500_Users_Manual - 第380页

Trans lati on For mat s D-50 ProMaste r 2500 User Ma nual Hewlett-Packard UNIX Format, C ode 96 This format divides the data file into data records, each with a maximum size of 2 50 bytes not inclu ding header informatio…

100%1 / 448
Translation Formats
ProMaster 2500 User Manual D-49
Motorola 32-Bit Format, Code 95
The Motorola 32-bit format closely resembles the Motorola EXORmacs
format, the main difference being the addition of the S3 and S7 start
characters. The S3 character is used to begin a record containing a 4-byte
address. The S7 character is a termination record for a block of S3 records.
The address field for an S7 record may optionally contain the 4-byte
instruction address that identifies where control is to be passed and is
ignored by the programmer. Figure D-21 shows a sample of the Motorola
32-bit format.
Motorola data files may begin with an optional sign-on record, initiated
by the start characters S0 or S5. Data records start with an 8- or
10-character prefix and end with a 2-character suffix.
Each data record begins with the start characters S1, S2, or S3: S1 if the
following address field has 4 characters, S2 if it has 6 characters, S3 if it
has 8 characters. The third and fourth characters represent the byte count,
which expresses the number of data, address, and checksum bytes in the
record. The address of the first data byte in the record is expressed by the
last 4 characters of the prefix (6 characters for addresses above
hexadecimal FFFF, and 8 characters for addresses above hexadecimal
FFFFFF). Data bytes follow, each represented by 2 hexadecimal
characters. The number of data bytes occurring must be 3, 4, or 5 less than
the byte count. The suffix is a 2-character checksum, the one’s
complement (in binary) of the preceding bytes in the record, including
the byte count, address, and data bytes.
The end-of-file record begins with an S8 or S9 start character. Following
the start characters are the byte count, the address, and a checksum. The
maximum record length is 250 data bytes.
Figure D-21
An Example of Motorola S3 Format
S00B00004441544120492F4FF3
S31500000000AA55AA55AA55AA55AA55AA55AA55AA55F2
S30D00000010AA55AA55AA55AA55E6
S70500000000FA
Start
Character
Byte Count
Address
Checksum
Optional Sign-On Record
Data
Records
0093-3
Translation Formats
D-50 ProMaster 2500 User Manual
Hewlett-Packard UNIX Format, Code 96
This format divides the data file into data records, each with a maximum
size of 250 bytes not including header information. An ID header is
added to the beginning of the first record. Each subsequent record has its
own header section. The section at the beginning of the file contains the
following elements: the header 8004, filename, byte count for the
processor information record, and the processor information record.
The header 8004 identifies the type of file being transferred. The first byte
of this header (80) indicates that this file is binary, and the 04 indicates the
type of file (absolute).
The ID header is followed by a 16-byte filename (not used by the
programmer).
Next is the byte count, which indicates the size (minus one) of the
Processor Information Record that follows. The Processor Information
Record is divided into the following data words: Data Bus Width, Data
Width Base, Transfer Address LS (least significant), and Transfer Address
MS (most significant).
The Data Bus Width represents the width of the target system’s bus (in
bits). The Data Width Base represents the smallest addressable entity
used by the target microprocessor.
The Data Bus Width and Data Width Base are not used by the
programmer during download. During upload, the Data Bus Width will
be set to the current Data Word Width, and the Data Width Base will be
set to 8. The Transfer Address LS and Transfer Address MS are not used
by the programmer.
The data records consist of a header (8 bytes) and the data bytes. The first
2 bytes of the header indicate the size of the data record including the
header (minus one). If the number of data bytes in the data record (not
including the header) is odd, one extra byte will be added to the data
record to ensure that an even number of data bytes exist in the data
record. The maximum value for this field is 00FF hex. The next two bytes
indicate the number of actual data bytes in the record, not including the
header bytes and the extra byte (if present). The maximum value for this
field is 00FA hex. The 4 bytes that follow represent the destination
address for the data in this record. The rest of the bytes in the record are
the data bytes.
This format has no end of file identifier.
Translation Formats
ProMaster 2500 User Manual D-51
The record length during upload is not affected by the upload record size
parameter in the Configure/Edit/Communication screen. It is
automatically set to transfer records using the maximum size (250 bytes)
except for the last record. The size of the last record will be set according
to the remaining number of data bytes.
Figure D-22
Hewlett-Packard 64000 Unix Format
80 04 20 20 20 20 20 20-20 20 20 20 20 20 20 20
20 20 00 07 00 08 00 08-00 00 00 00 00 FF 00 FA
00 00 00 00 02 00 26 02-03 38 FF FF FF FF FF 02
30 38 FF FF FF FF FF 02-03 38 FF FF FF FF FF 02
03 38 FF FF FF FF FF 02-03 16 75 A8 00 75 82 10
75 D0 00 75 B8 10 75 89-20 75 88 40 75 98 50 75
97 00 E5 99 75 80 00 75-90 E0 75 A0 40 75 B0 FF
74 58 F5 70 F5 71 75 75-00 75 76 FF 51 FD E5 90
54 60 B4 00 05 75 8D A0-80 13 B4 20 05 75 BD F4
80 0B B4 40 05 75 8D E8-80 03 75 8D FD 75 A8 90
75 99 52 90 00 AD 7A 00-11 D5 31 02 51 79 90 00
B7 7A 10 11 D5 31 02 51-79 90 00 C1 7A 20 11 D5
31 02 51 79 90 00 CB 7A-30 11 D5 31 02 51 79 80
D2 03 07 0B 13 11 17 1F-1D 23 00 02 06 0A 12 10
16 1E 1C 22 00 01 05 09-0D 0F 15 19 1B 21 25 00
04 08 0C 0E 14 18 1A 20-14 78 00 EA 44 40 FA 75
A0 4F E8 93 24 30 F9 87-80 EA 54 4F F5 A0 0A 08
75 A0 4F B8 0A EC EA 54-3F F5 A0 78 28 00 00 FF
00 FA 00 FA 00 00 00 00-00 D8 FA 8A A0 22 A8 71
F8 B5 70 01 22 E6 08 B8-70 02 78 58 88 71 F9 B4
E7 08 B8-72 90 01 22 93 73 06 30
00 26 B4 5A 07 51 FD
B4 00 80 BF B4
Number of bytes in
the following record
not including header
(or extra byte if present)
Data Record
Load Address
MS Word
Load Address
LS Word
Header
8 words for
file name
Byte Count = 7
Data Bus
Width
Transfer
Address LS
Data Width
Base
Transfer
Address MS
Processor Information Record
Number of bytes in
the following record
including header
Number of bytes in
the following record
not including header
End of first 124
record words
Number of bytes in
the following record
Data RecordLoad Address
MS Word
Load Address
LS Word
This data translation format was generated by a "dump utility" for illustrative purposes. Actual data
files are in binary code and are typically generated by the appropriate development software.
0474-2