EasyManua.ls Logo

ASIX Forte - Data Record; Example of File with Serial Numbers; Format of Files with Serial Numbers

ASIX Forte
102 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 44
The numbers themselves are logged in case of calculated
serial numbers while their labels are logged in case of
serial numbers taken from a file - see Format of Files with
Serial Numbers.
Except for the serial numbers also the date, time and the
result of the programming are writen to the file. For the
devices for which the revision reading is supported, the
revision number is also written to the file.
Format of Files with Serial
Numbers
Files containing definitions of serial numbers are text files
that can easily be created in third-party programs. *.SN or
*.TXT are recommended file extensions.
A serial number record has the following form:
[comment] label: data record, data record, ...,
data record;
Semicolons are obligatory at the end of records.
Comment is any string containing no colon ':'.
Comments are optional. If a colon cannot be found in
the whole serial number record, the record is ignored
(understood as a comment).
This is just a comment;
White character is a space, tabulator or end of line
(CR+LF).
Label is a string identifying the serial number. This
string is compulsory. The label must not contain white
characters, colons or semicolons.
Data Record
A data record consists of an address and data items in a
chain following this address.
Each item can be written in hexadecimal form (e.g. 2100)
or a numeral base in which the number is written in can
be explicitly defined.
For example, b'10101010' means the same as h'AA',
d'170' or just AA. 'A' means d'65' (ASCII character itself).
ExamplerecordforPIC16F628A:
2100 05 55 54 means to save data 05h, 55h, 54h in
addresses 00 to 02 of a data memory.
The code/main memory which stores the serial number
can also be specified by the word CODE. or PROG. or
just P..
The data memory should be specified by the word
DATA. or EE. or just E..
ID or just I is used for the memory of ID positions.
These words are always followed by an address inside the
specified memory.
Example:
EE.00 05 55 54 means to save data 05h, 55h, 54h in
addresses 00 to 02 of a data memory.
Notes
* There is no specifier for the configuration memory, it
would make no sense.
dsPIC addresses of 24-bit words are to be written in for
all addresses (i.e. an internal dsPIC address of 24h is 12h
here). For a data (EEPROM) memory addresses of 16-bit
words are to be written in, i.e. as they go one by one
through the microcontroller.
Autonomous memory chips (I
2
C, SPI) have only the
code memory. If a non-existent memory is specified,
an error is reported.
Example of File with Serial Numbers
Commentatthebeginning;
sn1: 000034455667,
210001020304;serialnumber1
sn2: 000045566778,210002020304;
sn3: 000056677889,210003020304;

Table of Contents