presto_en.pdf - 第38页

Page 38 The n umbers t hemselves are logged in c ase of calculat ed serial numbers while their labels are logged in case of serial numbers ta ken from a file - see Format of F iles with Serial Numbers . Except for t he s…

100%1 / 101
Page 37
one device memories (the serial number itself directly to
the program, the equipment address to the data memory,
and the serial number again to ID positions in order to be
able to read it from a locked device, for example).
Note: A word is understood as one memory position.
Fig.24: Serial number settings
A file for logging the programmed serial numbers can be
selected under Options Program settings Serial
numbers.
Page 38
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). It is also possible to write
a comment behind two slashes '//'.
Thisisjustacomment;
//Alsothisis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
Page 39
sn2: 000045566778,210002020304;
sn3: 000056677889,210003020304;
note
sn4: 00006778899A,210004020304;
sn5: 000078899AAB,210005020304;
sn6: 000078899AAB,210006020304;
sn7: 000078899AAB,210007020304;
sn8: code.00013F003F013F023F03,
data.0002'x''4''2';
sn9: prog.00013F003F013F023F03,
 e.0002'x''4''3';
5.4.4 Calibration Memory
Support
Some devices contain a calibration memory containing
factory-preset device calibration. The loss of its content
can cause a fault in the device functionality. For this
reason we have tools allowing users to work with the
calibration memory.
Working with Calibration
Memory When Erasing a Device
in UV Eraser
Calibration data should be saved prior to erasing a
device. To do so, choose File Save calibration
data...
ou can retrieve it back by choosing File Read
calibration data...
The program contains a function for verifying whether a
device has been erased correctly: Device Blank
check. When this command is used, the program displays
data from the calibration memory.
Working With Calibration
Memory in Devices With Flash
Memory
When these devices are erased, the content of their
calibration memory is preserved.
If you really need to erase the calibration memory for
some reason, you can do so by choosing Device Erase
Erase all (including calibration).
Advice
New Flash devices with a calibration memory (such as
PIC12F629) contain so called 'bandgap bits', which form
part of the device calibration. These bits can be found in
the configuration word and are erased too if the
command Device Erase Erase all(including
calibration) is executed!
5.5
Program Controls
Fig.25: Controls of UP software
1) Title bar with the open project name or file
2) Menu