From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview FT2232H SPI MODE 1

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.

0 Kudos
Message 1 of 2
(3,596 Views)

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

Peter Vago
0 Kudos
Message 2 of 2
(3,475 Views)