libftdi Archives

Subject: Re: AW: only two of four SPI modes supported by FT4232H??

From: Berni Joss <berni.joss@xxxxxxxxxx>
To: stefan harjes <stefanharjes@xxxxxxxx>
Cc: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Sun, 20 Feb 2011 10:13:08 +0100
On Sat, Feb 19, 2011 at 01:39:57AM +0000, stefan harjes wrote:
> I think this problem seems to originate form some sort of miss understanding. 
> SPI defines four modes, each with its own data in and data out. So your 
> listing 
> mentions only two SPI modes. 


On FT2232H I have on hand, I can get all four SPI polarity combinations by
sending the following commands to the MPSSE:

80 00 db 11 ....   CPOL=0, CPHA=0 => mode 0
80 00 db 10 ....   CPOL=0, CPHA=1 => mode 1
80 01 db 11 ....   CPOL=1, CPHA=0 => mode 2
80 01 db 10 ....   CPOL=1, CPHA=1 => mode 3

Notice I change the value of the TCK/SK pin before sending the clock bytes 
command.

Kind regards,
Berni

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread