Skip to content
Snippets Groups Projects
Commit 928b7969 authored by Thibaut VIARD's avatar Thibaut VIARD Committed by Cristian Maglie
Browse files

Removing ADC averaging

parent 06058c61
No related branches found
No related tags found
No related merge requests found
...@@ -109,9 +109,9 @@ void init( void ) ...@@ -109,9 +109,9 @@ void init( void )
ADC->INPUTCTRL.reg = ADC_INPUTCTRL_MUXNEG_GND; // No Negative input (Internal Ground) ADC->INPUTCTRL.reg = ADC_INPUTCTRL_MUXNEG_GND; // No Negative input (Internal Ground)
// Averaging (see table 31-2 p.816 datasheet) // Averaging (see datasheet table in AVGCTRL register description)
ADC->AVGCTRL.reg = ADC_AVGCTRL_SAMPLENUM_64 | // 64 samples ADC->AVGCTRL.reg = ADC_AVGCTRL_SAMPLENUM_1 | // 1 sample only (no oversampling nor averaging)
ADC_AVGCTRL_ADJRES(0x04ul); // Adjusting result by 4 ADC_AVGCTRL_ADJRES(0x0ul); // Adjusting result by 0
analogReference( AR_DEFAULT ) ; // Analog Reference is AREF pin (3.3v) analogReference( AR_DEFAULT ) ; // Analog Reference is AREF pin (3.3v)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment