presto_en.pdf - 第84页
Page 84 6 up_control.dll library The up_ control.dll enables user t o cont rol the U P software using function s con tained in the library. It contains basic programming func tions. From the view of the user the UP softw…

Page 83
Saving Device Type in .hex File
Users frequently mistook the selected device type for the
device type for which the .hex file was saved. To
eliminate this, UP contains a function allowing you to save
the device type in a file.
The program adds one more line below the End of File:
#PART=.... The absolute majority of programs working
with Intel-HEX files ignore this line, but such a modified
file cannot be considered as complying with the Intel-HEX
format.

Page 84
6
up_control.dll library
The up_control.dll enables user to control the UP software
using functions contained in the library. It contains basic
programming functions.
From the view of the user the UP software is running
invisibly.
There is more information concerning the library available
in a separate
document.

Page 85
7
PRESTO.DLL Library
The presto.dll library has been designed for working
together with the PRESTO programmer.
The implemented functions allow you to set logical levels
at different programmer's pins as needed or to read their
state. Various communication protocols can be created
thanks to this.
The function QsetPins() is provided for controlling all
pins that can work as an output, while the function
QGetPins() serves for reading pins working as an input.
The function QSendByte() allows you to quickly send an
SPI Byte to data and clock pins. If reading is needed at
the same time, use the QsendByte_OutIn() function.
In addition there are functions for setting the
programmer's characteristics, controlling the voltage or
reading the return values.
This library can be used with all revisions of the PRESTO
programmer regardless of the hardware version.
The functions implemented in the presto.dll library are
described in detail in a separate document devoted to
this library.