181
Discussion - Hardware / Re: FT4232H What controls the PWREN# pin
« 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
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