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.

ADS7142: Sample Code of Autonomous Mode

Part Number: ADS7142

Tool/software:

Dear Specialists,

My customer is considering ADS7142 and has a question.

I would be grateful if you could advise.

---

Is there any sample code for running the ADS7142 in Autonomous Mode?

If there is, please provide it.

I am currently trying to use an ADS7142 to acquire I2C data with Rapi5, but I am not getting the sampling rate I want.

The Rapi5 sample code "ads7142_simple_read.py" acquires data in Manual mode, which acquires 4 bytes at a time, so it is assumed that the speed cannot be achieved.

I would like to confirm this because Autonomous Mode allows for more continuous data acquisition than Manual Mode.

ーーー

I appreciate your great help in advance.

Best regards,

Shinichi

  • Hi Inoue-san,

    Unfortunately we do not have ADS7142 example code available at the moment, but it is something we hope to have soon. Is there an MCU or processor specifically that you would like to target?

    Due to the above code not being developed by Texas Instruments, it's not something that I have enough insight on to support unfortunately.

    Autonomous mode with the ADS7142 is mostly intended to work by setting alarms. The device will consistently monitor the input to check if it crosses the lower or upper threshold. Due to this, the data speed requirements are actually slower than reading from manual mode over and over again. To begin with, do you know what the maximum SCL frequency that the sample code is able to run at?

    Regards,
    Joel

  • Hi Joel,

    Thank you for your reply.

    I'll confirm the maximum frequency when the sample code can run.

    And share the customer the autonomous mode is slower than the manual mode.

    When I obtain the additional information, I'll share with you.

    I appreciate your great help and cooperation.

    Best regards,

    Shinichi 

  • Hi Joel,

    The customer understood that low sampling rate is due to 1MHz clock.

    In this case, sampling rate is approximately 50kSPS maximum.

    The actual sampling rate is expected to be lower, depended on the software.

    It needs to use more higher CLK.

    I appreciate your great help and cooperation.

    Best regards,

    Shinichi

  • Hi Inoue-san,

    Thank you for sharing this information. I will also note that conversions in autonomous mode are controlled via a configurable internal oscillator. Once the device is configured, it can convert autonomously without the need for an active interface, until an event occurs. So the SCL frequency does not necessarily determine the sampling rate. Let me know if any other information would be helpful.

    Regards,
    Joel

  • Hi Joel,

    Thank you for your reply.

    I shared the information about internal CLK you mentioned.

    I appreciate your great help and cooperation.

    Best regards,

    Shinichi