Intel-Hex Format; Conversion Range - Epson S5U1C63000A User Manual

Cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

6.5.3 Intel-HEX Format

The hex converter converts an absolute object file in the IEEE-695 format into the Intel-HEX format files
when the -i option is specified.
The files are generated with a name "<file name>h.hex" for the high-order program file, "<file name>l.hex" for
the low-order program file and "<file name>c.hex" for the data ROM file.
The following shows a sample data in Intel-HEX format:
data volume type
address
:10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:1001000008E000F04200420606FFFFFFFFFFFFFF8E
:100FF000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF01
:00000001FF
data volume (1 byte): Indicates the data length of each record. The maximum length of a data record is
0x10, while the end record is fixed at 0x00.
address (2 bytes):
Indicates the address where the head data in a record is placed.
type (1 byte):
Indicates the type of hexadecimal format, currently only "00".
data (16 bytes max.): The object codes are placed here. This is not included in the end record.
sum (1 byte):
This is a checksum (2's complement) from "Data volume" to the last data.
The end records are always "00000001FF".
Note: When using hex files for creating the mask data, do not specify Intel-HEX format because the
mask data checker does not support this format.

6.5.4 Conversion Range

By default, the hex converter generates the hex files that include all the codes of the ROM area available
for each model. Data for unused addresses are delivered as 0xff. For example, if the model has a built-in
2KB code ROM and the program uses the area from address 0x0 to address 0x6ff, the hex converter fills
the area from address 0x700 to address 0x7ff with 0xff. If there are unused addresses in the range from
0x0 to 0x6ff, those data are also delivered as 0xff.
When creating the mask data by the mask data checker, the hex files must be generated in this format.
When the -b option is specified, the hex converter does not deliver data in unused addresses of the
absolute object file. This allows minimization of the output hex files. Note, however that the hex files
generated in this format cannot be used for creating the mask data.
S5U1C63000A MANUAL
(S1C63 FAMILY ASSEMBLER PACKAGE)
data
:
:
:
EPSON
CHAPTER 6: HEX CONVERTER
sum
109

Advertisement

Table of Contents
loading

Table of Contents