Re: FTDI2232D & SPI



On Fri, 30 May 2008 09:40:17 +0100, "Bill Davy" <Bill@xxxxxxxxxxxxxxx>
wrote:

I've been trying to get this working so far without success. I'm just
wondering if anyone else has. Our particular requirement is for the 2232 to
act as a master to a SiLab MCU acting as a slave. All transactions are
bytes. I've not got so far as worrying about CLKPOL or CLKPHA - right now,
when I ask the 2232 to send data, SCK waggles like a good 'un, with small
gaps at byte boundaries, but the bytes I send do not appear on DO (or DI)
which may make a transition at byte boundaries (but never during the byte as
I'd like).

I am confident we are in MPSSE mode because when I send 0xAA, I do get 0xFA
0xAA back.

I have checked each output bit individually to make sure they can be high
and low.


We are not using CS as this is a hard-wired point-to-point connection.


We are actually using the 2232 in a DLP-2232M-G for prototyping.

Programmed in C++, it is pretty simple code and (frankly, but I would say
this), I do not think this is where the problem is. I've listed what I am
sending and it all looks good. But is there something I may have missed?
Is there any set-up I could have missed (I do FT_ResetDevice() and then
SetBitMode(2) to get it into MPSSE mode and as I say above, I am confident
this has been successful).


I use a dlp2232 to read the CID block from an SD card using SPI. Works
a treat. THe only grief I had was getting the right data to the SD
card! Everything I sent to the 2322 went out the SPI port as expected.

Are you using the DLL and examples provided by FTDI? Thats what I did.
Ended up using c# in the end, but the c++ examples work a treat.
.



Relevant Pages

  • Re: Bloody wimmin ...
    ... > Muggins, confident of her success, arrives home with card, box of ...
    (uk.rec.motorcycles)
  • Finally made the purchase of an A520
    ... For now, there'll be a lull. ... batteries from Thomas Distributing and a Sandisk 256M SD card with a ... card reader from B&H Photo. ... pretty confident that I've made the right choices, ...
    (rec.photo.digital)
  • Re: Which websites dont surcharge credit cards?
    ... in the USA and be confident that you would not be charged. ... be reasonably confident that you will be charged, ... I was talking about using one American bank's card in another ... American bank's machine. ...
    (uk.railway)
  • Re: Standard API fflush() not working on SD card?
    ... How did you make sure that you have written in to sd card. ... I am confident that this api should work with SD. ... When you writing at the same time try to verify the location of file ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Speed information on SD card FAT
    ... Where can I find the speed information of a SD card on its FAT? ... on the SPI port as far as I remember. ...
    (comp.arch.embedded)