Application Note
AN_329 User Guide For LibFT4222
Version 1.5
Document Reference No.: FT_001060 Clearance No.: FTDI#406
4
Product Page
Document Feedback Copyright © Future Technology Devices International Limited
1 Introduction
The FT4222H is a USB interface device which supports SPI and I
2
C communication protocol. It is
accompanied with the support library “LibFT4222” based on D2XX, which provides high-level APIs
to facilitate user application development. At the time of writing support for Windows and Linux OS
has been published. Android support uses a different package also available from the FTDI website.
The FT4222H contains SPI/I
2
C configurable interfaces. The SPI interface can be configured as
master mode with single, dual, quad bits wide data transfer or slave mode with single bit wide
data transfer. The I
2
C interface can be configured as master or slave mode.
Figure 1.1 The Software Stack
Note that the Window, Linux and MAC OS version of LibFT4222 have D2XX and mini-boost built-in.
The LibFT4222 sample code, release notes, and all necessary files can be downloaded from the
FTDI website at: https://www.ftdichip.com/Products/ICs/FT4222H.html
The sample source code contained in this application note is provided as an example and is neither
guaranteed nor supported by FTDI.
User Application
LibFT4222
(SPI/I2C Library)
D2XX API
USB Bus driver
FTDI FT4222H chip