On 01/20/2011 12:28 PM, Teemu Peltola wrote:
Hi,
I have FT4232H Mini Module connected to PC via USB and I am trying to
use libftdi version 0.18 with Kubuntu 10.04. When I modify
examples/bitbang.c to have correct USB VID and PID (0x0403, 0x6011) for
4232 and to use ftdi_read_pins to read pin values after write, I get the
following output (I have uninstalled ftdi_sio and usbserial drivers):
$ sudo examples/bitbang
ftdi open succeeded: 0
enabling bitbang mode
turning everything on
turning everything off
fe after write: pins: 000000ff
fd after write: pins: 000000ff
fb after write: pins: 000000ff
f7 after write: pins: 000000ff
ef after write: pins: 000000ff
df after write: pins: 000000ff
bf after write: pins: 000000ff
7f after write: pins: 000000ff
If I try to use other ports by calling e.g. ftdi_set_interface(&ftdic,
INTERFACE_B) after ftdi_init, the result is same.
Any ideas what could be wrong? Does FT4232H require some special
initialization in examples/bitbang.c? Does anyone have some sample code
for bitbang with 4232?
This was a wiring issue, when I configured the pins for USB Bus-Powered
mode, this works. So this was not a libftdi issue.
BR,
Teemu
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|