MPSSE Example Projects

This page contains examples specific to the Multi-Protocol Synchronous Serial Engine (MPSSE) of the FT2232D, FT2232H, FT4232H and FT232H devices.

  • LibMPSSE-I2C (Recommended)
    FTDI have produced a newly updated library to handle all the MPSSE commands necessary to interface to a device using the I2C protocol.  A separate page has been created where the LibMPSSE library can be downloaded, along with code examples and release notes. The user guide is available as AN_177.
  • LibMPSSE-SPI (Recommended)
    FTDI have provided a new library to configure the MPSSE for emulating SPI. A separate page has been created where the LibMPSSE library can be downloaded, along with examples and release notes.  The user guide is available as AN_178.
  • FTCJTAG DLL (This code is no longer supported by FTDI)
    FTDI have also produced a DLL to handle all the MPSSE commands necessary to interface to a device using the JTAG protocol.  As with our FTCI2C DLL, a separate page has been created where the FTCJTAG DLL can be downloaded, along with code examples.

The MPSSE can be configured directly using D2XX commands.  The following examples on this page illustrate how to achieve this for several popular protocols:

Host Bus Emulation Mode

Overview

This is an example project that demonstrates using the FT2232D‘s Multi-Protocol Synchronous Serial Engine (MPSSE) controller to perform MCU host bus control of an AT-Bus.  The executable application and the full project code (in Delphi) are provided.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the Delphi source code for the application by clicking here.

USB to a JTAG TAP Interface using FT2232H

Overview

This example project for the FT2232H demonstrates how to use the device’s Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to JTAG TAP test chain interface.  The full project code is provided.

TI have a JTAG learning tool and accompanying abstract available on their website which is available for free download. Click here to visit the TI website.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the source code for the application by clicking here.

USB to JTAG Interface

Overview

This example project for the FT2232D demonstrates how to use the device’s Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to JTAG bus interface.  The executable application and full project code (in Delphi) are provided.

TI have a JTAG learning tool and accompanying abstract available on their website which is available for free download.  Click here to visit the TI website.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the Delphi source code for the application by clicking here.

USB to I2C Inteface using FT2232H

Overview

This example project for the FT2232H demonstrates how to use the device’s Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to I2C bus interface using the FT2232H.  The executable application and full project code are provided.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the source code for the application by clicking here.

USB to I2C Inteface

Overview

This example project for the FT2232D demonstrates how to use the device’s Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to I2C bus interface.  The executable application and full project code (in Delphi) are provided.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the Delphi source code for the application by clicking here.

USB to I2C

This is project is a free download containing source and executable to support AN_255.

The code will demonstrate connecting a FT232H in MPSSE mode to emulate an I2C master interface that interacts with the FT201X USB to I2C bridge.

USB to I2C in C#

This is project is a free download containing source and executable to support AN_411 FTx232H MPSSE I2C Master Example in C Sharp.

The code will demonstrate using the MPSSE feature of the FT232H, FT2232H and FT4232H devices to create a USB to I2C master device with a C# Visual Studio project. It uses a proximity sensor and an RGB colour sensor as I2C peripherals to create a system which can detect the presence of an object in close proximity and can then determine its colour.

USB to SPI Interface using FT2232H

Overview

This example project for the FT2232H demonstrates how to use the device’s Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to SPI bus interface using the FT2232H Hi_Speed device.  The executable application and full project code (in C++) are provided.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the C++ source code for the application by clicking here.

USB to SPI Interface

Overview

This example project for the FT2232D demonstrates how to use the devices Multi-Protocol Synchronous Serial Engine (MPSSE) to make a USB to SPI bus interface.  The executable application and full project code (in Delphi) are provided.

Requirements

This project is designed to run on Windows 2000 or Windows XP and requires FTDI’s D2XX drivers to be installed.

Download the project documentation and schematic in PDF format by clicking here.

Download the Delphi source code for the application by clicking here.

USB to SPI

Our thanks go to Bob Freeth for providing this VB6 example of using the FT2232D MPSSE for SPI communication with a MAX187 ADC.

Source code and executable are available for free download.  This code is provided “as-is” for illustration purposes only and as such neither FTDI or Bob Freeth provide technical support for this VB6 code.