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.

ADS112U04: ADS112U04 manual mode, single-shot conversion

Part Number: ADS112U04

Hello,

I'm working on a new project, in which I've interfaced the TI's ADS112U04 with the STM32Fxx micro-controller. As I'm new to TI's UART-based-ADC, I'm facing little difficulties in developing the drivers for it. Therefore, I want some help in developing the basic code for ADS112U04. I tried to look everywhere, but I couldn't find the reference code for ADS112U04. Hence, could someone please help me with the basic sudo code for the ADS112U04? I want to read channel-1 in manual mode, single-shot conversion. Moreover, if there is any sample code available for the ADS112U04 IC, please share the link. Moreover, any ideas or tips will be highly apprecible.

Best Regards,
Aatif Shaikh

  • Hi Aatif,

    Unfortunately TI does not have example code for the ADS112U04 at this time.  A couple of considerations when attempting to communicate with the device.  The first is full-duplex communication is not allowed.  The second consideration is communication to the ADS112U04 is always preceded by the synchronization word (0x55).

    There is some basic startup pseudo code in the ADS112U04 datasheet in section 9.1.6 on page 50.  You would need to alter the register settings to the ones appropriate for your configuration.  The difference in the example and the one you proposed is single-shot mode.  Single-shot mode requires that the START/SYNC command be issued each time a new conversion is desired.

    Best regards,

    Bob B

  • Hello, thanks for your reply. I've made a sequence. So, please check and let me know if this is correct or not? Right now, I'm not receiving any data on the RX pin of the UART (all my initialization is proper).

  • Hi Aatif,

    Just so that I'm clear, are you saying you never see any data from the ADS112U04?  Can you send me your schematic?

    If you are not seeing any data from the ADS112U04, then make sure that both the AVDD and DVDD supplies are at nominal operating voltage.  Also verify that the RESET pin is pulled high externally as there is no internal pullup on this pin.

    Also, monitor the communication and the DRDY output on GPIO2 with an oscilloscope or logic analyzer.  If the ADC actually converts you should see this pin transition from high to low after the conversion completes.

    Best regards,

    Bob B

  • Hello, This is the hardware configuration of my board. On the other side, It's just the controller, which means all these UART and DRDY pins are directly going to the controller pins.

  • Hi Aatif,

    You are not showing the supply pins.  What supply voltages are you using for AVDD, DVDD and the micro supply I/O voltage?  Also, are you able to read the register settings that you wrote, or is the ADS112U04 not transmitting the register read data either?

    Best regards,

    Bob B