From e640e469fcda67e6c7b548fcee5e1da2cd037c82 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 29 Nov 2016 16:37:43 +0000 Subject: [PATCH] Change SIM_SOPT7 setting. --- IOTeensy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IOTeensy.cpp b/IOTeensy.cpp index a96a66f..6f629a6 100644 --- a/IOTeensy.cpp +++ b/IOTeensy.cpp @@ -128,7 +128,7 @@ void CIO::startInt() CORE_PIN13_CONFIG = PORT_PCR_MUX(3); // Set ADC0 to trigger from the LPTMR - SIM_SOPT7 |= SIM_SOPT7_ADC0ALTTRGEN | + SIM_SOPT7 = SIM_SOPT7_ADC0ALTTRGEN | SIM_SOPT7_ADC0TRGSEL(14); #else // Setup PDB for ADC0 at 24 kHz