presto_en.pdf - 第62页
Page 62 Code/Main Memory Editor Menu: View ➙ Display code/main memory Keyboard shortcut t o open the windo w: F10 Keyboard shortcut t o close the window: Esc The code/m ain memory edit or displays the c ode/main memory c…

Page 61
Faster Programming with Slow Clock
If this option is active, once the device is erased, the
fuses are programmed at the maximum frequency of the
internal oscillator. This allows the programmer to
communicate with the device at a faster speed. At the
end of programming, the required value of the
communication memory including the clock speed is
programmed.
This option has its effect only if the whole device is
programmed.
Inverse Reset
With this option activated, the programmer generates an
inverse reset signal.
This option is appreciated if the application includes a
reset circuit that needs an inverse signal at the input
compared to the output signal sent to the microcontroller
and if the programmer is connected via this reset circuit.
HVP
If this option is checked, the programmer uses the “high”
voltage at pin P for communication with the device.
This allows you to program a device with the external
RESET signal switched off.
Settings Associated with I2C
Memory Chips
I2C Bus Speed
Select the maximum possible speed of the I
2
C bus. The
programmer switches on the internal pull-up of 2.2kΩ
while working on the I
2
C bus.
I2C Memory Address
Select the address of the I
2
C memory on the bus.
Settings Associated with SPI Flash
Chips
▸ Start address
Sets the address range for work with the memory. Start
address is the first address, where the selected
operation is executed.
▸ End address
Sets the address range for work with the memory. End
address is the last address, where the selected operation
is executed.
5.5.5 HEX Editor Windows
HEX editors are used for displaying the content of a
memory chip to be programmed.
Different colors are used in HEX editors to differentiate
between states of different cells to make it easy to see
which cells have been read from a file, which have been
successfully programmed, etc.
Colors may be user-assigned. This is especially
recommended for workstations with displays/screens
displaying only a limited number of colors.
Selecting an Area
An area can be selected in a HEX editor by holding the
Shift key down and pressing the cursor keys (i.e. arrows).
Once a required area is selected, it can be filled with a
required value. The values can also be filled with RETLW
instruction. These options are available in the context
menu (opens by mouse right-click).

Page 62
Code/Main Memory Editor
Menu: View ➙ Display code/main memory
Keyboard shortcut to open the window: F10
Keyboard shortcut to close the window: Esc
The code/main memory editor displays the code/main
memory content or the content of the memory itself in
case of serial EEPROM chips (24xx, 93xx,...).
Data Memory (EEPROM) Editor
Menu: View ➙ Display data memory
Keyboard shortcut to open the window: F11
Keyboard shortcut to close the window: Esc
The data memory editor is used for displaying the content
of the additional memory in some devices (typically
EEPROM).
Not all devices have an additional memory. This means
the editor may not be available for some devices.
Configuration Memory Editor
Menu: View ➙ Display configuration memory
Keyboard shortcut to open the window: F12
Keyboard shortcut to close the window: Esc
The configuration memory editor displays settings that
are to be programmed in a device, but are not part of any
of the above memory types.
The configuration memory editor content depends on the
selected device type. It is necessary to get acquainted
with the device's data sheet in order to get a closer
explanation of individual options in this window.
Not all devices need configuration data. This means the
editor may not be available for some devices.
Tips for Advanced Users
Even though the configuration memory may be presented
as a set of settings, in reality it is nothing more than a
memory that can be approached cell by cell. Due to this,
it is possible to display the memory in this way.
This can be achieved by activating Options ➙ Program
settings ➙ Editors ➙ Configuration memory editor:
show cfg word instead of fuses option or by double-
clicking the configuration memory window.
The device's ID positions (do not mistake for Device ID)
can also be found in the configuration memory window. ID
positions can be programmed with values identifying the
device, such as the serial number, for example. ID
positions can always be read - even if the device is locked
against reading.
According to the recommendation of the Microchip, ID
positions should not be programmed with any value; only
a certain number of bits (typically 4) should carry data for
identification while other bits should be programmed with
the default value.
This can be achieved by activating Options ➙ Program
settings ➙ Editors ➙ Mask ID positions....
5.6
Running UP from
Command Line
The UP program can alternatively be controlled from the
command line.
The program itself makes sure that it always runs in one
instance only (with one class name). Should a second
instance (with the same class name) be started,
parameters from the command line are transferred to the
first instance for execution. Only the /p, /pdiff, /blank, /
verify, /erase, /read, /noe, /eeonly, /noboot, /boot, /code, /
cfg parameters are transfered to the running instance. UP
can be started in more instances using different class
name, see /wnd in List of Parameters.

Page 63
On the commandline it is recommended to use project
file, it contains important settings for programming. Some
project settings can be modified using commandline
parameters. Commandline parameters have higher
priority than the settings from the project defined on the
commandline.
5.6.1 List of Parameters
UP.EXE [{/ask | /q | /q1}]
[{/e
File_with_eepromm.hex | [/noe]}] [{/p |[/pdiff]| [/
o]}
File.hex | File.ppr] [/df File.hex] [/part
device_name] [/eeonly] [/erase][/w[nd]
up_window_class] [/cfg] [/devid] [/blank] [/verify File]
[/read
File] [/s SN_programmer's][/progname name] [/
noboot] [/boot] [/code] [/getpartrev] [/sn
serial_number] [/conf file]
Legend
• Text presented here in bold is to be keyed in in the
command line exactly as printed here.
• Text presented here in italics is to be replaced by the
corresponding parameter. For example, file_name
should be replaced with the real name of a file to be
opened.
• Text in braces {} separated by the | sign represents a
selection of one of the presented options. For example,
{ A | B } means “choose either A or B”.
• Text in square brackets [] presents an optional
parameter – it can be keyed in but does not have to.
• Text in quotation marks “ ” is a mnemonic.
/ask To be used linked with /p. The program
always asks if it is to continue before
launching the actual device programming
even if the program settings specify not to
ask. The dialog displays the selected device
type.
/q /quiet “Quiet” mode. The program does not ask
any questions. If it needs to display a
dialog, the execution finishes with an error.
See UP program
return codes. An external
application can monitor UP work flow by
ProgressBar value reading, see
Work flow
monitoring
.
/q1 “Quiet” mode 1. It works same like the /q
parameter, but shows the Status form,
which is closed after programming
regardless of errors. UP does not provide
with the ProgressBar value when the /q1
parameter was used.
/e file “EEPROM” file. For keying in the name of a
file with data for data memory, if needed. If
the file name contains space(s), it must be
enclosed by inverted commas.
/noe “No EEPROM”. The program skips the
device data memory programming. If this
parameter is used for MSP430
microcontroller programming, the
information memory is erased and
programmed.
/p file To “program”. The keyed in file will be
programmed. The file can be a data file,
e.g. hex file, or UP project file. If the file
name contains space(s), it must be
enclosed by inverted commas.
/pdiff file To “program the difference”. The keyed in
file gets programmed by the differential
algorithm. If the file name contains
space(s), it must be enclosed by inverted
commas.
/o file To open. The keyed in file opens. The file
can be a data file, e.g. hex file, or UP
project file. This parameter is optional. If
the file name contains space(s), it must be
enclosed by inverted commas.