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: FT4232H What controls the PWREN# pin  (Read 889 times)

igget76

  • Newbie
  • *
  • Posts: 2
    • View Profile
FT4232H What controls the PWREN# pin
« on: March 25, 2022, 01:28:58 PM »

We are using a FT4232H USB to serial bridge in one of out boards. We are using it in MPSSE mode. We would like to let some logic drive switches to disconnect the I2C and SPI buses connected to the FT4232H when the device is not in use.

I see that the PWREN# pin may be used for this purpose. As I can see from the datasheet and application notes, the PWREN# pin is low when the device has been configured by the USB host.
What exactly does it mean that the device has been configured? Does it mean that power has been enabled and no command has been sent over USB? Is it the time between power-on/reset and the initial USB communication or configuration commands? As i understand the device will start up in UART mode. Is this state considered to be configured?
Anyone have some insight into the distinctions here?

I see that the pin changes state in USB suspend mode. This is not so interesting for this application. I would like PWREN# to go low when MPSSE mode has been initiated.
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
    • View Profile
Re: FT4232H What controls the PWREN# pin
« Reply #1 on: March 28, 2022, 04:44:19 PM »

Hello,

PWREN# will go low when the device is enumerated by the Host and it may change state is the device goes into suspend mode.

As you are looking for functionality to toggle when MPSSE mode has been initiated, you could consider using one of the I/O pins as GPIO in MPSSE mode. So your software could toggle a pin after you enter MPSSE mode.

See AN_411 FTx232H MPSSE I2C Master Example in C which demonstrates GPIO usage with MPSSE (not using LibMPSSE).
This could be used as a base to understand using both I2C/GPIO in the same code.
OK this example is for I2C but the same principles apply to SPI.

More information can be found in AN_108 Command Processor For MPSSE and MCU Host Bus Emulation Modes.

Best Regards,
FTDI Community
Logged