FTDI Community

General Category => General Discussion => Topic started by: Arsen on March 14, 2024, 07:34:33 AM

Title: Question
Post by: Arsen on March 14, 2024, 07:34:33 AM
What the  difference between these two approaches for device configuring process:
1.
FT_60XCONFIGURATION oConfigurationData = {0};
FT_GetChipConfiguration(HandleFtdi, &oConfigurationData);
if (oConfigurationData.ChannelConfig != CONFIGURATION_CHANNEL_CONFIG_1 ) {
    oConfigurationData.ChannelConfig = CONFIGURATION_CHANNEL_CONFIG_1;
    FT_SetChipConfiguration(HandleFtdi, &oConfigurationData);
}

2.ftStatus = FT_EnableGPIO(ftHandle, 0x1, 0x1); //??
    ftStatus = FT_WriteGPIO(ftHandle, 0x1, 0x1);
Thank You !!!
Title: Re: Question
Post by: FTDI Community on March 14, 2024, 10:52:13 AM
Hi,

Number 1 is just the general configuration of the device. Number 2 is to enable the GPIOs. Have a look at section 3.1 of AN_412 FT600/FT601 Bridge Chips Integration (https://ftdichip.com/wp-content/uploads/2020/08/AN_412_FT600_FT601-USB-Bridge-chips-Integration.pdf).

This goes over the configuration modes of FT600 with section 3.1.5 focusing on the GPIO configuration.

We have a FT60x configuration programmer that you can use. You can find it here (https://ftdichip.com/utilities/l) along with the AN_370 FT60X Configuration Programmer User Guide (https://ftdichip.com/wp-content/uploads/2020/08/AN_370-FT60X-Configuration-Programmer-User-Guide.pdf).

Best Regards
FTDI Community