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: How can I read the direction of a particular GPIO pin?  (Read 8085 times)

Slava

  • Newbie
  • *
  • Posts: 5
    • View Profile
How can I read the direction of a particular GPIO pin?
« on: March 27, 2023, 11:58:38 AM »

Hello,

How can I read the direction of certain FT4232H GPOIs that have been configured by another application?

Let's say one application has configured ADBUS7 as an output with a specific value. Now in another application, I need to change the value of ADBUS6 without changing anything in ADBUS7. To do this, first I need to change the direction of ADBUS6 to output and I don't know how to do it without affecting ADBUS7. If I could check the direction of other pins, I would be able to change only one bit in this value and to set the result to FT_SetBitMode(). Please help!

Thanks,
Slava
Logged

FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 892
    • View Profile
Re: How can I read the direction of a particular GPIO pin?
« Reply #1 on: March 27, 2023, 04:07:48 PM »

Hi,

Please see the below application notes that should be able to help. They are for different products, but the same principles apply.

Bit Bang Modes for the FT232R and FT245R
AN_373 Bit-Bang Modes for the FT-X Series

Best Regards

FTDI Community
Logged

Slava

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How can I read the direction of a particular GPIO pin?
« Reply #2 on: March 29, 2023, 10:11:18 PM »

Hi,

Thanks for the information provided. Can you point me to a specific page/paragraph in these documents that answers my question? I seem to know how the Bit Bang mode works in general.

Regards,
Slava
Logged