10176

# Analog-to-Digital Conversion Algorithm with a Single Slope

Converting analog to digital has been increasingly important since the dawn of the digital era. While many take analog-to-digital conversion at face value and do not question the means of conversion, there are actually dozens of conversion techniques employed by electrical engineers, each with their own advantages and disadvantages.
The particular methodology shown here is called single slope and is one of the simplest kinds of conversion. The analog-to-digital convertor attempts to convert the analog signal into digital bits in a two-step process. First, a linear voltage ramp is created by the analog-to-digital convertor and a clock begins its count. Then, when the voltage ramp rises above the signal, the clock's count is output as a digital interpretation of the signal; the voltage ramp is reset at 0 V, the clock count is reset to 0, and the process begins again. This works because it is a linear ramp, and so the voltage interpretation is linearly proportional to the time (meaning the horizontal aspect is linearly proportional to the vertical aspect), so by recording the time, we record a scaled interpretation of the voltage.
Using single slope is subject to two caveats, both evident in the Demonstration: (1) the algorithm cannot interpret negative signals (because it uses a positive slope), and (2) the linear voltage ramps sometimes overshoot the signal (because the ramp is only compared to the signal at the end of a discrete time step).

### DETAILS

Reference
[1] P. Horowitz and W. Hill, The Art of Electronics, Cambridge: Cambridge University Press, 1998.

### PERMANENT CITATION

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.