This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I²C on C6418: configuration and management



Hi,

 

i am Using C6418 and CCS 3.3.

I am searching for libraries that handle the complete configuration and using for the IIC Bus.

It would be fine to include such a librarie, so that i do not have to program all states for the bus and the full communication on the bus.

Thanks in advance for any advice/help!

 

Andreas

  • The Chip Support Library (CSL) is what you would use for the C6418 to aid in the configuration and use of the device peripherals, including the I2C. To get the latest release of the library and documentation, go to www.ti.com and do a keyword search on C6418. Currently, the first item you get is a link to the CSL page, and near the top is a link to the API Reference Guide.

    I am not sure what all the examples there are, but there will be code snippets in the Ref Guide and even within the source code.

    There may be default values for many of the registers, but you still need to know what you want to be programmed into those registers.

  • Hi!

    Thanks for your answer und your help,

    I read the API Ref Guide for the IIC and now, I have a question:

    with the I2C_start I can generates a start condition, but does this function automatically sends the slave adress with the R/W bit?

    Next question is about the I2CMDR described in the SPRU175D:

    Is there automatically generatet a start condition when I configure the I2C Mode Register?

     

    Thanks for your help!

  • When you write STT=1 you will generate a start bit, slave address, and read/write bit.  When you write STT=1 the transfer occurs at that moment.