Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2023 13:01:29 +0100
From:      Tomek CEDRO <tomek@cedro.info>
To:        Olivier <Olivier.Nicole@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Driver for FT232H
Message-ID:  <CAFYkXj=FUVXHug4LegDG9ZYXn8aUfFjnOWZuskPU=Q-RUyY2XQ@mail.gmail.com>
In-Reply-To: <wu7cz5l9l82.fsf@banyan.cs.ait.ac.th>
References:  <wu7cz5l9l82.fsf@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 7, 2023 at 6:36=E2=80=AFAM Olivier <Olivier.Nicole@cs.ait.ac.th=
> wrote:
> Hi,
> I was watching a video about the adapter FT232H that permits to have
> GPIO ports on a PC.
> All documentation I could find is mentioning Python.
> I am wondering if there is any library that could use such adapter in C?
> Best regards,
> Olivier

devel/libftdi1
devel/libftdi

https://www.ftdichip.com/old2020/Products/ICs/FT2232H.html

it can work in "bitbang mode" that resembles parallel port read write,
and "mpsse" multi purpose serial engine than can clock in/out some
series of bytes so you can build a serial bus adapter (i.e. spi, i2c,
etc) that is faster than bitbanging the bus.

note voltages on your target and absolute maximum ratings of the chip.

note usb latency that limits the possible operations speed.

have fun! :-)

--=20
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXj=FUVXHug4LegDG9ZYXn8aUfFjnOWZuskPU=Q-RUyY2XQ>