Output Hex Files; Hex File Configuration; Intel-Hex Format - Epson S5U1C62000A Manual

Epson cmos 4-bit single chip microcomputer manual
Table of Contents

Advertisement

CHAPTER 7: HEX CONVERTER

7.5 Output Hex Files

7.5.1 Hex File Configuration

Since each S1C6200 instruction has a 12-bit code, the hex converter always generates two hex files for the
high-order data and the low-order data.
The low-order data hex file ("l.hex" or ".lsa") contains the low-order bytes (bits 7 to 0) of the object codes.
The high-order data hex file ("h.hex" or ".hsa") contains the high-order bytes (bits 11 to 8 suffixed by high-
order bits 0b0000).
When creating the ROMs to be installed to the ICE or the Evaluation Board, write these files using a ROM
writer.
By specifying the -m option, the hex converter can convert the absolute object file into Motorola-S format
files as well as Intel-HEX format. However, use Intel-HEX format when loading the hex files to the
debugger or creating the mask data by the mask data checker because the debugger and mask data
checker do not support Motorola-S format files.

7.5.2 Intel-HEX Format

The hex converter converts an absolute object file in the IEEE-695 format into the Intel-HEX format files
by default.
The high-order data file is generated with a name "<file name>h.hex", and the low-order data file is
generated with a name "<file name>l.hex".
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.
Indicates the type of hexadecimal format, currently only "00".
type (1 byte):
data (16 bytes max.): The object codes are placed here. This is not included in the end record.
This is a checksum (2's complement) from "Data volume" to the last data.
sum (1 byte):
The end records are always "00000001FF".
108
data
:
:
:
EPSON
sum
(S1C60/62 FAMILY ASSEMBLER PACKAGE)
S5U1C62000A MANUAL

Advertisement

Table of Contents
loading

Table of Contents