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.

System Design with the TM4C123GH6PM 64-pin LQFP package (ADC)

Other Parts Discussed in Thread: TM4C123GH6PM, REF2030, LMT87, REF3033-Q1, ADS1204, ADS1018, ADS1213, ADS8326

Hi, I'm designing with TM4C123GH6PM, my main references design guideline are: datasheet, the schematic of TIVA C launchpad and SPMA059-October 2013.

Likewise many doubts arise me, i need reference voltage for ADC in e 64-pin LQFP package, but in page 24 of SPMA059 say: "The 144-pin LQFP routing example for the VREFA+ and VREFA- nets should be followed for the 100-Pin LQFP package, which is not shown in the table. The 64-pin LQFP package does not have dedicated VREFA+ or VREFA- pins."

But onTable 24-5 on page 1360 of the datasheet, say what the minimum voltage for VDDA is 2.97 V. Is possible to connect a reference voltage of 3.0 V from a REF2030 or REF5030?

In Table 23-2. Signals by Pin Number on page 1330 of datasheet, say for PIN 2: "

The positive supply for the analog circuits (ADC, Analog
Comparators, etc.). These are separated from VDD to minimize
the electrical noise contained on VDD from affecting the analog
functions. VDDA pins must be supplied with a voltage that meets
the specification in Table 24-5 on page 1360, regardless of system
implementation."

If a 3.0 V reference is not possible or not recomended, its possible connect a 3.3 V reference voltage like REF3033 or REF5033?, I need precise ADC conversión for sensor operation and calibration.

