mirror of https://github.com/g4klx/MMDVM.git
Merge pull request #51 from g4eml/master
Adjust ADC pre-trigger setting for external TCXO
This commit is contained in:
commit
c69c573000
|
@ -123,7 +123,6 @@ void CIO::startInt()
|
||||||
#if defined(EXTERNAL_OSC)
|
#if defined(EXTERNAL_OSC)
|
||||||
// Set ADC0 to trigger from the LPTMR at 24 kHz
|
// Set ADC0 to trigger from the LPTMR at 24 kHz
|
||||||
SIM_SOPT7 = SIM_SOPT7_ADC0ALTTRGEN | // Enable ADC0 alternate trigger
|
SIM_SOPT7 = SIM_SOPT7_ADC0ALTTRGEN | // Enable ADC0 alternate trigger
|
||||||
SIM_SOPT7_ADC0PRETRGSEL | // Enable ADC0 pre-trigger
|
|
||||||
SIM_SOPT7_ADC0TRGSEL(14); // Trigger ADC0 by LPTMR0
|
SIM_SOPT7_ADC0TRGSEL(14); // Trigger ADC0 by LPTMR0
|
||||||
|
|
||||||
CORE_PIN13_CONFIG = PORT_PCR_MUX(3);
|
CORE_PIN13_CONFIG = PORT_PCR_MUX(3);
|
||||||
|
|
Loading…
Reference in New Issue