PS_Fgen_FW  4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
Loading...
Searching...
No Matches
ADC.h File Reference

Containing the Analog Digital Converter part. More...

#include "../Pins/Pins.h"

Go to the source code of this file.

Functions

void ADC_init ()
 Initialize the Analog Digital Converter.
 
void ADC_startConversion ()
 Start the conversion of the Analog Digital Converter.
 

Detailed Description

Containing the Analog Digital Converter part.

Date
15.09.2020 19:30:30
Author
Markus Scheich

see: https://www.newbiehack.com/MicrocontrollersADCReadingMultipleAnalogVolageSources.aspx

Function Documentation

◆ ADC_init()

void ADC_init ( )

Initialize the Analog Digital Converter.

This function initializes all neccessary registers of the ADC. After ADC_init() enable Interrupts with sei(); Then start first conversion with ADC_startConversion();

◆ ADC_startConversion()

void ADC_startConversion ( )

Start the conversion of the Analog Digital Converter.

This function starts the conversion starting with channel 0. It is only neccessary to call this function once. All further conversions are automatically started after the last one finished.