FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  


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: Question about FT4222 GPIO pin  (Read 3058 times)


  • Newbie
  • *
  • Posts: 3
    • View Profile
Question about FT4222 GPIO pin
« on: June 28, 2018, 02:37:06 AM »

Consider these 3 successive function calls:

FT4222_GPIO_Write(ftHandle, GPIO_PORT0, 0);
FT4222_GPIO_Write(ftHandle, GPIO_PORT0, 1);
FT4222_GPIO_Write(ftHandle, GPIO_PORT0, 0);

This is how I output a pulse in GPIO pin 0. The logic analyzer shows that when I do this, the GPIO port 0 signal remains high for 200 us which is too long for my app. How can I control for how long the signal will be 1?


FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 692
    • View Profile
Re: Question about FT4222 GPIO pin
« Reply #1 on: June 28, 2018, 10:18:31 AM »

Hello Josh,

The GPIO Library functions were not designed to provide specific pulse widths, there were design to be as general purpose as possible. In fact each Library function call is likely to be sent to the IC in a separate USB frame, of which the minimum frame time is 125uS for a High Speed Device. This will be the cause of the 200uS pulse you are seeing on your logic analyser.

The follow Application Notes may be helpful.
What is USB:

FTDI USB Data Transfer Efficiency:

Data Throughput, Latency & Handshaking:

Optimising D2XX Data Throughput:

Best Regards,
FTDI Community