1
Discussion - Hardware / FT260 GPIO initial output state
« on: August 20, 2021, 10:57:32 am »
Hello. I'm trying to utilize the GPIO features of the FT260. One thing I have noticed is that when I configure the GPIO as outputs, it seems to be completely random whether or not they initially output as a '1' or a '0'. This makes it very hard to ensure proper GPIO sequencing.
Here are the things I have tried to combat this: 1) I've tried calling FT260_GPIO_Write before calling FT260_GPIO_SetDir, but the status field returns FT260_GPIO_WRONG_DIRECTION, and it simply doesn't have an effect. 2) I've tried calling FT260_GPIO_Set before calling FT260_GPIO_SetDir, and I get the FT260_OK status, but the values don't seem to "stick" until I have already enabled the outputs...
Any suggestions on how to ensure a specific initial output state?
Here are the things I have tried to combat this: 1) I've tried calling FT260_GPIO_Write before calling FT260_GPIO_SetDir, but the status field returns FT260_GPIO_WRONG_DIRECTION, and it simply doesn't have an effect. 2) I've tried calling FT260_GPIO_Set before calling FT260_GPIO_SetDir, and I get the FT260_OK status, but the values don't seem to "stick" until I have already enabled the outputs...
Any suggestions on how to ensure a specific initial output state?