This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:software:homelab:library:adc [2010/03/21 18:38] – Helen | en:software:homelab:library:adc [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Analog to digital converter | + | ====== Analog to Digital Converter |
| This library provides functions to use AVR analog to digital converter. All the conversion functions in library are blocking, which means the processor waits as long as it takes to get the results. The conversion time depends on the ADC clock. | This library provides functions to use AVR analog to digital converter. All the conversion functions in library are blocking, which means the processor waits as long as it takes to get the results. The conversion time depends on the ADC clock. | ||
| - | ===== Data types ===== | + | ===== Data Types ===== |
| * **// | * **// | ||
| Line 32: | Line 32: | ||
| * **// | * **// | ||
| - | Converts specified ADC channel analog value to digital desired number of times and calculates the average. Function is blockin. Parameters: | + | Converts specified ADC channel analog value to digital desired number of times and calculates the average. Function is blocking. Parameters: |
| * //channel// - ADC channel number (0 to 7). | * //channel// - ADC channel number (0 to 7). | ||
| * // | * // | ||