This post was co-written by Kunal Gandhi and Rahul Prakash.
Engineers may agree that one of the most anxious and stressful moments they face is when his or her design is back from fabrication and ready to be tested. While it is thrilling to see our concept or design work for the first time in the lab, sometimes we have to accept catastrophic failures, too.
In this blog post, we will focus on predicting system performance and avoiding failures. The term that immediately comes to my mind to avoid these failures is “simulation.” Currently, customers can model and simulate the majority of their analog signal chain components in SPICE simulation tools, except the digital-to-analog converter (DAC). With special SPICE models for Precision DACs, board engineers are no longer required to fully trust hand calculations before implementing actual hardware.
The SPICE models are available in two variants. One uses a simple n-bit wide parallel interface, as shown in Figure 1, which is compatible with all TINA-TI versions. The other model uses a serial SPI interface, shown in Figure 2, and is compatible with Industrial TINA-TI. Both variants include models for the important DC characteristics of the DAC and output amplifier such as offset error, gain error, output voltage swing to rail, temperature drift and quiescent current. Additional characteristics of AC parameters include slew-rate, settling time, power-on glitch and stability. The SPI interface model also completely replicates the digital interface and can be used to simulate the digital signal chain to the input of the DAC.
Figure 1 – DAC8411 Model (Parallel)
Figure 2 – DAC8411 Model (Serial)
Predicting and understanding how a DAC or op-amp will perform when driving a given load is an important aspect of any design. Let’s take a look at an example by simulating settling time with the DAC8411 SPICE model.
The left-side of Figure 3 shows a transient simulation of the DAC output with a code step from ¼ full-scale to ¾ full-scale. In this simulation the DAC is driving a 2kΩ resistive load in parallel with a 200pF capacitor – the same load used to specify settling time in the datasheet. The SPICE model accurately replicates the settling time of a typical characteristics curve from the datasheet, which is shown on the right side of Figure 3.
Figure 3 – DAC8411 Transient Simulation
But what if you need to drive a load that is different than the load specified in the datasheet? The left side of Figure 4 shows a simulation where the DAC output is loaded with a larger capacitive load of 20nF. In this case, the transient simulation shows considerable ringing, or oscillation, of the DAC output due to instability of the output amplifier with a larger capacitive load. The availability of a complete SPICE model helps catch this problem early so compensation components can be included in first prototypes.
Figure 4 – DAC8411 Transient Simulation with 20nF capacitive load
Overall, the latest SPICE models for Precision DACs are aimed at giving engineers and designers a unique opportunity to simulate the entire analog signal chain, catch problems early and enable faster time to market. Check out these two TI Precision Designs to see the new DAC SPICE models in action:
Feel free to leave any questions or comments about these new DAC SPICE models in the section below.
Thank you your blogging! I have one question. How can I code DAC to get voltage what I want?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.