1
Discussion - Software / initial value is wrong by using Read GPIO within LibMPSSE
« on: April 09, 2024, 04:17:38 AM »
Hi,
I got the issue that the FT_ReadGPIO read all bit values as high(255) after setting up the initial value as low(0) for all bits.
first, I set up the GPIO initial value as low and direction as input by FT_WriteGPIO(handle, 0, 0);
then, I use the FT_ReadGPIO(&read_value), I always get 255 when the GPIOH has no connection.
If I connect one of the GPIOH to the GND pin, the reading will change to low, it comes back high when removing the connection.
Is it the expected behavior of the GPIO within LibMPSSE?
My environment:
LibMPSSE version: 1.0.5
Device:232H
OS: Windows
Pin usage: SPI for GPIOL[0:3], GPIO for GPIOH[4]
Best Regards,
Tony
I got the issue that the FT_ReadGPIO read all bit values as high(255) after setting up the initial value as low(0) for all bits.
first, I set up the GPIO initial value as low and direction as input by FT_WriteGPIO(handle, 0, 0);
then, I use the FT_ReadGPIO(&read_value), I always get 255 when the GPIOH has no connection.
If I connect one of the GPIOH to the GND pin, the reading will change to low, it comes back high when removing the connection.
Is it the expected behavior of the GPIO within LibMPSSE?
My environment:
LibMPSSE version: 1.0.5
Device:232H
OS: Windows
Pin usage: SPI for GPIOL[0:3], GPIO for GPIOH[4]
Best Regards,
Tony