From 0d78734bb3065a77c36c2fdb87f4978ef40a831c Mon Sep 17 00:00:00 2001 From: smckown Date: Tue, 16 Sep 2008 21:43:48 +0000 Subject: [PATCH] Back to stable VeREF for now. --- tos/platforms/tmirws/sensors/BatteryAdcP.nc | 8 ++++++-- tos/platforms/tmirws/sensors/PyranometerAdcP.nc | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tos/platforms/tmirws/sensors/BatteryAdcP.nc b/tos/platforms/tmirws/sensors/BatteryAdcP.nc index 7a4f4489..a6e27d74 100644 --- a/tos/platforms/tmirws/sensors/BatteryAdcP.nc +++ b/tos/platforms/tmirws/sensors/BatteryAdcP.nc @@ -46,14 +46,18 @@ implementation { inch: INPUT_CHANNEL_A0, #if 0 /* internal references unstable */ sref: REFERENCE_VREFplus_AVss, - ref2_5v: REFVOLT_LEVEL_1_5, - ref2_5v: REFVOLT_LEVEL_2_5, + ref2_5v: REFVOLT_LEVEL_1_5, /* REFVOLT_LEVEL_2_5, */ #else /* external reference is stable */ sref: REFERENCE_VeREFplus_AVss, ref2_5v: REFVOLT_LEVEL_1_5, #endif +#if 0 /* clock source doesn't seem to affect stability */ adc12ssel: SHT_SOURCE_ADC12OSC, adc12div: SHT_CLOCK_DIV_8, +#else + adc12ssel: SHT_SOURCE_ACLK, + adc12div: SHT_CLOCK_DIV_1, +#endif sht: SAMPLE_HOLD_8_CYCLES, sampcon_ssel: SAMPCON_SOURCE_ACLK, sampcon_id: SAMPCON_CLOCK_DIV_1 diff --git a/tos/platforms/tmirws/sensors/PyranometerAdcP.nc b/tos/platforms/tmirws/sensors/PyranometerAdcP.nc index 6fd9b3ed..69d67867 100644 --- a/tos/platforms/tmirws/sensors/PyranometerAdcP.nc +++ b/tos/platforms/tmirws/sensors/PyranometerAdcP.nc @@ -43,14 +43,18 @@ implementation { inch: INPUT_CHANNEL_A3, #if 0 /* internal references unstable */ sref: REFERENCE_VREFplus_AVss, - ref2_5v: REFVOLT_LEVEL_1_5, - ref2_5v: REFVOLT_LEVEL_2_5, + ref2_5v: REFVOLT_LEVEL_1_5, /* REFVOLT_LEVEL_2_5, */ #else /* external reference is stable */ sref: REFERENCE_VeREFplus_AVss, ref2_5v: REFVOLT_LEVEL_1_5, #endif +#if 0 /* stability affected by clock source? */ adc12ssel: SHT_SOURCE_ADC12OSC, adc12div: SHT_CLOCK_DIV_8, +#else + adc12ssel: SHT_SOURCE_ACLK, + adc12div: SHT_CLOCK_DIV_1, +#endif sht: SAMPLE_HOLD_8_CYCLES, sampcon_ssel: SAMPCON_SOURCE_ACLK, sampcon_id: SAMPCON_CLOCK_DIV_1 -- 2.39.2