libftdi Archives

Subject: Re: I2C MPSSE

From: Rene Doss <doss@xxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 30 Apr 2018 19:54:35 +0200
Yes, I have Pullups.

I use this Board.
https://download.mikroe.com/documents/add-on-boards/click/ftdi/ftdi-click-manual-v100.pdf


projekt/I2C/FTDI/ftdi-i2c-master> sudo ./i2csend 0x60
Port opened, resetting device...
Got 2 bytes FA AA
FTDI synchronized
Sending C0
Received: 1, FA
Received ACK



This is the signal with a NACK

http://192.168.1.105/crt_print.png?update=Update




Am 30.04.2018 um 19:20 schrieb Hannes Weisbach:
Hi,

silly question: did you put pull-ups on the bus lines?

Best regards,
Hannes

Am 30.04.2018 um 14:10 schrieb Rene Doss <doss@xxxxxx>:




Hallo,

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

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="">

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

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

ftStatus = FT_GetQueueStatus(ftHandle, &dwNumInputBuffer);

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

René Doss




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


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




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


Current Thread