Skip to content

C-Elegans/prog89

Repository files navigation

prog89

A FT232x programmer for the atmel AT89S and LP series of microcontrollers. NOTE: This programmer requires your FTDI module to support MPSSE. It will not work with older or “low end” ftdi modules. Modules known to work:

  • FT232H
  • FT2232
  • FT4232

Usage:

prog89 -[eDUk] opts

	-e			 Run chip erase before programming
	-D			 Disable auto-erase when writing
	-d devicename            Select device
	-U memory:op:file:type
				 memory: flash|fuse|lock|signature
				 op: 
					 r: read
					 w: write
					 v: verify
				 file: filename or (when in immediate mode) raw data
				 mode: 
					 i: iHex
					 r: raw binary
					 m: immediate mode
					 h: hex (output only)
				 
				 Performs <op> on <memory> type using <file>\'s 
				 data in <mode> mode
				 
				 Example:
				 ./prog89 -U flash:w:code.hex:i 
					 # Writes the data in iHex file "code.hex" to flash
				 ./prog89 -U flash:r:out.bin:r
					 # Reads data from flash into binary file "out.bin"
				 ./prog89 -U fuses:w:ff00ff00ffff0000:m
				         # Writes '0xff00ff00ffff0000' to the fuses

Device Support

  • AT89LP213/4
  • AT89LP52 (Coming soon!)

Dependencies:

  • libftdi
  • libmpsse (included)

Building:

make
make install

Wiring:

Connect your FTDI dongle’s pins to the ISP pins on the AT89. This example uses an AT89LP213 and an FT232H.

FTDI PinNameAT89 PinName
13SCK2GPI7/SCK
14MOSI1GPI5/MOSI
15MISO14GPI6/MISO
16SS_n13GPI4/SS_n
17RST_n3RST_n
GNDGNDGNDGND

About

An AT89S/LP programmer for FTDI chips

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published