Browse Source
Reduce default LPC176x ADC lowpass filtering
pull/1/head
Chris Pepper
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
Marlin/src/HAL/HAL_LPC1768/HAL.h
|
|
@ -133,7 +133,7 @@ uint8_t spiRec(uint32_t chan); |
|
|
|
// Memory usage per ADC channel (bytes): (6 * ADC_MEDIAN_FILTER_SIZE) + 16
|
|
|
|
// 8 * ((6 * 23) + 16 ) = 1232 Bytes for 8 channels
|
|
|
|
|
|
|
|
#define ADC_LOWPASS_K_VALUE (6) // Higher values increase rise time
|
|
|
|
#define ADC_LOWPASS_K_VALUE (2) // Higher values increase rise time
|
|
|
|
// Rise time sample delays for 100% signal convergence on full range step
|
|
|
|
// (1 : 13, 2 : 32, 3 : 67, 4 : 139, 5 : 281, 6 : 565, 7 : 1135, 8 : 2273)
|
|
|
|
// K = 6, 565 samples, 500Hz sample rate, 1.13s convergence on full range step
|
|
|
|