Project

General

Profile

I2C Access with 5CSX Development Board

Added by Alexander Block almost 10 years ago

Posting on behalf of a customer and for future reference as well:

1) How do I access the +5V I2C current monitor IC interface on the Critical Link development board, WITHOUT using i2cSet and i2cGet? I do not have these programs installed under linux.

2) Under the /dev folder, there are two "files" named i2c-0 and i2c-1. Can I use these to interact with the power I2C and if so,

3) How do I interact with them via software to get/set parameters on the power I2C? Are there examples?

Thanks,

Alex


Replies (1)

RE: I2C Access with 5CSX Development Board - Added by Michael Williamson almost 10 years ago

1) i2cset and i2cget are pretty standard tools, do you need help installing them or do you not want them on your final OS? We can provide an RPM package for them if you are using the standard filesystem provided with the DevKit.

2) the i2c-1 and i2c-1 are "device files" for each of the 2 default I2C busses on the HPS processor. You can open them and use the busses using the i2cdev IOCTLs in the kernel documentation.

3) I am attaching some code that we use to read the LTC2945 on the dev-kit (you might check if there is a command called ltc2945 on your filesystem already). It reads the power and prints it on the console port.

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)