文件名称:EFM8BB2_ADC
介绍说明--下载内容均来自于网络,请自行研究使用
ADC实例,用于模拟量采样实例,内部REF(The system is clocked by the internal 24.5 MHz oscillator divided by 1.
// Timer 2 triggers a conversion on ADC0 on each overflow. The completion of
// this conversionin turn triggers an interrupt service routine (ISR). The ISR
// averages 2048 measurements, then prints the value to the terminal via printf
// before starting another average cycle.
//
// The analog multiplexer selects P1.7 (ADC0.15) as the positive ADC0 input.
// This pin is configured as an analog input in the port initialization
// routine. The negative ADC0 input is connected via mux to ground, which
// provides for a single-ended ADC input.)
// Timer 2 triggers a conversion on ADC0 on each overflow. The completion of
// this conversionin turn triggers an interrupt service routine (ISR). The ISR
// averages 2048 measurements, then prints the value to the terminal via printf
// before starting another average cycle.
//
// The analog multiplexer selects P1.7 (ADC0.15) as the positive ADC0 input.
// This pin is configured as an analog input in the port initialization
// routine. The negative ADC0 input is connected via mux to ground, which
// provides for a single-ended ADC input.)
相关搜索: EFM8BB2_ADC
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EFM8BB2_ADC.c
InitDevice.c
Interrupts.c
InitDevice.c
Interrupts.c