How to read/write to I2C via C# dot.Net Application

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello,

   

I'm about to implement a software (C# Windows Application) to communicate with my I2C Hardware via a CY7C68013a.

   

I started using the CYUSB.dll and was able to find the USB Device. Unfortunately I'm stocked now.

   

How can I implement a I2C transaction between my software and the hardware?
Do you have a example for this?

   

 

   

Thanks a lot
Best regards from germany

   

Bernhard Waechter

0 Likes
3 Replies
Anonymous
Not applicable

Hi,

   

Tne I2C Transfer can be done using Vendor requests. Refer to the Control Center C# source code for how to implement vendor requests. Your FX2LP Firmware should be able to handle vendor requests and perform I2C Transfers,

   

Regards,

   

-Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hello Madhu,

   

thanks for your fast reply. I already got it working with using Vendor Requests.

   

We can close this ticket.

   

Thanks a lot
Regards Bernhard

0 Likes

Good day, if possible can I see your I2C code or example of your I2C code (i.e. how to implement vendor requests to perform I2C)?

Greatly appreciated

Fawwaz Hosein

0 Likes