aboutsummaryrefslogtreecommitdiff
path: root/hwdef-FW3A.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-01-30 01:18:56 -0700
committerSelene ToyKeeper2020-01-30 01:18:56 -0700
commitf61beefe38f5118dc816d5ba28d7e41001cfe703 (patch)
treed3de61107b29f49f4071effc89a2484de0454eec /hwdef-FW3A.h
parentincreased effective ADC resolution by switching from continuous-lowpass to su... (diff)
downloadanduril-f61beefe38f5118dc816d5ba28d7e41001cfe703.tar.gz
anduril-f61beefe38f5118dc816d5ba28d7e41001cfe703.tar.bz2
anduril-f61beefe38f5118dc816d5ba28d7e41001cfe703.zip
switched to a pseudo-rolling-average method to reduce noise, set prescaler back to 64
Diffstat (limited to 'hwdef-FW3A.h')
-rw-r--r--hwdef-FW3A.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdef-FW3A.h b/hwdef-FW3A.h
index a223b08..0b94635 100644
--- a/hwdef-FW3A.h
+++ b/hwdef-FW3A.h
@@ -35,7 +35,7 @@
//#define ADC_CHANNEL 0x01 // MUX 01 corresponds with PB2
//#define ADC_DIDR ADC1D // Digital input disable bit corresponding with PB2
#endif
-#define ADC_PRSCL 0x07 // clk/128
+#define ADC_PRSCL 0x06 // clk/64
// average drop across diode on this hardware
#ifndef VOLTAGE_FUDGE_FACTOR