10-13-2011 05:31 AM
Hi
i`m working with FT2232h and Labview. I updated library in Labview to dll version 2.0.0 (FTCSPI.dll). Everything seems working until I want to set SPI MODE 1. That`s CPOL=0 and CPHA=1. From what I know:
CPOL - in PFTC_INIT_CONDITION structure ClockPinState bit and should be 0
CPHA - ClockOutDataBitsPosEdge bit and should be 1
with that configuration I always get FTC_STATUS=51 which is FTC_INVALID_INIT_CLOCK_PIN_STATE. Any thoughts what might be wrong? Maybe someone was working with the same setup?
My library and main program in attachment.
Thanks.
11-03-2011 08:47 AM
Hi,
Have you already found the solution?
I was searhing for some information in this file: http://www.ftdichip.com/Support/Documents/ProgramGuides/FTCSPIPG10.pdf
I found that the Status 51 means another error: FTC_INVALID_CONFIGURATION_HIGHER_GPIO_PIN
Otherwise, I have not worked with these setup...I am just wondering if you managed to do it.
Regards,
Peter