Discussion:
I2C MPSSE
Rene Doss
2018-04-30 12:10:44 UTC
Permalink
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=http%3A%2F%2Fwww.ftdichip.com%2FSupport%2FDocuments%2FAppNotes%2FAN_255_USB%2520to%2520I2C%2520Example%2520using%2520the%2520FT232H%2520and%2520FT201X%2520devices.pdf&usg=AOvVaw0oXv754fyrRV5xnAl7nnz4

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+***@developer.intra2net.com
Hannes Weisbach
2018-04-30 17:20:51 UTC
Permalink
Hi,

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

Best regards,
Hannes
Post by Rene Doss
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=http%3A%2F%2Fwww.ftdichip.com%2FSupport%2FDocuments%2FAppNotes%2FAN_255_USB%2520to%2520I2C%2520Example%2520using%2520the%2520FT232H%2520and%2520FT201X%2520devices.pdf&usg=AOvVaw0oXv754fyrRV5xnAl7nnz4
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.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Rene Doss
2018-04-30 17:54:35 UTC
Permalink
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

Loading Image...
Post by Hannes Weisbach
Hi,
silly question: did you put pull-ups on the bus lines?
Best regards,
Hannes
Post by Rene Doss
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=http%3A%2F%2Fwww.ftdichip.com%2FSupport%2FDocuments%2FAppNotes%2FAN_255_USB%2520to%2520I2C%2520Example%2520using%2520the%2520FT232H%2520and%2520FT201X%2520devices.pdf&usg=AOvVaw0oXv754fyrRV5xnAl7nnz4
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.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+***@developer.intra2net.com
Uwe Bonnes
2018-04-30 17:29:01 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...