CHIPPROG-40 Phyton Inc, CHIPPROG-40 Datasheet

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
ChipProg Device Programmers
User's Guide
ChipProg-48
ChipProg-40
ChipProg-G4
ChipProg-ISP
© 2010 Phyton, Inc. Microsystems and Development Tools

Related parts for CHIPPROG-40

CHIPPROG-40 Summary of contents

Page 1

... ChipProg Device Programmers User's Guide ChipProg-48 ChipProg-40 ChipProg-G4 ChipProg-ISP © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 2

... ChipProg Device Programmers © 2010 Phyton, Inc. Microsystems and Development Tools All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the written permission of the publisher. ...

Page 3

... System Requirements ................................................................................................................................... 11 Part II ChipProg Family Brief Description 1 Comparisson matrix ................................................................................................................................... 14 2 ChipProg-48 ................................................................................................................................... 15 Major features .......................................................................................................................................................... 16 Hardw are characteristics .......................................................................................................................................................... 17 Softw are features .......................................................................................................................................................... 17 3 ChipProg-40 ................................................................................................................................... 18 Major features .......................................................................................................................................................... 19 Hardw are characteristics .......................................................................................................................................................... 19 Softw are features .......................................................................................................................................................... 20 4 ChipProg-G4 ................................................................................................................................... 20 Major features .......................................................................................................................................................... 21 Hardw are characteristics .......................................................................................................................................................... 21 Softw are features ...

Page 4

... ChipProg Device Programmers Configuration Files ......................................................................................................................................................... 41 The View Menu .......................................................................................................................................................... 41 The Project Menu .......................................................................................................................................................... 42 The Project Options Dialog ......................................................................................................................................................... 42 The Open Project Dialog ......................................................................................................................................................... 43 Project Repository ......................................................................................................................................................... 43 The Configure Menu .......................................................................................................................................................... 44 The Select Device dialog ......................................................................................................................................................... 45 The Buffers dialog ......................................................................................................................................................... 45 The Buffer Configuration dialog Main Buffer Layer Buffer Layers The Serialization, Checksum and Log dialog ...

Page 5

... Managing invalid blocks Skipping invalid blocks Reserved Block Area Error Checking and Correction Invalid block map Marking invalid blocks ......................................................................................................................................................... 91 Program m ing NAND Flash devices by ChipProg .......................................................................................................................................................... 92 Access Mode ......................................................................................................................................................... 93 Invalid Block Management Spare Area Usage Guard Solid Area Tolerant Verify Feature Invalid Block Indication Option Access Mode Parameters ...

Page 6

... ChipProg Device Programmers ACI_Exit .......................................................................................................................................................... 108 ACI_LoadConfigFile .......................................................................................................................................................... 108 ACI_SaveConfigFile .......................................................................................................................................................... 109 ACI_SetDevice .......................................................................................................................................................... 109 ACI_GetDevice .......................................................................................................................................................... 109 ACI_GetLayer .......................................................................................................................................................... 109 ACI_CreateBuffer .......................................................................................................................................................... 110 ACI_ReallocBuffer .......................................................................................................................................................... 110 ACI_ReadLayer .......................................................................................................................................................... 110 ACI_WriteLayer .......................................................................................................................................................... 110 ACI_FillLayer .......................................................................................................................................................... 111 ACI_GetProgram m ingParam s .......................................................................................................................................................... 111 ACI_SetProgram m ingParam s .......................................................................................................................................................... 111 ACI_GetProgOption .......................................................................................................................................................... 111 ACI_SetProgOption .......................................................................................................................................................... 112 ACI_AllProgOptionsDefault .......................................................................................................................................................... 113 ACI_ExecFunction .......................................................................................................................................................... 113 ACI_StartFunction .......................................................................................................................................................... 114 ACI_GangStart ...

Page 7

Search for Regular Expressions ......................................................................................................................................................... 144 The Set/Retrieve Bookmark Dialogs ......................................................................................................................................................... 145 Condensed Mode ......................................................................................................................................................... 145 The Condensed Mode Setup Dialog ......................................................................................................................................................... 146 Automatic Word Completion ......................................................................................................................................................... 146 Syntax Highlighting ......................................................................................................................................................... 146 The Display from Line Number Dialog ......................................................................................................................................................... 147 ...

Page 8

... ChipProg Device Programmers Index © 2010 Phyton, Inc. Microsystems and Development Tools 176 ...

Page 9

... QFP, BGA, QNF and other packages. A socket installed on a programmer unit adapter (see below) to accommodate the target device for programming. All ChipProg models use ZIF (or Zero Insertion Force) programming sockets that allow for the temporary installation of the target device in the programmer site and easily ...

Page 10

... Files in a ChipProg can be loaded from and saved hard drive or CD. A memory segment, physically assigned from the computer operational memory (RAM), for temporarily storing, editing and displaying the data to be physically written to the target device’ ...

Page 11

... Pentium-III CPU or higher Windows XP/Vista/7 for the ChipProg-48, ChipProg-40 and ChipProg-ISP programmers in the all modes Windows 98/ME for the ChipProg-48, ChipProg-40 and ChipProg-ISP programmers in the basic mode Windows 2000/XP/Vista/7 for the ChipProg-G4 programmer Windows XP/Vista/7 for using the Application Control Interface control ...

Page 12

... ChipProg Device Programmers © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 13

... New ChipProg models will be added soon. programmers are intended for engineering and small volume is a low-cost programmer for engineering, field service and manufacturing is a gang programmer intended for small and middle-volume production; it has ChipProg-48 andChipProg-40 (top row), User Interface topics. The software ...

Page 14

... Unlimited Yes, w ith additional Yes, w ith additional cables cables Yes Yes Yes Yes © 2010 Phyton, Inc. Microsystems and Development Tools ChipProg-40 ChipProg-ISP Engineering and low Engineering, low volume production volume production and field service Single-site, parallel, Single-site, serial socket system ...

Page 15

... It supports in-socket and in-system programming of thousand of devices and has no valuable limitations in supporting future devices. The unlimited future device support differs ChipProg-48 from the simplified and less expensive ChipProg-40 model. © 2010 Phyton, Inc. Microsystems and Development Tools ChipProg Family Brief Description ...

Page 16

... One programmer unit One power adapter 12V/1A+ One USB link cable One CD with the ChipProgUSB software Optionally the package may include one or more programming adapters (if ordered with the programmer) and a “QuickStart” printed manual. See also for more details: Major features ...

Page 17

... Can program target devices in the programmer ZIF socket as well as the devices installed in the equipment (ISP mode). 5. ChipProg-48 tools can be driven from multiple USB ports of one computer (or via a USB hub) to provide concurrent programming of multiple devices of the same type. 6. Has a button for fast manual launch of any single operation or a bunch of operations. ...

Page 18

... ChipProg-40 The ChipProg-40 universal programmer can be effectively used for both engineering and low-volume manufacturing. It supports in-socket and in-system programming of thousand of devices. The programmer hardware has some limitations for supporting certain devices. It does not support any PLDs. ...

