# ******************************************************************************
#   PRECMA S.r.l.  -  Electronic Engineering  -  http://www.precma.com
#       Progettazione Elettronica Controlli di Macchine Automatiche
#
# LPC900 Programmer
# ICP LPC900 family microcontrollers programmer
#
# Fausto Marzoli - faumarz@8052.it
# Copyright (C)2005-2007 PRECMA S.r.l. - http://www.precma.com/
# ******************************************************************************

This program is distributed under the GNU GPL license, for Windows and Linux.

Using perl module Device::SerialPort (http://sendpage.org/device-serialport/)
or Win32::SerialPort (http://members.aol.com/Bbirthisel/alpha.html)

To install the module, download it the run "perl Makefile.PL" and "perl install.pl".
Under Windows I used Active Perl with the optional module Win32/API (you can install it with the Active Perl Package Manager). Under Windows you can use the executable aduc8xx.exe, without the need to have perl installed.

Made to work with "PRECMA LPC900 ICP/ISP Programmer", but can work with any other ISP system, too (using --isp option).
Developed under Linux (SuSE 9.2 and 10.0); works with Windows, too.
It has been reported to be working with FreeBSD.

Accept and intelligently use multiple options. For example, you can power on, blank, program, read crc and power off the LPC device with one single command:
# lpc900.pl --pon --poff --echip --program dummy.hex --gcrc --scrc 0 7

PRECMA LPC900 Programmer hardware connects to your USB port, but appears to your system as a Virtual Com Port, that is a virtual RS232 emulated port.

When using lpc900.pl the first time, you will be asked for using the --port option. After the first successful using of the --port option, lpc900.pl writes its configuration in a hidden file named .lpc900.cgf in your home dir.
Under Linux, usually the port to be used is /dev/ttyUSB0 or something like this (be sure to have the rights to access the port!). Under windows should be COM5 (or COM2, or COM3 or something similar: check which new port you find when you connect the PRECMA LPC900 Programmer).

Under Linux you won't have to install any driver: all the necessary drivers are currently included in the kernel.
Under Windows you will have to install the VCP (Virtual Com Port) Drivers for PRECMA LPC900 Programmer that you will find on the http://www.precma.com website.
The PRECMA LPC900 Programmer USB interface is based on the FTDI FT232BM chip, so if you want to know deeper how it works you can go directly on the FTDI website http://www.ftdichip.com/




