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

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
8.4.1
8.4.2
162
Simple example
This example shows how to load a file and automatically program it and display the result.
file
to buffer 0, sub-level 0
Description
#include <system.h>
#include <mprog.h>
void main()
{
}
LoadProgram("test.hex", F_HEX, SubLevel(0, 0));
if (ExecFunction("Auto Programming") == EF_OK)
{
}
else
The language used for writing the script files is similar to the C language. If you are familiar with the C
language, you can skip this chapter and switch to reading about the
language and the C
This manual contains just a few examples of programming in the script language. To find more
examples, refer to books on the C language.
General Syntax of Script Language
Basic Data Types
Data byte order
Operations and Expressions
Operators
Functions
Descriptions
Predefined Symbols in the Script File Compilation
if (ExecFunction("Verify", SubLevel(0, 0), 10) != EF_OK)
{
}
printf("Verify ok.");
printf("Programming failed: %s", LastErrorMessage);
ChipProg Device Programmers
printf("Verify failed: %s", LastErrorMessage);
return;
Script Language Built-in Variables
Difference Between the Script Language and the C Language
Alphabetical List of Script Language Built-in Functions and Variables
language.
© 2010 Phyton, Inc. Microsystems and Development Tools
// perform an automatic programming
// verify 10 times
// load file "test.hex" that is an Intel HEX
// terminate script
// display error message if verify failed
// display Ok result
differences between the script
// display error message
//

Related parts for CHIPPROG-40