FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FT232H Configuration  (Read 8733 times)

kalesha

  • Newbie
  • *
  • Posts: 4
    • View Profile
FT232H Configuration
« on: May 23, 2022, 11:40:16 AM »

Hi,

I have a simple question related to FTDI Chip

How to change default configuration of FT232H chip (USB -> UART) to FT232H (USB -> SPI).Is there any API for changing configuration of FT232.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: FT232H Configuration
« Reply #1 on: May 23, 2022, 04:15:05 PM »

Hi,

To use the FT232H with SPI, the MPSSE engine is used. We have an example application using the FT232H with SPI. https://ftdichip.com/wp-content/uploads/2020/07/AN_180_FT232H-MPSSE-Example-USB-Current-Meter-using-the-SPI-interface.pdf.

Also, have a look at https://ftdichip.com/wp-content/uploads/2020/08/AN_135_MPSSE_Basics.pdf this shows the basics of how to activate and use the MPSSE engine.

Here some helpful documentation for MPSSE:

https://ftdichip.com/wp-content/uploads/2020/08/AN_108_Command_Processor_for_MPSSE_and_MCU_Host_Bus_Emulation_Modes.pdf
https://ftdichip.com/wp-content/uploads/2020/08/AN_178_User-Guide-for-LibMPSSE-SPI.pdf

LibMPSSE-SPI is the dedicated API for using the engine for SPI communication. we have a number of software examples to get you started. they can be found here https://ftdichip.com/software-examples/mpsse-projects/libmpsse-spi-examples/.

Best Regards,

FTDI Community
Logged

kalesha

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: FT232H Configuration
« Reply #2 on: May 24, 2022, 07:40:42 AM »

Hi,

Yeah I went through with all documents it said the configuration can be changed by setting FT_SetBitmode through d2xx commands.

But how to give those commands? Is there any API or any terminal to give commands

Note: I just want to change it's configuration to USB -> SPI, rest the interfacing part we have .bat files.
Logged

steve

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: FT232H Configuration
« Reply #3 on: May 24, 2022, 11:27:15 AM »

Hi Kalesha,

I think you have to configured SetBitMode 0x02 from d2xx file. This command will set your device for MPSSE mode.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 891
    • View Profile
Re: FT232H Configuration
« Reply #4 on: May 24, 2022, 03:16:32 PM »

Hi,

Yes, to enable MPSSE mode you need to set the bit mode to 0x02 using the FT_SetBitMode function. the MPSSE basics document i linked previously explains this. the set up the MPSSE. the LibMPSSE-SPI user guide explains the API and how it is built on the D2XX driver.

You can run the example code i linked on visual studio.

Best Regards

FTDI Community 
Logged