Short: PIC16 development package Author: rdc@cyberstorm.mtu-net.ru (Denis I.Sotchenko) Uploader: rdc@cyberstorm.mtu-net.ru Version: 1.2 Type: dev/cross Replaces: dev/cross/devpic.lha Current version of this package contains: picprog - simple CLI-based PIC16 «development» programmer picasm - AmigaOS port of PIC12/16 assembler by Timo Rossi Both tools have full C source code, ready for SAS/C 6.58 recompile. Binaries for 68000 included. You can recompile it for your CPU. Included picasm version has some differencies from original 1.06 version: some bugfixes and full PIC12/16 line support (from Microchip Product Line Card 3Q1999). picprog supports all current PIC16 Flash microcontrollers: PIC16C8x, PIC16F8x, PIC16F62x, PIC16F87x. It was really tested and works with PIC16F84 and PIC16F876. It has intelligent programming algorithm - before location programming it will read old value and will program location only if it is different. As a result, programming of new version of code may take only some milliseconds. Additionally, picprog has SmartFlash algorithm, usable for new (PIC16F84A and others) Flash PICs. If it will be enabled, picprog reads all code in temporary buffer and calculates time for two programming modes: erase programming cycles, and bulk erase and programming only cycles (programming only cycle for 16F87x is 2ms, erase programming - 4ms). If there are only some differencies (for example, if you compile new version of code with only one new constant), erase programming cycle will be performed. If there are MANY differencies (new commands at begin of program), picprog will erase all code (Bulk Erase command) and program chip by faster Programming Only commands. At result, new picprog may program new Flash PIC16 up to 5 (five) times faster than old picprog and some other programmers. Usage: picprog FILE [FORCE=xxxx] [CONFIGWORD=xxxx] [VERIFY] [SMARTFLASH=n] FILE - object file in Intel Hex format, generated by picasm or any other PIC assembler. FORCE - configuration word. It will be programmed ONLY if FORCE keyword presents. If PIC has code protection turned on, it will be turned off and code EEPROM will be cleared. This config word MUST NOT contain code protection bits! CONFIGWORD - this configuration word will be written after programming of code. It is the only way to do code protect. SMARTFLASH - enables SmartFlash algorithm as described above. Argument is number of milliseconds required for Programming Only cycle (5ms for PIC16F8xA, 2ms for PIC16F62x and PIC16F87x). SmartFlash DOES NOT WORK WITH PIC16C84 and PIC16F84! VERIFY - additional verify cycle for better reliability. Configuration word must be entered in decimal form. You can find configuration word formats in PIC programming specifications may be found on Microchip website or free Microchip Technical Library CD-ROM. picprog uses the same hardware that popular EPIC. This is simple device in parallel port. Included picasm package contains own documentation. Both programs are tested on: Amiga 1200 Amiga 1200, Blizzard 1230, 32M RAM Amiga 1200, Blizzard 1260, 33M RAM, SCSI System requirenents: OS 2.x History: version 1.2 - code protecting support - SmartFlash algorithm - all hardware support moved to separate section of source code - bug fixed: parallel port hardware was not correctly allocated - only 68000 binaries included: no speed differencies was found version 1.1 - first Aminet release Future versions will have: - more devices support (OTP/UW) - MUI GUI - debugger (maybe) picprog is FREE and PUBLIC DOMAIN. You can use it and source code for any puproses, incliding commercial use. picasm has own license. Intel is a registered trademark of Intel Corporation Microchip, PIC and ICSP are registered trademarks of Microchip Technology Inc.