CHIPPROG-40 Phyton Inc, CHIPPROG-40 Datasheet - Page 135

PROGRAMMER STANDALONE 40-DIP

CHIPPROG-40

Manufacturer Part Number
CHIPPROG-40
Description
PROGRAMMER STANDALONE 40-DIP
Manufacturer
Phyton Inc
Type
Universal, Stand Aloner
Datasheets

Specifications of CHIPPROG-40

Contents
Programmer, Cables, CD, Power Adapter
Ic Product Type
Programmer, Universal
Ic Interface Type
USB
Features
Embedded Script Language For Automation Of Routine Operations, Splits Files To Multiple Images
Rohs Compliant
Yes
For Use With/related Products
EEPROM, EPROM, FLASH, MCU, NVRAM
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
© 2010 Phyton, Inc. Microsystems and Development Tools
Microsoft Visual Studio® 2008. The project sources can be also compiled by other C/C++ compilers,
sometimes with minor adjustments. After building the project you get the Windows consol application
executable file.
In order to adjust the example project (or a part of it) for use in your application you have to set correct
paths to the ACI functions called by the main() function. This includes paths to the ChipProg executable
file, to the file that is supposed to be loaded to the programmer's memory buffer or to be saved from the
buffer. You also have to specify your target device. See an example of the main() function's fragment
below.
All examples uses the ACI.DLL file that must be either in the same folder where the example executable
file resides or in the folder specified in the variable PATH. In the supplied examples the ACI.DLL file is
already copied into the folders where the MS Visual Studio creates executable files.
Example Descriptions
Each example has a comment header briefly describing the program purposedo. Additionally, some
comments are inserted in the code texts. All examples begin from executing the
that activate the programmer.
AutoProgramming.c
This is the simplest and frequently used example of the ChipProg external control. The program
launches the programmer, selects the PIC18F242 target device, loads the test.hex file into the
programmer buffer, sets default programming options and then executes a preset
batch of functions: Erase, Blank Check, Program, Verify.
LongProgramming.c
This example shows how to monitor a process of the AutoProgramming procedure if it may last quite a
long time. The program acts as the the example above. The programming launches by the
ACI_StartFunction
ACI_GetStatus
allows continuing operations.
ProgrammingOptions.c
This example shows how to get, print out and change options settable in the
....
/*+
......
// Launch the programmer executable
if (!Attach("C:\\Program Files\\ChipProgUSB\\4_72_00\\UPrognt2.exe", "", FALSE)) return -1;
// Select device to operate on
if (!SetDevice("Microchip", "PIC18F242")) return -1;
// Load .hex file to buffer 0, layer 0
if (!LoadHexFile("C:\\Program\\test.hex", 0, 0)) return -1;
function. If the operation fails the programmer issues an error message, otherwise it
main
then it keeps checking percentage of the operation completion by means of the
°
Programming Automation via DLL
01.07.09 17:37:24*/
Device and Algorithm
ACI_Launch()
AutoProgramming
function
135

Related parts for CHIPPROG-40