Thanks!

  • A few notes

    Fernando Liozzi said:
    I need precise ADC conversión for sensor operation and calibration.

    I suspect you are looking for better accuracy, the precision is fixed at 12 bits. That is pedantic but it become important since datasheets are likely to use the correct terms and if you read precision as meaning accuracy you will run into problems.

    Fernando Liozzi said:
    But onTable 24-5 on page 1360 of the datasheet, say what the minimum voltage for VDDA is 2.97 V. Is possible to connect a reference voltage of 3.0 V from a REF2030 or REF5030?

    Now is a good time to look at the errata on the power supplies. There are some additional restrictions not covered in the data sheets.

    Fernando Liozzi said:
    I need precise ADC conversión for sensor operation and calibration.

    Define your accuracy requirements. It is not possible to know whether you can meet them w/o knowing what they are. Also what kind of sensors, for some sensors the presence of an accurate reference will be irrelevant.

    Finally, I'll fall back on cb1's dictum.  If you want accuracy use an external A/D.

    Robert

  • Hello Fernando,

    On the 64 pin package, when the VDDA is used for reference there is an important aspect of VDDA_POK (falling edge) that needs to be considered. The Max level for this parameter is 2.85V which is quite close to 3.00V. If the reference does get loaded and reaches the parameter limit then the device would be reset.

    As Robert mentioned, if accuracy is paramount then it must be more than 12 bit AD converter.

    Regards
    Amit
  • Hi,
    You apologize for the concept, you're right, I need accuracy because accuracy is limited to 12 bits.
    I just need a voltage reference that does not have fluctuations as the supply voltage.I need to know if it is possible to connect one pin VDDA and GNDA voltage referrer that meets the electrical Characteristics of the microprocessor to obtain a more accurate ADC.
    Thanks!
  • Hello Fernando

    While the circuit is correct, that having a reference connected to VDDA and GNDA will work for the ADC, but you need to be careful with the fact that VDDA noise or droop may cause the device to reset.

    Suggested:

    1. Higher accuracy external ADC and communication with TM4C using the I2C/SSI/UART as specified by the ADC
    2. Using REF5033 to have enough guardband on voltage spikes and droop.

    Regards
    Amit
  • May we note that this vendor supplies a great variety of highly accurate (external) ADCs - all of which (escape) the mixed signal limitations which plague (all vendor's) MCU-Based ADCs. 

    Untold (still) is your (real) accuracy requirement.    And as poster Robert mentioned - (surprising as it may seem) - dependent upon your sensor type & class - high accuracy may prove of less value than you suspect.

    Clear & detailed specifications are (usually) required to meet "high" (accuracy) demands...

  • Hi Amit and Robert,
    Thanks for coming to solve my problem.
    For now complete the development of this platform acquisition. In a few weeks I will implement the external ADC. I'll be careful when using these pins as ADC reference. I will follow the guidelines as closely as possible.
    Thank so much!

    Best regards,
    Fernando.
  • External (i.e. proper) ADCs are unlikely to require similar limitations - nor "errata-driven" specification management...

    Guidelines vendor's Amit mentioned - I believe - aim (only) at MCU's ADC - not at (unspecified) far higher performance, external ones...

    Another key/critical "selling point" of "external ADCs" - most always it proves wise to, "Perform your conversion, "Near the source" not long inches (or even feet) away!   External ADCs may go - and fit - where an MCU (and its support) cannot.  

    External ADCs enable you to determine (exactly) how much (real) accuracy your design requires.   In many cases - the exact footprint will accommodate ADCs of different conversion levels - enabling the optimal "ADC fit to your (unique) requirement."

  • Hi cb1_mobile,

    I am looking at errata sheet Tiva C Series TM4C123x Microcontrollers Silicon Revisions 6 and 7 Errata (Rev. E) on page 63.

    Thank you for your contributions, are very useful for me.

    Regards,

    Fernando.

  • Hi Fernando,

    May I note that one hunts Tigers in India, Nile Crocks in Africa - and "accurate" ADCs anywhere but w/in "Mixed Signal" MCU.   (especially one plagued by errata...)

  • Hi Amit,

    Amit Ashara said:

    2. Using REF5033 to have enough guardband on voltage spikes and droop.

    I find no reference to the REF5033, you can provide me a link to the datasheet of this component?

    Thanks!

    Regards,

    Fernando.

  • Fernando Liozzi said:
    I need accuracy because accuracy is limited to 12 bits.

    Actually the precision is 12 bits.

    The accuracy is limited by other factors to somewhat less.

    I will note that getting 12 bits of accuracy is really difficult. It means everything in your system has to be better than 0.05% accurate. The total of the inaccuracies of the sensor, the conditioning circuit, the reference and the A/D must be < 0.05%. This is a non-trivial task. With some classes of sensors it's likely impossible.

    Just on the signal conditioning consider the requirements on resistor accuracy that implies.

    For it to be meaningful in most cases, it also means your noise has to be down at that level as well.

    You haven't shared your application but my first step would be to question the need for this kind of accuracy. It's not often needed.

    What is the sensor you are using?

    Robert

  • Hi,
    I am Sorry!, jaja, I wanted to write the sentence: "I need accuracy because the precision is limited to 12 bits." :P
    I use sensors whose recommended power is 3V0, such as MP3H6115A (pressure sensor), MP3V5050. I am also using temperature sensors fed 3V0, such as, LMT87. For infotainment applications.

    I just try to do my designs following some guidelines and suggestions, and also learning in the process. I think everything worthwhile to be done, has to be well done and consciousness. If I need or not so accurately, I think is not bad looking for her. In the process I learn and get advice from people who know more than me. As in the case of this forum, you help me to improve.

    Regards,
    Fernando.

  • Hello Fernando

    I meant REF3033 and not 5033. Sorry for the typo.

    Regards
    Amit
  • Hi Amit,
    Thanks, I am using the REF3033-q1 and REF3030. Also I am using REF2030.

    Regards,
    Fernando.
  • Hello Fernando

    What is the end application? You must know that there are specific ADCs which are better adapted for certain applications.

    May be this information would be help us assist to the right device.

    As an example, I am using the TM4C 12 bit ADC for audio sampling (which is a far outcry from 16 bit sigma delta, Low Pass filtered, anti aliasing and background noise cancellation TLV320AIC).

    Regards,
    Amit
  • Hello Amit,
    The final application is a small system for variable sensing as tire pressure, temperature and humidity inside and outside the vehicle.
    And I wanted to take advantage the internal ADC of microcontroller and with the addition of a referrer, have a better accuracy in measurements. I have the ads8326, the ads1213, the ads1018 and ads1204, but are intended to be tested in other applications.
    I just want to have a little more accuracy with small aggregates. But without losing robustness in the design. The microcontroller can not be reset. If any ADC that can be useful for this application, I accept suggestions.

    Regards,
    Fernando.

  • Fernando Liozzi said:
    If I need or not so accurately, I think is not bad looking for her. 

    Accuracy costs.

    Now, good design rules help. And the baseline accuracy of components is better than it used to be so the starting point is better than it used to be decades ago. Still getting even 10 bits takes hard work.

    Now, to double check the sensors

    Fernando Liozzi said:
    I use sensors whose recommended power is 3V0, such as MP3H6115A (pressure sensor), MP3V5050. I am also using temperature sensors fed 3V0, such as, LMT87. For infotainment applications.

    Infotainment? I doubt the accuracy requirements are high.  Cost is likely to be important.

    So checking data sheets (I had  been looking at a couple of these a few months ago for a colleague as it chances)

    MP3H6115A +/- 1.5% accuracy

    MP3V5050 +/2.5% accuracy

    LMT87 +/-2.7C or +/-1.4%

    So the sensor accuracy for all of these is around 6 bits, although the MP3V5050 is getting closer to 5 bits. They do have more accurate sub-ranges but that only manages 7 bits for the temperature sensor.

    This is why I questioned the sensor. Most sensors are less than 8 bits and as illustrated by these often considerably less. And note these are the top line datasheet numbers, detailed examination may find achieving this requires considerable effort although sometimes it's easy.

    Using high accuracy A/Ds is a pointless expense and complication with these sensors.

    If you actually need higher accuracy measurements of these values then first you need to invest in finding higher accuracy sensors and they are not going to be inexpensive if you need 12 bits of accuracy.

    You could use a reference to calibrate your A/D periodically so you don't need to rely on a high accuracy power supply.

    Robert

  • Robert Adsett said:
       You could use a reference to calibrate your A/D periodically so you don't need to rely on a high accuracy power supply.  

      

    Agree - and may I add that even with a "lower accuracy" power supply - you must insure that it is as, "Free from transients and other (unwanted) voltage swings" as possible - which may defeat Robert's (otherwise) neat suggestion of, "Periodic A/D calibration."   To that end our tech firm employs: "ferrite bead & large & small value bypass/storage caps" (placed as close to MCU's VDDA as possible/practical.)   Proper pcb design also is, "de rigueur" with wide power traces, avoidance of "too close" switching or noisy signals, and proper ground planes...   (to list some...)

    As poster Robert so well identified - you must (always) consider (each/every) item w/in your connection (really your error) chain.   One "bad egg" in that chain is easily able to, "null & void" ALL of your, "good eggs" thus derailing your hope for, "high accuracy."   

    As always, "devil" lives in (and delights in) such detail...

  • Good advice, we use a similar structure to ensure a stable noise free VDDA.

    Robert
  • Hello Robert, hello cb1_mobile,

    Thank you so much for the recommendations and observations. I will lend greater attention to these considerations and will have particular care in handling voltage in VDDA. I will follow your advice cb1_mobile =)

    I really appreciate your advice, I always try to do things well, and often sin through ignorance.

    Regars,

    Fernando.

  • Robert gives unusually good advice: "Attend the nearest Analog Seminar" when provided by "Analog Leaders.""  

    You can reduce (but not eliminate) such, "sins of ignorance" by a serious, regular read/review of the key/critical data available from such "leaders:"

    • this vendor
    • Analog Devices
    • Linear Technology

    (to name a few - and your attendance at one of their seminars will enable you to meet (others) - some "much like you" - and others who "dwell" w/in hallowed analog halls...)