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.

DAC on TM4C123GH6PM

Other Parts Discussed in Thread: TM4C123GH6PM

Does the TIVA C series TM4C123GH6PM have a DAC module?

In  the Data Sheet under ADC section #13.3.4:

Analog-to-Digital Converter The Analog-to-Digital Converter (ADC) module uses a Successive Approximation Register (SAR) architecture to deliver a 12-bit, low-power, high-precision conversion value. The successive approximation uses a switched capacitor array to perform the dual functions of sampling and holding the signal as well as providing the 12-bit DAC operation.

Can anyone suggest examples or codes that can me help in generating DAC signals like step and ramp? ; without using an external DAC module.

  • The successive approximation uses a switched capacitor array to perform the dual functions of sampling and holding the signal as well as providing the 12-bit DAC operation.

    I view this as unfortunate or ambiguous wording. A DAC is an integral part of an SAR ADC, and is not accessible to "outside programming". There are enough internet resources to explain how such an ADC works (including the DAC's role) so I don't want to repeat it here.

    I suggest to use an external DAC, change to another MCU >>with<< internal DAC, or (for very moderate requirements) use the PWM method with a low-pass filter. However, the latter method can quickly become more expensive than an external DAC ...

  • Ok got it, thanks for the help!
  • May I first memorialize f.m.'s post as most excellent - you are "not" the first to be sucked in by the imprecision of that ADC's review.   And f.m.'s able description of alternate methods to create "DAC functionality" deserves applause.

    Perhaps one point to add - other vendor's ARM "family" of MCUs include a far wider choice of MCUs: Cortex M0, M0+, M3 (RIP here), M4 & M7 - and each/every category includes MCUs w/internal DACs.   (sometimes multiple DACs)

    Restricting your choice to an (already) vendor-restricted inventory - may not best serve your interests - both short & long term...   If the DAC is key/critical to your application - now or downstream - a wider search will prove useful.

  • Hello Kirthi

    I agree with f.m. and cb1. The use of the word DAC raises ambiguity. However if TM4C were to sport a DAC it would have had its own chapter.