0% found this document useful (0 votes)
132 views1 page

C Reference Manual - October 2005.71

This document defines the #serialize directive which allows insertion of serial numbers into files. #serialize can store a serial number to a data EEPROM starting at a specified address or to an external file. It takes parameters like the ID, address, number of bytes, and filenames for logging or listing serial numbers.

Uploaded by

diegoifg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views1 page

C Reference Manual - October 2005.71

This document defines the #serialize directive which allows insertion of serial numbers into files. #serialize can store a serial number to a data EEPROM starting at a specified address or to an external file. It takes parameters like the ID, address, number of bytes, and filenames for logging or listing serial numbers.

Uploaded by

diegoifg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Data Definitions

Purpose:

Allows the insertion of data into the .HEX file. In particular,


this may be used to program the '84 data EEPROM, as
shown in the following example.
Note that if the #ROM address is inside the program memory
space, the directive creates a segment for the data, resulting
in an error if a #ORG is over the same area. The #ROM
data will also be counted as used program memory space.

Examples:

#rom

Example Files:

None

Also See:

#org

0x2100={1,2,3,4,5,6,7,8}

#SERIALIZE
Syntax:

#serialize(id=xxx, next=x | file=" filename.txt " |


listfile=" filename.txt," prompt="text",
log="filename.txt")
-Or#serialize(dataee=x,
binary=x,
next=x
|
file="filename.txt" | listfile=" filename.txt ", prompt=" text ",
log=" filename.txt ")

Elements:

id=xxx Specify a C CONST


int8,int16,int32 or char array

identifier,

may

be

Use in place of id parameter, when storing serial number


to EEPROM:
dataee=x The address x is the start address in the data
EEPROM.
binary=x
The integer x is the number of bytes to
be written to address specified.
-orstring=x
The integer x is the number of bytes to be
written to address specified.

59

You might also like