From 882d87e5227eeee1228b65dee4f633a552c2e421 Mon Sep 17 00:00:00 2001 From: alan Date: Mon, 3 Jun 2019 15:22:22 +0800 Subject: [PATCH] decode ADC --- .../simple_peripheral/cc26xx/app/headstage/headstage.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h index b2602d821..fcb67d354 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h @@ -893,7 +893,7 @@ static void update_ZM_instruction(uint8 *ins) { switch(ins[3]){ // AINp is AIN0; AINn is GND - // V1 = AIN0 voltage + // V1 = AIN0 voltage // V1 / 1000 = Iin (mA) case 0 :{ ADCin = 0xC1; @@ -921,7 +921,8 @@ static void update_ZM_instruction(uint8 *ins) { // AIN3 = (-0.1) * Vin (V) // Vo = GNDS - Vin/10 (to GNDA) case 3 :{ - ADCin = 0xF1; +// ADCin = 0xF1; + ADCin = 0xF6; ADC_write(ADCin); break; }