![]() |
PS_Fgen_FW
4da88f4073c1cc65ea45c3a652a2751e495e50db
Firmware for an Power Supply and Function Generator build from an ATX power supply
|
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. | |
Containing the Analog Digital Converter part.
see: https://www.newbiehack.com/MicrocontrollersADCReadingMultipleAnalogVolageSources.aspx
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();
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.