07-30-2002 02:15 AM
07-30-2002 10:01 AM
09-19-2007 11:23 AM - edited 09-19-2007 11:23 AM
Message Edité par tigroo92 le 09-19-2007 11:36 AM
09-20-2007
06:11 PM
- last edited on
05-23-2025
01:16 PM
by
Content Cleaner
Hello Pascal,
Since you have posted to a five year old post, could you please be more specific with your actual question? To get you started, the Serial Instrument Control Tutorial and the Serial Communication Overview are very helpful.
Thanks,
Meghan
09-21-2007 04:35 AM
09-24-2007
11:57 AM
- last edited on
05-23-2025
01:17 PM
by
Content Cleaner
Hi Pascal,
There isn't any direct calls to make a serial port simulate I2C communication. I did notice that you said you were using a USB to Serial converter. If you are planning on using this you might look into the NI-USB-8451. It was made for I2C/SPI communication and has a documentation and function calls to do exactly what you are wanting to do. I thought this might be something you could look into while I am trying to find out more information about the possibilities of using Serial to communicate to an I2C device. Thanks
09-24-2007 12:11 PM
09-25-2007 01:21 PM
02-14-2008 08:08 AM - edited 02-14-2008 08:11 AM
10-09-2008 02:55 AM - edited 10-09-2008 02:56 AM
Hi,
Finally I succesfully tested a complete CVI program to talk I2C over an RS232 port.
I can't gives the code as is it for my job.
These are the performance obtained :
If a 1ms delay is added after each SDA or SCL, the SCL frequency is about 100Hz.
The SCL frequency may vary a lot with the processor and disk usage of the computer. I don't recommand a such solution if a lot of data have to be transmitted. But the RS232 to I2C circuit is cheap and perfect to command slows devices as LED, lamps, motors, or readslow variation of temperature and so on.
If you want a reliable I2C bus, you should look for the FDTI FT2232 chip (USB to 2 RS232). This compagny gives free DLL for create various protocols with this chip (JTAG, SPI, I2C), and allows fast communications, as you can adjust the clock line up to several MHz.
Regards, Pascal