Page 19

... Provides fast programming; for example, completely writes a 64M bit NOR FLASH in less than 50 sec unlimited number of ChipProg-40 tools can be driven from multiple USB ports of one computer (or via a USB hub) to provide concurrent programming of multiple devices of the same type. 6. Has a button for fast manual launch of any single operation or a batch of operations. ...

Page 20

... ChipProg-G4 The ChipProg- 4-site gang programmer based on four ChipProg-48 tools enclosed in onecase and driven from the ChipProgUSB software intended for middle- and low-volume manufacturing. It supports in-socket and in-system programming of thousand of devices and has no valuable limitations for supporting future devices. © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 21

... Software features 2.4.1 Major features 1. Based on four ChipProg-48 tools enclosed in one case and connected via an embedded USB hub. 2. Allows independent and concurrent programming four devices of the same type pin ZIF sockets allow insertion of any DIP-packed devices with the package width from 300 to 600 mil (7 ...

Page 22

... The software allows pre-programming a particular operation (or a chain of operations), which is supposed to be automatically triggered when the programmer hardware detects insertion of the target device into the programming socket. 10. Unlimited number of memory buffers can be opened in the main ChipProgUSB window for each of four programming sites. © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 23

... The ChipProg-ISP is a low-cost universal programmer specifically created for programming devices without removing them from the equipment where they are installed. This type of programming is known as “in-system” or “in-circuit”. The ChipProg-ISP supports serial EPROM and EEPROM flash memory devices and embedded microcontrollers with the code and data memory programmable via different types of serial ports: UART, JTAG, SPI and other types, including proprietary interfaces. The programmer has three LEDs for displaying the programming status (“ ...

Page 24

... These signals are target specific and depend on the type of target device or a family in general (AVR, PIC, etc.) - see here. They also are shown in the adapters wiring diagrams; see the file included in the ChipProgUSB set. The pin #9 must be connected to the target's ground. ...

Page 25

... Protects itself and the target equipment against incorrect wiring. 3. Links USB 2.0 compatible port, e.g. slower USB connection is also supported unlimited number of ChipProg-ISP tools can be driven from multiple USB ports of one computer (or via a USB hub) to provide concurrent programming of multiple devices of the same type. ...

Page 26

... Unlimited number of memory buffers can be opened in the main ChipProgUSB window. 11. The software supports a multiple programming mode for concurrent programming of the same type of target devices on the same type of the programmers connected to one cluster. The cluster size has no influence on the programming speed ...

Page 27

... It is assumed that you are an experienced user of MS Windows and basic Windows operations. 3.1 Installing the ChipProgUSB Software Insert the distributive ChipProgUSB disc into a CD drive of your PC, click the install button and then follow the series of prompts that will lead you through the installation process. Accept the terms of license agreement Choose the folder to install © ...

Page 28

... ChipProg Device Programmers Wait for installation... Phyton folder At the end the installer will create a folder with ChipProgUSB tools' and documents' shortcuts: © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 29

... ChipProgChipProg-40 and ChipProg-ISP programmers working in a Phyton ChipProgUSB -- Gang Mode - invokes the ChipProgUSB executable file and starts operations for the ChipProg -G4 gang programmer or the ChipProg-48, ChipProg-40 and ChipProg-ISP programmers working in a Phyton ChipProgUSB Demo - invokes a demo version of the ChipProgUSB software that allows evaluating the product without its hardware ...

Page 30

... ChipProg Device Programmers Select the 'No, not this time' option and click the Next button. The wizard below will appear: Select the 'Install from a list or specific location' option and click the Next © 2010 Phyton, Inc. Microsystems and Development Tools ...

Page 31

Browse to the DRIVERS.USB folder on the Phyton CD and click the Next button (certainly the drive letter can be other than D:). This will start the drivers installation. Click the Continue Anyway button to complete the installation; you will ...

Page 32

... Click the button. Now you can use the ChipProg 3.3 Hardware installation mandatory for you to use the original power adapter 12V/1A received with the ChipProg-40 or ChipProg -48 programmer and an original power cord for the ChipProg-G4 gang programmer. Any substitutions should be agreed to with Phyton also highly recommended to use the USB link cables received with the programmers ...

Page 33

... Start the Phyton ChipProgUSB program; if the programmer passes the startup test successfully the first dialog prompts you to choose one of the programmers to work with: ChipProg-48, ChipProg-40 or ChipProg-ISP. Select the ChipProg-48 and continue. The ChipProgUSB main window will open and you will be able to work with the tool. ...

Page 34

... Start the Phyton ChipProgUSB program; if the programmer passes the startup test successfully the first dialog prompts you to choose one of the programmers to work with: ChipProg-48, ChipProg-40 or ChipProg-ISP. Select the ChipProg-40 and continue. The ChipProgUSB main window will open and you will be able to work with the tool. Plug the ...

Page 35

... Start the Phyton ChipProgUSB program; if the programmer passes the startup test successfully the first dialog prompts you to choose one of the programmers to work with: ChipProg-48, ChipProg-40 or ChipProg-ISP. Select the ChipProg-ISP and continue. The ChipProgUSB main window will open and you will be able to work with the tool. ...

Page 36

... Before contacting Phyton Make sure that you use the latest ChipProgUSB version that is always available for free download from the http://www.phyton.com. Make sure the detected error can be reproduced in the same working environment and is not a casual glitch ...

Page 37

Contact Information Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam velit risus, placerat et, rutrum nec, condimentum at, leo. Aliquam in augue a magna semper pellentesque. Suspendisse augue. Nullam est nibh, molestie eget, tempor ut, consectetuer ac, pede. ...

Page 38

... OK button. This is convenient when you need to change only one option in the dialog and then close it. 4.2 Toolbars The ChipProgUSB program opens a few toolbars on top of the main window (see below). specifically created for the ChipProg operations. in full. You will be able to use the tools much more effectively. ...

Page 39

... Load file, Save file... Check, Program, Verify, etc.). There is an indicator of the ChipProgUSB status (Ready, Wait, etc.). The third line displays a target device selector. The fourth line, which is not displayed by default, includes an embedded editor options and commands for scripts ...

Page 40

... ChipProg Device Programmers 4.3.1 The File Menu The File menu's commands control the file operations. For those commands that have a toolbar button, the button is shown in the first column of the table below. If there is a shortcut key for a command, the shortcut key is shown at the right of the command in the menu. ...

Page 41

... Save session or Load session Configuration Files command. The extension of this file is The file, which contains all the settings entered in the text boxes of all the ChipProgUSB dialogs. This file is hidden from users, but the settings stored earlier are available for prompt pick up from the History lists ...

Page 42

... ChipProg Device Programmers Most, but not all, of the local menu commands are duplicated by local toolbar buttons that are usually displayed at the top of every window. 4.3.3 The Project Menu This menu contains commands for working with projects. Button New Open Close Save ...

Page 43

... The remembers the state of the tree branches (expanded / collapsed) and restores it next time you open the dialog. When you install a new version of the ChipProgUSB software and copy the working environment from the previously installed version, the new version will inherit the existing project repository (file repos. ...

Page 44

... When deleting a project from the repository, the ChipProgUSB deletes only the repository record about the project, and does not delete the project from the disc. ...

Page 45

... The file displays all the devices for a chosen manufacturer that match to the search criteria specified in the mask and Packages/Adapters fields. This field lists all types of the chosen device's mechanical packages that can are supported by the the ChipProg and appropriate adapters. Description Displays names, sizes and sub-layers of all currently open ...

Page 46

... If the RAM space is limited the ChipProgUSB can use some space on the PC drives by temporary writing the buffer image to the drive. You can select the drive or allow the program to swap the files automatically ...

Page 47

Buffer Layers The tab opens the dialog for presetting the buffer sub-layers Element of dialog Fill sub-level 'ID location' with data: Data to fill sub-level with: 4.3.4.3 The Serialization, Checksum and Log dialog dialog The includes the following tabs: ...

Page 48

... ChipProg Device Programmers Increment serial number by: Use script to increment serial number: 4.3.4.3.2 Checksum The dialog allows to automatically calculate checksums of the data in buffers. Since there are several more or less standard algorithms for the checksum calculation the dialog enables you to set one standard algorithm or to create some custom, complex algorithms by using a script. ...

Page 49

Signature string The dialog allows set up of the procedure of giving a signature to the devices being programmed. The signature string may include some generic data like the date when the device has been programmed and some unique ...

Page 50

... ChipProg Device Programmers Single log file for all device types File Name Log File Contents Gang mode: Socket # Date/Time Events (device type change, file names, etc.) Device operation Detailed Device operation Operation Result Device #/Good devices/Bad devices Serial Number Signature string ...

Page 51

... Phyton, Inc. Microsystems and Development Tools If this box is checked then every time when the log size exceeds a specified value the ChipProgUSB issues the warning. If this box is checked then the ChipProgUSB does not buffer the log to the computer RAM but writes it straight to the drive Description By checking this box you enable re-loading to the open buffer(s) the last loaded file every time when you start the ChipProg ...

Page 52

... ChipProg Device Programmers 4.3.4.5.1 Fonts The Fonts tab of the Environment dialog opens a sub dialog for setting fonts and some appearance ChipProgUSB elements in the Fixedsys) are used to display information in windows. To improve appearance of the windows, you can set up either another font for all windows, or individual fonts for each particular window. ...

Page 53

... Mapping Hot Keys Key Mapping tab of the Environment dialog opens a sub dialog for assigning hot keys for all commands in the ChipProgUSB . The Menu Commands TreeKey 1 (Key 2) columns contain the corresponding hot–key combinations for the commands. The actions apply to the currently selected command. ...

Page 54

... ChipProg Device Programmers 4.3.4.5.4 Toolbar The Toolbar tab of the Environment dialog controls the presence and contents of toolbars of the windows. Element of dialog Toolbar Bands Buttons/Commands "Flat" Local Window Toolbars Toolbar Settings are the Same for Each Project/Desktop File 4.3.4.5.5 Messages Check messages that program should display, uncheck messages that you do not want to be displayed ...

Page 55

... Overwrite Log File After Each Start Append Messages to Log File 4.3.4.6 Configurating Editor Dialog The ChipProgUSB software includes a built-in editor that is used for editing one type of the objects of the ChipProgUSB - Scripts General Editor Settings Key Mapping tab. 4.3.4.6.1 General Editor Settings ...

Page 56

... ChipProg Device Programmers Syntax Highlighting Highlight Multi-line Comments Auto Word/AutoWatch Pane Full Path in Window Title Empty Clipboard Before Copying Convert Keyboard Input to OEM AutoSave Files Each … min Tab Size Undo Count Automatic Word Completion Indenting Note. You should check the Convert Keyboard Input to OEM box only if you are going to type something in the Source window when working with a file coded in the OEM character set ...

Page 57

... Files. Description Enter the command description here (optional). Text placed in this box will be displayed in the list of commands for easier identification of the command. The name of the script file that executes this command. Graphical User Interface 57 ChipProgUSB command; Script Script Source window. ChipProgUSB ...

Page 58

... ChipProg Device Programmers Define Key 2 The script source files for commands will reside only in the KEYCMD subdirectory of the Notes 1. You should not specify the combinations reserved by Windows (like Alt+– or Alt+Tab not recommend assigning the combinations already employed by commands in the Source ...

Page 59

... R0) 101100b & 0xF 4.3.6 The Script Menu The ChipProgUSB is featured with the tools known as an embedded script language. This mechanism is © 2010 Phyton, Inc. Microsystems and Development Tools Description The text box for entering an expression or number. Specifies the format of results that will be copied to the clipboard. ...

Page 60

... This Script menu contains a few commands associated with script files. The commands can be configured by the ChipProg user and the list can be expanded by adding a new item (command). To add a new item, place a script file into the current folder or into the ...

Page 61

... The Program Manager Window The Program Manager window is the major control object on the screen from which an operator controls the ChipProg . While some windows can be closed in a process of programming this one is supposed to be always open and visible. The window includes three tabs opening three group of settings and status indicators: © ...

Page 62

... The Project Manager and Options tabs look different and enable different settings for the ChipProg programmers working in single-programming and multi-programming modes. These tabs are identical for the ChipProg-G4 gang programmer and for the ChipProg-48, ChipProg-40 and ChipProg-ISP programmers when they are configured to work in the multi-programming mode. ...

Page 63

... Auto Programming Each device has its own routine set of programming operations that usually includes: Erasing, Blank Checking, Programming, Verifying and often Protecting against unauthorized reading. The ChipProgUSB stores default batches of these programming operations for each single supported device and allows the invocation of the batch of operations just by a mouse click or pressing the Start button on the programmer panel ...

Page 64

... To do this the buffer content should be properly prepared to split one memory file into several smaller file. If this box is checked the ChipProgUSB will test whether each of the device leads is reliably squeezed by the programming socket contact. If some contact is bad a current operation will be blocked. ...

Page 65

... If this box is checked the ChipProgUSB will always verify the device content right after it was read out. If this box is checked the ChipProgUSB will test whether each of the device leads is reliably squeezed by the programming socket contact preset programming function (operation) or Programming will start ...

Page 66

... ChipProg Device Programmers Byte 0 Byte 1 Byte 2 Byte 3 4.4.1.3 The Statistics tab This tab opens the fild displaying the programming session statistical results - Total number of devices that were programmed during the session, what was the yield (Good) and how many devices have failed (BadAuto Programming statistics ...

Page 67

... Programming; the , Good and Bad counters also count up. The ChipProgUSB reverses the counters to decrement their content (to count down). If the box is checked the ChipProgUSB will count the number of the programmed devices down. If the box is checked the will issue a warning when the counter Total is zeroed ...

Page 68

... Usually these parameters represent certain bits in a microcontroller’s Special Function Registers (SFRs). Some of these SFRs can be set in the ChipProg buffers in accordance with device manufacturers’ data sheets. But setting the parameters in the Device and Algorithms Parameters window is much easier and more intuitive ...

Page 69

... The local Device and Algorithm Parameters Editor window's toolbar includes a few buttons positioned on the top of the window: Toolbar button Min.Value Max.Value Default All Default Depending of the parameter's type ChipProgUSB offers the most convenient format for the parameter editing: Method of editing Drop-down menu Check Box dialog Customizing the parameter © ...

Page 70

... Buffer Dump Window The Buffer Dump window displays the contents of the ChipProg supports a flexible buffer structure: You can create an unlimited number of buffers. The number of buffers that you can open is limited only by the available computer RAM. Every buffer has a certain number of sub-levels depending on the type of target device. Each sub-level is associated with a specific section of a target device's address space ...

Page 71

The window has a toolbar for invoking setting dialogs and commands. Right under the toolbar the program displays a full path to a loaded file and a checksum of the dump. Local menu and Toolbar The local menu, which ...

Page 72

... ChipProg Device Programmers By default each buffer has a minimal size of 128K RAM and by default the program fills the buffer with a predefined value (usually 0FFh). You can customize these buffer settings - check the Custom radio button and type in the pattern to fill the buffer. ...

Page 73

Options ASCII pane Display checksum Limit dump to sub-layer size Signed decimal and hex values Always display '+' or '-' Leading zeroes for decimal numbers Reverse bytes in words ( LSB first) Reverse words in dwords Reverse dwords in qwords ...

Page 74

... Or, alternatively, appoint the location by a cursor and type over the new data on the PC keyboard. 4.4.3.5 The 'Memory Blocks' dialog The ChipProgUSB program allows complex operations with memory blocks. This dialog controls operations with blocks of data within one selected buffer or between different buffers. Description Here you may enter any address within the allowed range. ...

Page 75

The dialog box splits in three columns. The Source parameters, shown in the left column, specify the source memory area for the operations shown in the middle column. The operation’s result will be placed in the area specified by the ...

Page 76

... ChipProg Device Programmers Copy Compare Invert Calculate Checksum Negate Result Write Result to Destination OR with Value XOR with Value Notes 1. The source and destination memory areas may overlap. But, since operations with memory blocks are carried out using a temporary intermediate buffer, the overlap does not corrupt the results. ...

Page 77

... Buffer to load file to: Layer to load file to: Start address for binary image: Offset for loading address: 4.4.3.6.1 File Formats The ChipProgUSB program supports a variety of file formats that can be loaded to the ChipProg buffers. File format Standard/Extended Intel HEX (*.hex) Binary image (*.bin) Motorola S-record (*. ...

Page 78

... ChipProg Device Programmers JEDEC (*.jed) Xilinx PRG (*.prg) Holtek OTR (*.otp) Angstrem SAV (*.sav) ASCII Hex (*.txt) 4.4.3.7 The 'Save File' dialog The dialog defines parameters of the file to be saved from the buffer. Element of dialog File Name: Addresses File Format: Buffer to save file from: ...

Page 79

... The adapters.chm file includes short descriptions of the Phyton programming adapters and their wiring diagrams. Having the adapter diagram a ChipProg user can master it is own adapter or to find the adaptor available from a third party, which can be used as a replacement for the Phyton brand adapter. ...

Page 80

... Pin numbers of the ZIF socket installed on the adapter top 3rd, 4th, 5th, etc. - Pin numbers of the passive and active components installed on the adapter board. See an example of the AE-P44-A32/64 adapter connection table below: Pin# of the dual-row 40- pin plug (ChipProg ZIF socket ...

Page 81

Adapters for in-system programming The adapters.chm file includes short descriptions of the Phyton programming adapters for in-system programming (e.g. the programming in the user's equipment) and their ...

Page 82

... Donec fermentum. Curabitur ut ligula ac ante scelerisque consectetuer. Nullam at turpis quis nisl eleifend aliquam. Sed odio sapien, semper eget, rutrum a, tempor in, nibh. 4.4.6 Windows for Scripts ChipProgUSB is featured with the windows specifically supporting operations with scripts. That includes: (Script) Editor windows Watches ...

Page 83

... DIP-packed devices without additional adapters. They can accommodate DIP-packed devices with different number of leads (from 4 to 48) and different widths of the package up to 600 mil. Just a few old DIP-packed devices require special adapters to be programmed by ChipProg Device Information displays the adapter type. The pictogram showing a correct insertion position of the device is on the programmer at the left of the socket as well as in the DIP-packed devices can be inserted in the way shown on the pictogram ...

Page 84

... Basic programming functions Sub-topics of this chapter describe all the basic ChipProg-40 and -48 operations in a single programming mode, when a device is programming in the programmer socket. Specific operations for programming more than one device at one time are described in the Multi- and Gang programming 5 ...

Page 85

... Menu > Commands > . Wait for the message Programming … the Operation Progress box of the Managertab error has occurred the ChipProgUSB issues an error message. 4. Execution of the main Program function (always shown in the beginning of the Function list) writes a specified buffer layer content to the Code device memory. However, other buffer layers may exist for the selected device (Data, User, etc ...

Page 86

... ChipProg Device Programmers IMPORTANT! After programming of all the memory layers (Code, Data, User, etc.) you need to program the options preset in the been modified. Go down to the Device parameters & ID line, expand it if collapsed, select the Program function and double click it.Device and Algorithm Parameters window 6 ...

Page 87

How to duplicate a device 1. Insert the master device to be copied (duplicated) into the programmer socket. 2. Read active buffer 3. Wait for the message Reading… the Operation Progress box of the ...

Page 88

... ChipProg Device Programmers The "large page" size is 2048 bytes for the 8-bit devices and 1024 bytes for the 16-bit devices; the "large page" NAND Flash memory devices' capacity varies from 256K to 32G bit capacity and higher. The picture below shows the "large page" NAND Flash memory architecture of the STMicroelectronics™ ...

Page 89

... There are three mostly used methods of handling invalid memory blocks: Skip Block method Error Checking and Correction The ChipProg programmers support all the methods above. 5.4.1.1.1.1 Skipping invalid blocks This is the simplest method of managing invalid blocks. The programming algorithm first reads the entire Spare Area to collect the addresses of invalid memory blocks ...

Page 90

... ECC algorithm please check the manufacturer's website. All the ECC-related information are written into the Spare 5.4.1.1.2 Invalid block map ChipProg programmers create the continues bit array. Valid (good) blocks are represented by zeros (0), invalid (bad ones (1). See the tab Invalid Block Map in the memory buffer: Invalid Block Block 2 б ...

Page 91

... Being lost the bad block map cannot be restored unless you keep the invalid block map as a file, etc important to keep track of the invalid block map changes by storing the markers before the memory erasing and restoring them after the chip erasing. The ChipProg programmers automatically restore the invalid block map unless the Use ...

Page 92

... Programming NAND Flash devices by ChipProg Programming NAND Flash memory devices by a Phyton ChipProg programmer begins from accurate setting of the programming options and parameters in the The screen capture below shows the window for the NAND04GW3B2BN device. The Device Parameters are divided in two setting groups: Any changes made in the ‘ ...

Page 93

Access Mode The Access Mode line, normally collapsed, can be expanded to invoke setting dialogs for one of the following modes: Invalid Block Management Spare Area Usage Tolerant Verify Feature Invalid Block Indication Option 5.4.2.1.1 Invalid Block Management Here ...

Page 94

... By default the ChipProgUSB disables guarding the memory area. Clicking the Guard Solid Area menu line opens the pop-up dialog where you can toggle ...

Page 95

... process of the programming verification the ChipProg locates an invalid block within the specified Solid Area it will issue an error message and stop the current programming operation. 5.4.2.1.4 Tolerant Verify Feature Tolerant Verify Feature menu line opens the pop-up dialog where you can toggle the options: ...

Page 96

... ChipProg Device Programmers 5.4.2.2.1 User Area Program, ReadVerify can be set applicable not to an entire NAND Flash memory device but to a specified part of the device memory - the User Area. The Erase and Blank Check operations are applicable only to the entire device. The User Area's boundaries are set by individual setting of a pair of the following parameters: User Area - Start Block - the first memory block of the User Area ...

Page 97

... Multi- and Gang-programming This document operates with two programming modes: Single-programming mode means programming one device at a time by means of one ChipProg © 2010 Phyton, Inc. Microsystems and Development Tools boundaries are set by individual setting a pair of the following parameters: ECC frame size ...

Page 98

... In terms of the control there is no difference whether the ChipProgUSB controls a ChipProg-G4 gang programmer or the program drives a cluster of multiple single ChipProg-40 or -48 or ChipProg-ISG programmers connected to one PC. To launch ChipProgUSB program in the Multi-programming mode it should be invoked either by using the ChipProgUSB-GANGChipProgUSB folder or from the command line with the key /GANG ...

Page 99

... Project Manager and Options tabs look differently and enable different settings for the ChipProg programmers working in the single-programming and multi-programming modes. These tabs are identical for the ChipProg-G4 gang programmer and for the -48, ChipProg-40 and ChipProg-ISP programmers when they are configured to work in the multi-programming mode. See: 5 ...

Page 100

... If this box is checked then AutoProgramming will start immediately after the ChipProg programmer has detected that the device is in the programming socket. By default this option is always on and the ChipProg always verifies the target device identifier given by the device manufacturer. If the box is unchecked the program will skip the device ID checking. ...

Page 101

... This option does not affect the data in the ChipProg buffers, they remain the same after the file loading. If this box is checked the ChipProgUSB will always check if the target device is blank before programming it. If this box is checked the ChipProgUSB will always verify the device content right after it has been programmed ...

Page 102

... The ChipProg programmers generate all the signals necessary for programming devices installed in the user's equipment (in-system). In order to program devices in-system the programmers connect to the target via special adapters. When a device to be programmed is chosen, the ChipProgUSB software displays a part number of the appropriate cable-adapter in the The adapters ...

Page 103

... Phyton, Inc. Microsystems and Development Tools Operating with Programmers such "high voltages". 1. The target gets power from the ChipProg. This is possible only if the target does not consume too much energy. The current supplied from the programmer may not exceed 80 mA, a capacity of the target power circuitry should not exceed 50 uF ...

Page 104

... This chapter describes how to integrate a ChipProg programmer into an external environment by means of the Phyton's proprietary Application Control Interface use requires the ChipProg to be driven from a PC under Windows XP, Vista or 7. 6.1 ...

Page 105

... ACI Functions In order to set up and control a ChipProg tool the program running on the instrumental computer calls the Application Control InterfaceApplication Control Interface functions requires structures that specify memory locations, pointers and other objects affiliated with the called function while other functions do not require any structures. Here is the list of the ChipProg Application Control Interface functions: © ...

Page 106

... ACI functions that read the content of the buffer layer or write into it ACI_GetProgrammingParams ACI_SetProgrammingParams Brief description Starts the ChipProgUSB program. This function must be alw ays the very first in the chain of other Application Control Interface functions that form the programming session. Closes the ChipProgUSBApplication Control Interface functions ...

Page 107

Application Control Interface function nam e ACI functions that get device-specific programming parameters or set them ACI_GetProgOption ACI_SetProgOption ACI_AllProgOptionsDefault ACI functions that control programming operations ACI_StartFunction ACI_GangStart ACI_GetStatus ACI_TerminateFunction ACI functions that save and load files to the programmer ACI_FileSave ...

Page 108

... Call of this function stops the ChipProgUSB software. In most cases the programmer practically immediately stops running. Sometimes, after calling the ACI_Exit function, it continues working for a while to correctly complete an earlier launched process. After all the ChipProg will stop and quite itself after finding that the controlling process has ended. ...

Page 109

... This function saves the ChipProg options specified in the tab (memory buffer configurations, programming options, test of the device insertion, etc.). The ChipProgUSB program automatically saves some programming options and settings including a type of the selected device, the device parameters, the start and end addresses of the device being programmed, the buffer start address, and a set of the AutoProgramming commands and then automatically restores these parameters when the user changes the device type ...

Page 110

... See also the ACI_Layer_Params 6.2.8 ACI_CreateBuffer ACI_FUNC ACI_CreateBuffer(ACI_Buffer_Params * params); Description This function creates a buffer with the parameters specified by the ChipProgUSB program automatically assigns the buffer # not necessary to create this buffer by a separate command. See also the ACI_Buffer_Params 6.2.9 ACI_ReallocBuffer ACI_FUNC ACI_ReallocBuffer(ACI_Buffer_Params ...

Page 111

Note! This function writes the data to the programmer's memory buffer but does not physically program the device. In order to physically write data from the buffer to the device's memory execute the programmer command (function) Program by means of ...

Page 112

... ChipProg Device Programmers Description This function gets current settings from the example see this window for one of the microcontrollers below. Note! This function does not physically read the specified information from the device being programmed. It reads from some virtual memory locations in the host PC's RAM, associated with physical locations in the target device's memory and registers ...

Page 113

This function does not physically write the specified information into the device being programmed. It actually writes to some virtual memory locations in the host PC's RAM, associated with physical locations in the target device's memory and registers. In order ...

Page 114

... ACI_GangStart ACI_FUNC ACI_GangStart(ACI_GangStart_Params * params); Description This function is used to control the command line with the key /gang to drive a ChipProg gang programmer or a cluster of multiple programmers connected to one PC! See also the device programmer use the The ACI_GangStart function launches the programming socket specified in the parameterSiteNumber of the The function returns control immediately ...

Page 115

... ACI_FUNC ACI_FileLoad(ACI_File_Params * params); Description ChipProgUSB software takes care of this. 6.2.24 ACI_FileSave ACI_FUNC ACI_FileSave(ACI_File_Params * params); Description This function saves a specified file from a specified buffer's layer. The ChipProgUSB software enables saving files in all popular formats: HEX, Binary, etc.. 6.2.25 ACI_SettingsDialog Description This macros opens the can remain closed but the allowing manipulations in the dialog ...

Page 116

... ChipProg Device Programmers Description This macros sends a command that opens the screen regardless of the ChipProgUSB main window status - the main window can remain closed but the Select Device dialog will appear on the computer screen. 6.2.27 ACI_BuffersDialog ACI_BuffersDialog(); This macros opens the ...

Page 117

... ACI_SaveFileDialog(); Description This macro sends a command that opens the the ChipProgUSB main window status - the main window can remain closed but the will appear on the computer screen. See the dialog example below. © 2010 Phyton, Inc. Microsystems and Development Tools Load File dialog ...

Page 118

... ChipProg Device Programmers 6.3 ACI Structures This chapter describes the structures used by the Structure ACI_Launch_Params ACI_Config_Params ACI_Device_Params ACI_Layer_Params ACI_Buffer_Params ACI_Memory_Params ACI_Programming_Params ACI_ProgOption_Params ACI_Function_Params ACI_PStatus_Params ACI_GangStart_Params Here is an example of the structure syntax: The ACI function that uses the structure ACI_Launch ACI_LoadConfigFile, ...

Page 119

... CommandLine structure member. This key controls the ChipProgUSB main window visibility. Setting TRUE for this structure member makes the ChipProgUSB main window visible. Then you can manipulate with the programmer using its user interface - open windows, set any programmer resources, execute programming operations, etc ...

Page 120

... ChipProg Device Programmers 6.3.2 ACI_Config_Params typedef struct tagACI_Config_Params { UINT Size; LPCSTR FileName; } ACI_Config_Params; FileName See also: ACI_LoadConfigFile, 6.3.3 ACI_Device_Params typedef struct tagACI_Device_Params { UINT Size; CHAR Manufacturer[64]; // (in || out) Device Manufacturer CHAR Name[64]; Manufacturer Name See also: ACI_SetDevice, 6.3.4 ACI_Layer_Params typedef struct tagACI_Layer_Params ...

Page 121

... There is one restriction on use of this flag: since the layer #0 is always resizeable the FixedSize is always FALSE for the layer #0. The name of the memory buffer as it was defined in the ChipProg interface or by the ACI_CreateBuffer Reserved name of the memory buffer's layer that cannot be changed by the ACI ...

Page 122

... This structure member represents the buffer layer #0's size in Bytes. This size lays in the range between 128K Bytes to 32G Bytes (may be changed in the future). The ChipProgUSB allows assigning buffers with fixed sizes only (see the list on the picture below). Any intermediate value will be automatically rounded up to one of the reserved buffer sizes ...

Page 123

See also: ACI_CreateBuffer, 6.3.6 ACI_Memory_Params typedef struct tagACI_Memory_Params { UINT Size; UINT BufferNumber; number is 0 UINT LayerNumber; number is 0 DWORD AddressLow; device address) PVOID Data; DWORD DataSize; max (0x1000000) DWORD FillValue; only } ACI_Memory_Params; BufferNumber LayerNumber ...

Page 124

... This structure member represents the data format given in memory units specified by the device manufacturer (Bytes, Words or Double Words). The program ignores the DataSize used with the This is the data pattern that fills an active ChipProg buffer's layer by means of the ACI_FillLayer function. If, for example, the FillValue is presented in the ...

Page 125

... This is the command to reverse the byte order in 16-bit words when programming the device, reading it or verifying the data. This structure member does not effect the data value in the ChipProg memory buffers - these data remain the same as they were loaded. device is blank every time before executing the command ...

Page 126

... ChipProg Device Programmers DeviceEndAddrLow, DeviceEndAddrHigh DeviceBufStartAddrLo w, DeviceBufStartAddrHi gh This is the bit definition from the aciprog.h header file ACI Data Split defines #define ACI_SP_NONE #define ACI_SP_EVEN_BYTE #define ACI_SP_ODD_BYTE #define ACI_SP_BYTE_0 #define ACI_SP_BYTE_1 #define ACI_SP_BYTE_2 #define ACI_SP_BYTE_3 ** // ACI Device Auto-Detect or 'Start' button action ...

Page 127

Value; UINT VSize; ACI_PO_BITSTREAM OptionType == ACI_PO_BITSTREAM == ACI_PO_STRING data if OptionType == ACI_PO_BITSTREAM. OptionType == ACI_PO_STRING, including the terminating NULL character. without setting the string UINT Mode; constants } ACI_ProgOption_Params; Units OptionDescription ListString OptionType ReadOnly Value © 2010 ...

Page 128

... UE commands to put the maximal Option value into the Value used w ith the Value w ill be ignored; the Option w ill be set to the maximal level defined in the ChipProg hardw are possible for the Option of this type Signed integer option 1 // Floating point option 2 // String option ...

Page 129

ACI_PP_MODE_MAX_VALUE member Note for use of the ACI_GetProgOption In order to get the buffer size necessary for storing the Option ACI_PO_STRING make the first call of the ACI_GetProgOption function with the Value.String= NULL. Then the function will return the ...

Page 130

... CHAR ErrorMessage[512]; fails } ACI_Function_Params; The name of the ChipProg function - one of those listed in the window Functions of the ChipProgUSB picture below): the main functions applicable to a majority of the target devices ( Blank Check, Erase, Read, Program, Verify) and the device-specific lower level functions accessible through expandable sub-menus (for example, Program Device Parameters, Erase Sectors, Lock Bits > ...

Page 131

... Bits^Bit 0" CHAR ErrorMessage[512]; } ACI_PStatus_Params; If the ChipProgUSB was launched an the Gang mode (with the command line key / gang) and controls either the gang programmer or a cluster of single programming SiteNumber machines then before starting the parameter must contain an ordinal number of the programming site (socket) for which the status is inquired ...

Page 132

... ChipProg Device Programmers ACI_StartFunction PercentCompl While the Executing == TRUE this parameter represents a percentage of the function completion - from 0 to 100. ete This structure member defines insertion of the device into the programmer ZIF socket if the of the ACI_DS_XXX* constants in the aciprog.h Status ACI_DS_OK ...

Page 133

... Low 32 bits of address offset for ACI_FileLoad // (in) High 32 bits of address offset for ACI_FileLoad The name of the file to be loaded to the ChipProg buffer. The ordinal number of the destination buffer. Buffer numbers begins from zero. The ordinal number of the memory layer in the buffer. Layer numbers begins from zero ...

Page 134

... See also: ACI_GangStart, 6.4 Examples of use The ChipProgUSB software includes a few examples of use the Application Control Interface functions and structures. The examples reside in the subdirectory ACI\Programmer ACI Examples in the directory where the ChipProg program is installed. The examples are written in the C language and are represent the projects that can be compiled by the ...

Page 135

... 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 saved from the buffer ...

Page 136

... ChipProg Device Programmers Parameters Editor window. First, the program checks the device insertion into the programmer's socket by calling the ACI_GetStatus(&Status) device into the programmer's socket, the program reads the current set of options by the ACI_GetProgOption function and print them out. Then it changes the Vpp value from the default to 10.5V and disables the device Brown-out Reset feature ...

Page 137

... The extension of script source file is . CMD. When the ChipProgUSB program starts, it searches for the script with the reserved name START.CMD. So, if you wish the ChipProgUSB program would automatically perform some operations immediately after you launch the program, you can create a special script ...

Page 138

... ChipProg Device Programmers In the upper window of this dialog you see the list of loaded script files with the current state of each file. Any script can be in one of the following states: State of File Stopped Running Waiting Cancelled To select a script file, highlight its name in the window. The four buttons on the right of the list control the ...

Page 139

... If this box is checked when you click the the source texts of all script files visible in the Script Source windows. Starts the script file specified in the Script File Name box. Editor window Script Files ChipProgUSB automatically saves by the ChipProgUSB built-in editor or by 139 ...

Page 140

... ChipProg Device Programmers ChipProgUSB program is installed. Normally the Editor toolbar that collects all the edit function buttons is hidden. To create a customized editor toolbar right click on the blank area of the main toolbar, select the Customize line in the drop-down menu and check the boxes of the editor functions which you would like to make visible. ...

Page 141

New Open... Save Print Properties.. 7.2.2 Text Edit Commands of this menu refer to the currently active Button Command Undo Copy Cut Paste Clipboard History/ Repository Append to Clipboard Cut & Append to Clipboard Fast Copy Fast Move Block Off ...

Page 142

... ChipProg Device Programmers Replace Display Multi-file Search Results Display from line number... Set bookmark... Retrieve bookmark Condensed mode Condensed mode setup Line numbers on/off Return to last editing context 7.2.2.1 The Search for Text Dialog This dialog sets complex criteria and parameters for searching text in files. This dialog and the Replace Text dialog have a number of common parameters, which function in the same way in both dialogs ...

Page 143

Files in Project Include Dependency Files Search Wildcard(s) Search Subdirectories Starting Path Notes 1. When you search in the file opened in the Source 2. Multi-file search is performed in all source files of the project. Upon finishing, the Results ...

Page 144

... ChipProg Device Programmers 7.2.2.3 The Confirm Replace Dialog This dialog requires your permission to replace a found string. You can turn the prompt on/off by checking/ clearing the Prompt at Replace box in the dialog. Button Yes No Non-Stop Cancel Replace in All Files Move cursor to the Yes/No Buttons 7 ...

Page 145

Example: - find the word "Counter," which begins at the first column. $ The end of line. The characters preceding the '$' should be at the last positions of the line. Example: @ Match the next character literally; '@' lets ...

Page 146

... ChipProg Device Programmers 7.2.2.8 The Condensed Mode Setup Dialog This dialog sets up the parameters for the The Display Lines of Text area has radio buttons for switching between two alternative criteria for condensing text in the Source window: Containing String and Where First Non-blank Column Is: 1 ...

Page 147

Type names of the C language (char, Library function names of the C language (printf, strcpy, and so on). How to control Main menu > Configure>Editor Options> change the color for each construction the latter, use any of ...

Page 148

... ChipProg Device Programmers char Timer0 far ; char Timer1 far ; char Int0 far ; char Int1 far ; Assume the word "far" moved to the place right after the word "char" in each line. The stream blocks are of little help here. However the task can be easily done with one vertical block. Mark the persistent vertical block containing the word " ...

Page 149

To start the script debugging highlight its name in the and click the Debug button - the ...

Page 150

... The AutoWatches Pane The ChipProgUSB program displays a visible portion of the script in the Script window. The names of variables, called which belong to the visible script lines, are listed together with their current values in the right pane of the window. When you scroll through the Script window the contents of the AutoWatches pane automatically refreshes ...

Page 151

For better readability the Watches window can be divided in cells by vertical and horizontal grid lines. Enable the grids to be visible within the Watches window by checking the corresponding boxes in the Configure menu > Environment > Fonts ...

Page 152

... ChipProg Device Programmers Tabs Add Tab Remove Tab Edit Tab Name Global Debug/ Display Options Note. To make grids visible in the Watches window open the the Fonts tab and check corresponding boxes in 7.3.2.2 The Add Watch Dialog Use this dialog box to add symbol names (for example, a variable name or an expression) to the Watches window ...

Page 153

... References 8.1 Command line keys The ChipProgUSB can be launched from the command line with addition of optional keys (parameters) that vary the program default configuration and/or automatically executes some function. The command line mnemonic is: UPROGNT2.EXE /Key1 /Key2 ... , where each '/Key' parameter specifies a certain function as described in the table below. (more than one key can follow the executable file ...

Page 154

... Files. This key is used when some external application controls the programmer and the ChipProgUSB window should be invisible. The command line with the '/I' key starts the ChipProgUSB program but it works in the background. This key is similar to the '/I' key with the following addition - the program does not write error messages to the console buffer ...

Page 155

This error means that the project file does not exist on disk." 8.2.2 ...

Page 156

... ChipProg Device Programmers 5332 "/%s command-line option: Invalid file format tag" 5333 "Command line: unable to determine the file format" 4104 "Command-line option /I ignored because /A option is not specified" 8.2.5 Error Programming option 6409 "Invalid programming function or menu name:\n'%s'" 6410 "Invalid programming option name '%s'" ...

Page 157

Error programmer hardware 6546 "Source area does not fit into destination address space" 4005 "Attempt to read memory beyond buffer end: Addr = %s, len = %u bytes" 6988 "Unable to establish connection with programmer hardware. Please check if:\n\n" ...

Page 158

... ChipProg Device Programmers 8.2.12 Error check box 6852 "Error in check box option specification string: '=' expected" 6853 "Cannot find check box option string '%s'" 8.2.13 Error mix 5195 " Number of repetitions cannot be zero" 5206 "The 'View only' option is on; editing disabled. Click the 'View' button on toolbar to enable editing." ...

Page 159

If you enter a variable name, the result of the expression will be the variable’s address but not the value of the variable. If the dialog expects a number to be entered, the expression’s value will be interpreted as ...

Page 160

... ChipProg Device Programmers < <= > >= == & && = The types of operands are converted in accordance with the ANSI standard. The results of logical operations are 0 (false (true). Allowed type conversions: Operands can be converted to simple types (char, int, ... float). The word "struct" is not necessarily (MyStruct *). ...

Page 161

... Member1 -> a[i] *p *((char *)ptr) 8.4 Script Language ChipProgUSB The program batch files. The main objective of script files is to automate usage of the emulator. Using script files makes it possible to load programs, set up breakpoints, start program execution, manipulate windows and perform any actions available to you in automatic (batch) mode also possible to display various ...

Page 162

... ChipProg Device Programmers Script Language Built-in Variables Difference Between the Script Language and the C Language Alphabetical List of Script Language Built-in Functions and Variables 8.4.1 Simple example This example shows how to load a file and automatically program it and display the result. #include <system.h> ...

Page 163

Built-in Functions The script file system provides you with a large set of built-in functions intended for work with lines, files, for mathematical calculations, and access to the processor resources. The system.h file contains descriptions of these built-in functions. ...

Page 164

... ChipProg Device Programmers Text editor built-in variables: InsertMode CaseSensitive WholeWords RegularExpressions BlockCol1 BlockCol2 BlockLine1 BlockLine2 BlockStatus CurLine CurCol LastFoundString Miscellaneous variables: WorkFieldWidth WorkFieldHeight ApplName[] DesktopName[] SystemDir[] errno _fmode MainWindowHandle NumWindows WindowHandles[] SelectedString[] LastMessageInt LastMessageLong 8.4.5 Difference between the Script and the C Languages The script files are written in a C-type language and you should not expect it to meet standards ...

Page 165

Pointers to functions are not supported. If necessary, a table call can always be replaced with the switch operator. Multidimensional arrays are not supported necessary, you can write a ...

Page 166

... ChipProg Device Programmers 8.4.6 Script Language Built-in Functions and Variables The list below includes all the names of the script language built-in functions and variables: AllProgOptionsDefault API ActivateWindow AddButton AddWatch BackSpace BlankCheck BlockBegin BlockCol1 BlockCol2 BlockCopy BlockDelete BlockEnd BlockFastCopy BlockLine1 BlockLine2 ...

Page 167

Eof Eol ExecFunction ExecMenu ExecScript ExitProgram Expr FileChanged FillRect FindWindow FirstWord FloatExpr ForwardTillNot FrameRect FreeLibrary GetByte GetDword GetFileName GetLine GetMark GetProgOptionBits GetProgOptionFloat GetProgOptionList GetProgOptionLong GetProgOptionString GetScriptFileName GetWindowHeight GetWindowWidth GetWord GotoXY InsertMode Inspect InvertRect LastChar LastErrorMessage LastEvent LastEventInt{1...4} LastFoundString LastMessageInt LastMessageLong ...

Page 168

... ChipProg Device Programmers LoadLibrary LoadOptions LoadProgram LoadProject MainWindowHandle MaxAddr MessageBox MessageBoxEx MinAddr MoveTo MoveWindow OpenEditorWindow OpenStreamWindow OpenUserWindow OpenWindow Polyline ProgOptionDefault Rectangle RedrawScreen RegularExpressions ReloadProgram RemoveButtons Right SaveData SaveDesktop SaveFile SaveOptions Search SearchReplace SelectBrush SelectFont SelectPen SelectedString[] SetBkColor SetBkMode SetByte SetCaption ...

Page 169

SetToolbar SetUpdateMode SetWindowFont SetWindowSize SetWindowSizeT SetWord SystemDir[] TerminateAllScripts TerminateScript Text Tof Up UpdateWindow VerifyAfterProgram WaitEprTrue WaitGetMessage WaitSendMessage WaitWindowEvent WholeWords WindowHandles[] WindowHotkey WordLeft WordRight WorkFieldHeight WorkFieldWidth _GetWord _ff_attrib _ff_date _ff_name _ff_size _ff_time _fmode _fullpath _printf abs acos asin atan atoi ceil ...

Page 170

... ChipProg Device Programmers creat creatnew creattemp delay difftime eof errno exec exit exp fabs fdopen feof ferror fflush fgetc fgets filelength fileno findfirst findnext floor fmod fnmerge fnsplit fopen fprintf fputc fputs fread freopen frexp fscanf fseek ftell fwrite getc ...

Page 171

gettime inport isalnum isalpha isascii isatty iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit lock locking log log10 lseek ltoa memccpy memchr memcmp memcpy memicmp memset mkdir movmem mprintf open outport outportb peek peekb poke pokeb pow pow10 printf ...

Page 172

... ChipProg Device Programmers putw rand random randomize read rename rewind rmdir scanf searchpath setdisk setftime setmem setmode sin sprintf sqrt srand sscanf stpcpy strcat strcmp strcmpi strcpy strcspn strlen strlwr strncat strncmp strncmpi strncpy strnicmp strnset strpbrk strrchr strrev strset ...

Page 173

... In-System Programming for different devices NOTE! Always carefully check connecting your ChipProg programmer to the target. Wrong connecting may and probably will cause destruction of the programmer's and/or the target system's hardware. Most embedded microcontrollers have different algorithms for the ISP procedure. See the following ...

Page 174

... If the system has its own built-in clock generator then make sure that the clock line of the ChipProgis not connected to the clock input pin of the target microcontroller, otherwise it may destroy either the target or programmer hardware. What you need in this case is just to enter a value of the generator clock frequency in the Algorithm Parameters > ...

Page 175

... If the target system does not have its own built-in clock generator then, the target device needs to get clocks from the ChipProg built-in generator; thus the clock output wire of the cable- adapter should be connected to an appropriate clock input pin of the target device. ...

Page 176

... Buffer Dump window Buffers dialog memory allocation - C - Calculator dialog Check Blank check box Checksum 104 ChipProg 134 main menu ChipProg programmers ChipProg-40 brief characteristics bundle 83 hardware characteristics software characteristics © 2010 Phyton, Inc. Microsystems and Development Tools 150 150 174 89 147 ...

Page 177

... ChipProg-48 32 brief characteristics 16, 21 bundle 15 hardware characteristics software characteristics 17 ChipProg-G4 34 bundle 20 hardware characteristics software characteristics 22 ChipProg-ISP 35 brief characteristics 25 bundle 23 hardware characteristics software characteristics 25 Colors 52 tab 52 Command-Line Parameters 153 Commands menu 58 Commands Menu 58 Condensed Mode 145 Condensed Mode Setup dialog 146 Configurating Editor ...

Page 178

... How to start a script file 148 How to write a script file 139 - I - I/O Stream window 153 ICP 9 Insert DIP in socket 83 Install ChipProg 27 Install the ChipProg Software Installing the USB Drivers 29 In-System programming 102, 173 Introduction 9 Invalid block Array 89 Spare area 89 Invalid Block Indication IB displaying ...

Page 179

... Program Manager Auto Programming dialog Operation Progress window Programmer ChipProg-40 ChipProg-48 ChipProg-G4 ChipProg-ISP work with Programmers ChipProgUSB comparison characteristics Programmers ChipProg-40 Programmers ChipProg-48 87 Programmers ChipProg-G4 Programmers ChipProg-ISP Programming 87 check blank configure the device duplicate a device 92 edit Information erase load the file ...

Page 180

... ChipProg Device Programmers - Q - Quick Start 27 Quick Watch enabled 54 Quick Watch Function 147 - R - Read a Device 86 Regular Expressions search for 144 Replace Text dialog 143 Repository 43 Reserved Block Area 89 Reserved Block Area Parameters RBA 97 RBA parameters 97 Reserved Block Area 97 Run ChipProg Save file from buffer ...

Page 181

User area Number of blocks 96 Start block 96 User Block Area Bad blocks 89 Block reservoir 89 Invalid blocks 89 RBA 89 UBA 89 User Interface overview Verify programming 86 View 41 View Menu 41 ...

Page 182

Back Cover ...

Related keywords