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.

ADS127L18: Digital interface MCU

Part Number: ADS127L18
Other Parts Discussed in Thread: LAUNCHXL-F28P65X, AM6411, ADS7028, TMS320F28P650DK, ADS9227

Tool/software:

Hi!

Which MCU from TI portfolio has parallel integrated interface to work with ADS127L18?

I prefer to have full bandwidth, mean I prefer I have communication on 65MHz to achieve 1MSPS.

So I think I may need integrated parallel unit (with dma), I can not imagine to process it without such integrated unit.

Currently I have LAUNCHXL-F28P65X, didn't find such a solution.

Thanks,

Stas

  • Hello Stas,

    It is possible the F28P65X family can support the ADS127L18 at maximum data rate over 8 channels.  Operating DCLK at 65.536MHz will allow TDM of 2 channels on a single DOUT lane at the maximum data rate.  Using a 4-lane interface, along with the F28P65X Configurable Logic Blocks should, in theory, be able to support this, but to my knowledge, no one as developed any specific code to prove this is possible.

    We are working on example code that allows using the AM6411 Sitara processor family with integrated PRU (Programmable Real-time Unit) to implement a full parallel interface, supporting full throughput of the ADS127L18.  I am not sure what the status of this project is and will need to get back to you regarding this effort.

    As a side note, we do provide example FPGA code to implement the full parallel interface if you decide to use an FPGA in your system.

    Regards,
    Keith Nicholas
    Precision ADC Applications

  • Hi!

    Thanks, for advice

    I prefer MCU based architecture as simple to start

    If no MCU based solution from TI with parallel interface controller I think I will prefer some STM32H7 with FMC.

    I prefer not to start FPGA, I see it as next level of complexity.

    And processor based architecture is definitely most complex solution.

  • Hello Stas,

    As I had mentioned before, full speed operation of the ADS127L18 can be supported over 4 data lanes by using an external 65.536MHz clock.  This will allow any MCU with at least 4 SPI ports to interface to the ADS127L18 and support full data rate assuming the MCU can handle the data rates.

    We do have example code for an M0 based MCU using 1 or 2 SPI ports.  The intent of the code was to show how to use the ADS127L18 with lower-end MCU's and lower data rates, but a higher performance MCU with 4+ SPI ports could use this same approach to support the maximum speed of the ADS127L18.

    You can find the example code at the following link if interested.

    https://www.ti.com/tool/download/ADS127L18-MSPM0-EXAMPLE-CODE

    Regards,
    Keith

  • Hi!

    Thanks!

    I selected this adc for high sample rate and delta-sigma for it's integrating/precise nature.

    Maybe I am wrong, but here is my application:

    I have 600VDC driver for 3-phase sensorless motor.

    I need to estimate position of rotor at startup (Lq !=Ld)

    So I make small pulse (we estimate it should be like 4V avg)

    And so really small duty cycle of PWM and quite noisy

    Let's assume we control it with 10 kHz so 100uS*4/600 = 800nS width.

    I want to measure integral of voltage, current is not a big problem - it is high dV/dt, not dI/dt.

     

    Now I have as option integrator on opamp + SAR in f28p65

    But I think that ADS127L18 may give me better precision for this startup moment and also later in regular motor FOC.

    What do you think?

  • Hello Stas,

    The ADS127L18 is not suited to measuring 800ns pulses as you have shown above, due to the internal digital filter, which will have a maximum bandwidth of about 300kHz in the highest speed mode.  It would be a great option to measure the integrated value after the TIA stage.

    I am not that familiar with the signals that need measured for FOC, but if you need to measure the peak values of the pulses, you would be limited to pulse widths of 10us or longer for good measurements (in the fastest speed mode, you could go as low as 5us, but resolution of the reading is reduced quite a bit at this speed).  These limitations again are due to the settling time of the internal digital filter.  You can think of this as an initial conversion time after a step change in the input voltage.

    Regards,
    Keith

  • Thanks Keith!

    I thought that delta-sigma ADC is based on integrator.

    And in continuous mode it is continuous integration with no integration window delay.

    Yes later it comes to digital filter, but I thought it comes after integration.

    And this latency time is just delay of "filter conveyor" like you have delay in ARM with "code conveyor".

    And if it is just delay - ok I have 3uS to loose on filter 1uS on data transfer and 1uS on processing data.

    Considering my maximum PWM frequency is 50kHz and I want to update FOC before next cycle I have 20uS for total delay - I am ok with 5 uS delay.

    Please fix me if I am wrong!

  • Hello Stas,

    Yes, there is an integrator in the front-end modulator but the frequency response is not the same as a simple single-stage integrator. In addition, the ADC is not continuously integrating the input signal; the input is sampled at a rate of 16.384MHz when using maximum speed mode. It is this sampled signal that is ultimately integrated and then converted to a digital code value. Maybe this will work in your system, but I am not certain the response will be equivalent to a continuous, analog integration stage, followed by an ADC.

    Also, the SINC filter will delay the signal by about 4 data rate periods; the exact times are the latency times provided in Table 7-3.  Yes, if you are ok with a 5us delay due to the digital filter, then you may be able to use this.

    Regards,
    Keith

  • Do you have some reference design of such an integrator?

    I see there is a problem with null for integrator, because even 0 signal will always have some offset.

    Also I need to clear integrator time-to-time to avoid saturation.

    Maybe there is some IC that has this solution inside?

    Maybe this IC is specialized on something different, but integration is just a feature (like some smart AFE)

    I am sure I am not the first one who needs to integrate signal.

    I believe it may be something like "true rms detector" 

  • Hello Stas,

    I took some measurements in the lab; below is the ADS127L18 sampling a 10kHz signal with 10% (1us) duty cycle and 0->1V amplitude.  The ADS127L18 is sampling the waveform at 1.024Msps.

    Same plot as above but zoomed in around a single pulse:

    You can see how the digital filter takes about 4 samples to fully settle to the 1V step input.

    Below is with 1% duty cycle, or 1us pulse width.

    As you can see, the ADC is not integrating the signal, but attempting to recreate the signal and is not consistent amplitude due to the sampling window.

    If you do some searching, you can find a number of different analog integration circuits.  Below is an application note from TI that also shows how to create an analog integrator using a standard OPAMP.

    https://www.ti.com/lit/an/sboa275b/sboa275b.pdf

    Regards,
    Keith

  • Oh, thank you so much for your effort!

    I expected different behavior.

    I really wanted to avoid such opamp design.

    Because I expect many troubles with accuracy due to capacitors 5% usually best and at 1MHz is is a good question how close they are to capacitors.

    And also I expect many troubles with drift because of middle point of sensors is not really middle point of 0V and integrator must be resettled to avoid saturation.

    Also I though about these solutions (with true RMS):

    ADS7028 from TI - ADC with true RMS 

    https://www.ti.com/product/ADS7028

    AD8361 from AD (sorry didn't find something like this from you) - true RMS detector - gives analog Vrms output https://www.analog.com/en/products/ad8361.html

    I personally do like AD solution, because I can put it on hot side before AMC33xx (350kHz BW) and be sure to pass it.

    I guess I can extract Vavg from Vrms. Or you think it would not work?

    Thanks!

  • Hello Stas,

    TI does not have any single RMS to DC devices.  The ADS7028 is a 1MSPS ADC that has a digital RMS math engine.  However, since your waveform operates around 10kHz with pulse widths as low as 800ns, the ADS7028 will not accurately capture every pulse due to the sampling rate.

    The internal ADC on the TMS320F28P650DK processor (LAUNCHXL-F28P65X development board) supports 12b up to 3.9MSPS.  This ADC will accurately capture the PWM waveform, and if running an RMS calculation, since your will be using many samples, you will get a higher resolution result, similar to averaging multiple readings.  The TMS320F28 MCU has plenty of processing power to do both RMS and average calculations using the internal ADC.

    If you want even higher reading resolution, then an ADC like the ADS9227 (16b, 5MSPS) with the TMS320F28 processor will provide a very high resolution result.

    Regards,
    Keith