09-12-2014 06:31 AM - last edited on 03-21-2024 02:21 PM by Content Cleaner
is it possible to implement I2C slave on the kit NI USB 7845R (https://www.ni.com/en-us/shop/model/usb-7845.html)?
Solved! Go to Solution.
09-15-2014 07:45 AM - last edited on 03-21-2024 02:22 PM by Content Cleaner
Good morning Nilton,
Yes, it's possible but requires knowledge on the communication protocol implemented.
Below you can find some examples, and other interesting information related. Most examples will require small changes and FPGA recompilation to work in your target:
https://www.ni.com/en/support/downloads/tools-network/download.spi-and-i2c-driver-api.html
https://forums.ni.com/t5/Examples-and-IP-for-Software/I2C-IP/ta-p/3491271
https://forums.ni.com/t5/Example-Code/I2C-Bus-Communication-Example-Using-LabVIEW-FPGA/ta-p/3996143
Regards,
09-17-2014 09:01 AM
thanks, I bougth the kit usb 7845 recently, so still waiting for it to get delivered.
by the way, I am also from brazil XD.
10-24-2014 03:32 AM
Hi,
I am trying to make I2C communication via the NI USB 6009. Can you please help me out in providing any example VIs or libraries specially meant for I2C with 6009 and not 8452. I have done with 8452 already but for my application I need to perform using 6009.
For my application even the software clocking will be okay.
Thanks in Advance.
Fredrick Johnson JOSEPH
10-24-2014 06:46 AM
Hi Frederick,
Unfortunately you won't be able to implement a sucessful I2C communication using a 6009, because this board is software timed which means there isn't a hardware clock reference. For this reason we can't guarantee any synchronization with an I2C device.
Please, next time post new questions on new boards this way your question will be visualized by all user and the forum stays organized.
Regards,
11-10-2014 02:42 AM
Sir,
11-12-2014 05:45 AM
Dear shreya111,
I have read your specific problems, however if you could clarify some topics it would be great for me to understand what is happening and be able to help you.
* Are you using any library for the I2C communication? If yes, which library?
* What are those conectors and what their functions are?
* Is there something that worked inyour project?
Could you please send us more specific information about your problems?
Regards,
gfavaron
11-20-2014 03:45 AM
Sir,
I am not using the IDW library.I have installed the FPGA module for labview 2012 and xilinx spartan 3e tools.I am using the pins i/o 1 and i/o 2 on j1 header of spartan 3e board as SCL and SDA pins respectively.So Using te FPGA I/o method node I have to send the signals on SDA and SCL lines .
11-20-2014 03:50 AM
Sir,
Yes I am able to drive the DC rhino servomotor .However I am not able to do the motion control properly.I have attached the datasheet of the DC servomotor dat I am using below.I have to send the data as specified in its datasheet.However I am not able to approach for that problem.Kindly provide me necessary suggestions regarding that.
11-26-2014 08:37 AM
Hello shreya111,
I never use the Spartan 3E starter kit, looking to its manual it doesn´t communicate I2C directly. Looking a forum on Xilinx web site they use an IP to implement I2C on Spartan FPGA.
Based on this information i think in LabVIEW you need use one I2C library to implement this I2C or development the protocol, and not only send signal on a pin.
NI have some devices that have an Spartan 3E embbeded to user program, on this devices we always recommend use one I2C library to implement I2C on FPGA.
Regards,