mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-06 06:55:05 +00:00
Enable ADC0 pre-trigger via the LPTMR to match the PDB.
This commit is contained in:
parent
f831b64518
commit
2747e2979d
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ void CIO::startInt()
|
|||
#if defined(EXTERNAL_OSC)
|
||||
// Set ADC0 to trigger from the LPTMR at 24 kHz
|
||||
SIM_SOPT7 = SIM_SOPT7_ADC0ALTTRGEN | // Enable ADC0 alternate trigger
|
||||
SIM_SOPT7_ADC0PRETRGSEL | // Enable ADC0 pre-trigger
|
||||
SIM_SOPT7_ADC0TRGSEL(14); // Trigger ADC0 by LPTMR0
|
||||
|
||||
CORE_PIN13_CONFIG = PORT_PCR_MUX(3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue