aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKévin Redon <kredon@sysmocom.de>2019-11-26 13:49:45 +0100
committerKévin Redon <kredon@sysmocom.de>2019-11-26 13:49:53 +0100
commitb7f94dcb9f3180cc8b1c44620ae9268df884aaed (patch)
tree8d16e013fa27f930efc34e14d9cfc4634d47353f
parentc90de6983cc09ab0c991afc689ce859331367518 (diff)
qmod: lower VCC threshold to 2.5V0.6
on the QMOD board the VCC signal from the modem is measured using an ADC (SIMtrace board just use card detect). the threshold to consider VCC as activated was set to 2.8V, which gives a bit of margin for the expected 3.0V. still, we had one board where the voltage was 2.8V. to be resilient against lower than expected voltages from modems (or boards), we lowered the threshold to 2.5V. this is still save for the SAM3S to correctly identify high/low levels. Change-Id: Iac2778903690045e4e63fef29f812205d00c28ed
-rw-r--r--firmware/libcommon/source/mode_cardemu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/libcommon/source/mode_cardemu.c b/firmware/libcommon/source/mode_cardemu.c
index 2d1a687..704e6ba 100644
--- a/firmware/libcommon/source/mode_cardemu.c
+++ b/firmware/libcommon/source/mode_cardemu.c
@@ -309,7 +309,7 @@ static int card_vcc_adc_init(void)
}
#define VCC_UV_THRESH_1V8 1500000
-#define VCC_UV_THRESH_3V 2800000
+#define VCC_UV_THRESH_3V 2500000
static void process_vcc_adc(struct cardem_inst *ci)
{