with hardware oversampling

This commit is contained in:
Noah Piqué
2021-11-17 11:35:41 +01:00
parent e15e692e89
commit 04d2bab659
10 changed files with 42 additions and 14 deletions

View File

@ -7,7 +7,7 @@
//-------------------------------------------------------------------------------------------------
//
// Project: Peltier Controller V2
// Author: Noah Piqu<71> (noah.pique@psi.ch)
// Author: Noah Piqu<71> (noah.pique@psi.ch)
//
//-------------------------------------------------------------------------------------------------
//
@ -41,10 +41,11 @@ extern "C" {
//=================================================================================================
// attention: perhaps you have to change the ADC sample time in ANPI_AnalogPortsIn.c
//#define ANPI_OVERSAMPLING_FACTOR 64
#define ANPI_OVERSAMPLING_FACTOR 64
#if( ANPI_OVERSAMPLING_FACTOR % 2 != 0 )
#error "ANPI_OVERSAMPLING_FACTOR must be power of 2!"
//#error "ANPI_OVERSAMPLING_FACTOR must be power of 2!"
#endif
//=================================================================================================