presto_en.pdf - 第36页

Page 36 Fig.22: Mass p roduction The actual prog ramming can be trigg ered b y clicking the Program b utton in the Mass production dialog window. The func tion o f this b utton is iden tical to the Program all or Progra…

100%1 / 101
Page 35
want to save such a modification, choose File Save,
File Save as... or File Export data memory to
file....
Important warning
It is recommended to check the programmer
settings and fuse settings before starting the
actual programming as an error in these
parameters could damage the device or even
the programmer.
The programming process is triggered by choosing
Device Program or by clicking the Program button.
In some devices, the system checks the Device ID (device
electronic signature) and the code/data protection bits
before launching the programming process. If the ID does
not match the selected device type, a warning message is
displayed.
Displaying of this warning message is frequently caused
by a fault in the interconnection of the device and the
programmer.
If things are in order, the programmer performs the
following operations: erases the device, checks the
erasure, programs the device and checks the
programmed device.
If only a particular memory of a microcontroller needs to
be programmed, it can be done by choosing the
corresponding item in the Device Program menu or
by clicking the pull-down arrow next to the Program
button on the button bar. Depending on the device type,
the following options may be available: program code/
main memory, program data (EEPROM) memory, program
configuration memory or program all.
Differential Programming
The Device Program menu offers a possibility of
differential programming, provided the device to be
programmed supports it. If selected, the existing memory
content is read first and only cells that differ are then
programmed.
Differential programming is useful for development during
which content of the programming data changes very
often, but the changes are tiny. As only changed cells are
overwritten, the differential programming is advisable for
devices with a low number of writing cycles. It can also be
faster than the conventional re-writing of the whole
memory content.
5.4
Further Features
The following section focuses on selected additional
functions of UP available for device programming.
5.4.1 Setting the GO
Button
ASIX programmers feature a GO button, which allows the
user to trigger the programming process without a
computer mouse or keyboard.
The function of the GO button can be set under the
Options Key shortcuts menu in the GO button field
to suit user's needs.
The UP software must be running if the user wants to use
the GO button, but may be minimized on the screen.
Additional settings associated with the GO button can be
found in
Settings for Programming During Development.
5.4.2 Mass Production
The mass production function is available under the
Device Program Mass production menu. It can
also be called up by clicking the arrow next to the
Program button on the toolbar.
Page 36
Fig.22: Mass production
The actual programming can be triggered by clicking the
Program button in the Mass production dialog
window.
The function of this button is identical to the Program all
or Program all except data memory options
depending on the state of the Don't program data
EEPROM checkbox in the Mass production window.
This dialog window also displays a counter of devices
programmed. Depending on the program settings, the
counter can also be displayed in the status bar. For
further information on settings see
Production
Programming Settings
.
The counter displays the number of programmed devices
in both the mass production mode and the standard
mode.
Pressing the Counter reset button zeroes all the mass
production counters. This operation cannot be undone.
The choice "Auto programming" causes that the device is
programmed after it has been connected, the connection
test is done by reading the Device ID.
The programming can be launched by connecting
external power supply (VDD).
When the "Open this form after start" setting is enabled,
the form opens after program start or after project file
open, if it is used.
5.4.3 Serial Numbers
The Serial Numbers function programs the serial number
or another sequence of characters in the selected
memory location.
Fig.23: Serial numbers
Once the serial numbers are activated and their type set
up under Options Program settings Serial
numbers, a window with the current serial number opens
offering the possibility to manually write a serial number
in the memory HEX editor, to specify where it should be
written and if the system should proceed to the next
sequential number.
Serial numbers can be:
Computed
The computed serial numbers must always be written in
the same selected position in the device such as the
code/main memory, data memory or an ID position, for
example. The serial number is always expected to be a
number in decimal or hexadecimal format and may be
coded as a 4-bit combination (one to four characters per
word) or as an ASCII character (one or two ASCII
characters per word). If the code/main memory is used for
Microchip microcontrollers, you can choose RETLW
instructions. Then RETLW instructions are written in the
given address of the code/main memory together with a
parameter corresponding with the serial number.
TakenfromFile
A single serial number can be distributed in more than
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.