with hardware oversampling
This commit is contained in:
@ -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
|
||||
|
||||
//=================================================================================================
|
||||
|
Reference in New Issue
Block a user