libftdi Archives

Subject: Re: I2C MPSSE

From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 30 Apr 2018 19:29:01 +0200
>>>>> "Rene" == Rene Doss <doss@xxxxxx> writes:

    Rene> Hallo,

    Rene> I what to use my FT2232H for a I2C Master. Should be a simple task
    Rene> with the following

    Rene> 
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjUvr7M-OHaAhUILFAKHd_MDvIQFggqMAA&url=http%3A%2F%2Fwww.ftdichip.com%2FSupport%2FDocuments%2FAppNotes%2FAN_255_USB%2520to%2520I2C%2520Example%2520using%2520the%2520FT232H%2520and%2520FT201X%2520devices.pdf&usg=AOvVaw0oXv754fyrRV5xnAl7nnz4

    Rene> This document descibe what I need.

But only for FT232H and FT201X! Only these chips can tristate DO!

With FT2232H you need some tristate buffer, like a 74xx126 in the DO data
path and controll the tristate signal with some additional XXBus signal.
But with the MPSSE machine and the  Set Data bits XXXByte this can be done
easy.

The needed  3 phase data clocking is already available  on the FT2232H


    Rene> I have written some code and
    Rene> see the I2C message on my oscilloscope.  Thats so nice.  But I get
    Rene> not the NACK it is allways an ACK. (no slave in the bus).

    Rene> Now is in in the function SendByteAndCheckACK() a function calls
    Rene> FT_GetQueueStatus.

    Rene> ftStatus = FT_GetQueueStatus(ftHandle, &dwNumInputBuffer);

    Rene> I do not see the function FT_GetQueueStatus in libftdi. Has this
    Rene> an other name?  Or use FTDI an other polling mechanismus?

See above!

Bye
-- 
Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

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

Current Thread