Open hardware USB microcontroller interface/programmer with FT2232H
I have designed a little board with FT2232H, which expands its I/O pins to 2.54mm headers
and provides also connections for programming of Atmel AVR and ARM LPC microcontrollers.
The schematics is
usbinterface.pdf and open hardware Kicad
design files are
usbinterface.zip .
For programming AVR, I had some troubles with Avrdude and this chip, so I am using a modified version
of UISP
source code here. Original UISP source code is
here.
Port /dev/ttyUSB0 is connected to the
serial port of the MCU, while /dev/ttyUSB1 is used by bit banging for the programming:
uisp -dlpt=/dev/ttyUSB1 --upload --verify if=program.hex -dprog=dasaneg -v=3 --hash=12
For programming ARM LPC chips, I use the standard (unmodified)
lpc21isp program (v. 1.85), which communicates via /dev/ttyUSB0 with the
serial port of the MCU, together with
a little utility
portcontrol.c which uses /dev/ttyUSB1 to toggle the bit PIO0_1 bit which activates
the bootloader on reset:
portcontrol -D /dev/ttyUSB1 -d .01 -W 310
lpc21isp -NXPARM program.hex /dev/ttyUSB0 115200 14746
portcontrol -D /dev/ttyUSB1 -d .01 -W 2
My Electronics page
My hobby page
My main page with e-mail contact
TOP of my family pages