Programming Automation via DLL
135
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.
/*+
main
°
01.07.09 17:37:24*/
......
// 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;
....
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 ACI_Launch() function
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 AutoProgramming
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 then it keeps checking percentage of the operation completion by means of the
ACI_GetStatus function. If the operation fails the programmer issues an error message, otherwise it
allows continuing operations.
ProgrammingOptions.c
This example shows how to get, print out and change options settable in the Device and Algorithm
? 2010 Phyton, Inc. Microsystems and Development Tools
相关PDF资料
CHUSBWB-2 BATT CHARGER AA/AAA W/2AAA CELLS
CK-S6-SP623-G BOARD DEV S6 WITH TX
CK-V6-ML628-G KIT VIRTEX-6 CHAR ML628
CLSD004 LED DRIVER PROGRAMMER W/CABLE
CMC484812 RACK STEEL 12X48X48 GRY
CMCQP3 PANEL INNER 25.59X15" GREY
CML12C32SLK KIT STUDENT LEARNING 16BIT HCS12
CMR-8040 RACK CABLE MANAGMNT OPEN ASSMBLY
相关代理商/技术参数
CHIPPROG-G41 功能描述:PROGRAMMER GANG 4 SOCKET RoHS:是 类别:编程器,开发系统 >> 独立编程器 系列:- 产品目录绘图:CHIPPROG-G4 标准包装:1 系列:- 类型:成组编程器 适用于相关产品:EEPROM,EPROM,FLASH,MCU,NVRAM,PLD 所含物品:编程器,线缆,CD 产品目录页面:598 (CN2011-ZH PDF) 相关产品:AE-TS56-16I-3-ND - ISP CABLEADAPTER 14-PIN HEADERAE-TS40N-ND - ADAPTER SOCKET 40-TSOP TO 40-DIPAE-TS32N-ND - ADAPTER SOCKET 32-TSOP TO 32-DIPAE-TS28-ND - ADAPTER SOCKET 28-TSOP TO 28-DIPAE-T44-P16-ND - ADAPTER SOCKET 44-QFP TO 40-DIPAE-T44-I51/505-ND - ADAPTER SOCKET 44-QFP TO 40-DIPAE-SS56-16I-ND - ADAPTER SOCKET 56-SSOP TO 40-DIPAE-SP8U-ND - ADAPTER SOCKET 8-SSOP TO 8-DIPAE-SP28U2-ND - ADAPTER SOCKET 28-SSOP TO 28-DIPAE-SP28U1-ND - ADAPTER SOCKET 28-SSOP TO 28-DIP更多...
CHIPPROG-ISP 功能描述:PROGRAMMER IN-SYSTEM UNIVERSAL RoHS:是 类别:编程器,开发系统 >> 内电路编程器、仿真器以及调试器 系列:- 产品变化通告:Development Systems Discontinuation 19/Jul/2010 标准包装:1 系列:* 类型:* 适用于相关产品:* 所含物品:*
CHIPS CAPACITOR 0.015UF 50V CERAMIC 制造商:AVX Corporation 功能描述:CHIPS CAPACITOR 0.015UF50VCERAMIC*NIC*
CHIPS-IN-DIPS 制造商:未知厂家 制造商全称:未知厂家 功能描述:ASIC
CHIPT1593CSE6327X1SA1 制造商:Infineon Technologies AG 功能描述:RF SILICON MMIC - Gel-pak, waffle pack, wafer, diced wafer on film
CHIPV6 制造商:JDSU 制造商全称:JDS Uniphase Corporation 功能描述:The industrya??s most compact 100 G test solution
CHIS-24 制造商:Mencom 功能描述: