Xmega ADCA 4 channel scan, free running mode
no vote
* MCU: ATXmega128A1 * Development environment: AVR Studio 4.18 build 716 * Description: void ADCA_CH0_1_2_3_Sweep_Interrupt (void) ADCA 4 channel scanning, free-running mode, CH2 low-level interrupt, the interrupt subroutine Conversion result of the four channels is recorded into the array adcSamples [4] [10] In, USARTC0 printing Output debugging information void ADCA_CH0_1_2_3_Poll (void) ADCA 4 channel scanning, free-running mode, polling the interrupt flag read the conversion results * / #include "avr_compiler.h" #include "usart_driver.c" #include "adc_dri