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.

CCS/TMS570LS1227: ads122c04 i2c communication

Part Number: TMS570LS1227
Other Parts Discussed in Thread: ADS122C04, HALCOGEN

Tool/software: Code Composer Studio

hello.

I practiced  TMS570ls1227 all example code provided in hercules.

and now I want to get input from ads122c04 and send a/d values to DSP with i2c communication.

There are a lot of blockages in the example because it suddenly goes to real experiment. I don't know how to get started.

Can you tell me how to approach this experiment step by step?

Thanks.

  • Hello,

    ads122c04 has I2C interface. You need to follow the data transfer protocol defined in ads122c04 datasheet to read A/D data. You can modify the HALCoGen I2C example for reading AD data (example_i2c_pcf8570.c).

    Are you going to write AD data to another device(DSP) through I2C?

  • yes i want to take input from K-Type thermocouple sensor(ads122c04) and transmit A / D value to DSP(TMS570ls1227) through I2C communication.

    Can It work when i using the example code?

  • Hello,

    You need to modify the example code to meet the communication protocol defined in ADS122 datasheet. For reading data from slave, the example code sends slave address first, then work address (or register address), then read the data. ADS122 requires a command before writing the register address.

    Slave address -- w--- Command -- w--- slave address -- r--- data

    Before reading the AD data, you need to send command to start AD conversion.