文件名称:ADSample
介绍说明--下载内容均来自于网络,请自行研究使用
本程序是通过AD校正来提高2812 AD采样的精度,AD采样频率为10K,序列发生器SEQ1和SEQ2级联成一个16通道的序列发生器, 采样模式采用顺序采样。利用通用定时器T1的周期中断事件来启动AD转换。
ADCINA0和ADCINB0为参考电平,实际的电压值分别为0.420和1.653,此例程对 ADCINA0、ADCINA1、ADCINB0、ADCINB1四个通道进行连续10次的采样,然后对各个通道的10个采样值进行排序,滤波,最后取平均值。然后由ADCINA0 和ADCINB0通道的值计算求得CalGain和CalOffset,最后由这两个量来校正 ADCINA1和ADCINB1。-The correct procedure is to increase by AD 2812 AD sampling precision, AD sampling frequency of 10K, and SEQ2 SEQ1 cascaded sequencer as a 16-channel sequencer, sampling mode using sequential sampling. T1 using the universal periodic interrupt timer event to start the AD conversion. ADCINA0 and ADCINB0 for the reference level, the actual voltage values were 0.420 and 1.653, this routine of ADCINA0, ADCINA1, ADCINB0, ADCINB1 four channel sampling for 10 times, and then 10 of each channel to sort the samples , filter, and finally averaged. Then ADCINA0 and ADCINB0 channel value obtained CalGain and CalOffset, the final amount of correction by the two ADCINA1 and ADCINB1.
ADCINA0和ADCINB0为参考电平,实际的电压值分别为0.420和1.653,此例程对 ADCINA0、ADCINA1、ADCINB0、ADCINB1四个通道进行连续10次的采样,然后对各个通道的10个采样值进行排序,滤波,最后取平均值。然后由ADCINA0 和ADCINB0通道的值计算求得CalGain和CalOffset,最后由这两个量来校正 ADCINA1和ADCINB1。-The correct procedure is to increase by AD 2812 AD sampling precision, AD sampling frequency of 10K, and SEQ2 SEQ1 cascaded sequencer as a 16-channel sequencer, sampling mode using sequential sampling. T1 using the universal periodic interrupt timer event to start the AD conversion. ADCINA0 and ADCINB0 for the reference level, the actual voltage values were 0.420 and 1.653, this routine of ADCINA0, ADCINA1, ADCINB0, ADCINB1 four channel sampling for 10 times, and then 10 of each channel to sort the samples , filter, and finally averaged. Then ADCINA0 and ADCINB0 channel value obtained CalGain and CalOffset, the final amount of correction by the two ADCINA1 and ADCINB1.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
11_ADSample\ADsample\AD03.paf
...........\........\ADsample.c
...........\........\ADsample.paf
...........\........\ADsample.pjt
...........\........\cc_build_Debug.log
...........\........\Debug\AD03.map
...........\........\.....\AD03.obj
...........\........\.....\AD03.out
...........\........\.....\ADsample.obj
...........\........\.....\DSP28_Adc.obj
...........\........\.....\DSP28_DefaultIsr.obj
...........\........\.....\DSP28_Ev.obj
...........\........\.....\DSP28_GlobalVariableDefs.obj
...........\........\.....\DSP28_InitPeripherals.obj
...........\........\.....\DSP28_PieCtrl.obj
...........\........\.....\DSP28_PieVect.obj
...........\........\.....\DSP28_SysCtrl.obj
...........\........\Debug.lkf
...........\........\Debug.lkv
...........\........\DSP28_Adc.c
...........\........\DSP28_Adc.h
...........\........\DSP28_CpuTimers.h
...........\........\DSP28_DefaultIsr.c
...........\........\DSP28_DefaultIsr.h
...........\........\DSP28_DevEmu.h
...........\........\DSP28_Device.h
...........\........\DSP28_ECan.h
...........\........\DSP28_Ev.c
...........\........\DSP28_Ev.h
...........\........\DSP28_GlobalPrototypes.h
...........\........\DSP28_GlobalVariable.h
...........\........\DSP28_GlobalVariableDefs.c
...........\........\DSP28_Gpio.h
...........\........\DSP28_InitPeripherals.c
...........\........\DSP28_Mcbsp.h
...........\........\DSP28_PieCtrl.c
...........\........\DSP28_PieCtrl.h
...........\........\DSP28_PieVect.c
...........\........\DSP28_PieVect.h
...........\........\DSP28_Sci.h
...........\........\DSP28_Spi.h
...........\........\DSP28_SysCtrl.c
...........\........\DSP28_SysCtrl.h
...........\........\DSP28_Xintf.h
...........\........\DSP28_XIntrupt.h
...........\........\SRAM.cmd
...........\ADsample说明.txt
...........\........\Debug
...........\ADsample
11_ADSample
...........\........\ADsample.c
...........\........\ADsample.paf
...........\........\ADsample.pjt
...........\........\cc_build_Debug.log
...........\........\Debug\AD03.map
...........\........\.....\AD03.obj
...........\........\.....\AD03.out
...........\........\.....\ADsample.obj
...........\........\.....\DSP28_Adc.obj
...........\........\.....\DSP28_DefaultIsr.obj
...........\........\.....\DSP28_Ev.obj
...........\........\.....\DSP28_GlobalVariableDefs.obj
...........\........\.....\DSP28_InitPeripherals.obj
...........\........\.....\DSP28_PieCtrl.obj
...........\........\.....\DSP28_PieVect.obj
...........\........\.....\DSP28_SysCtrl.obj
...........\........\Debug.lkf
...........\........\Debug.lkv
...........\........\DSP28_Adc.c
...........\........\DSP28_Adc.h
...........\........\DSP28_CpuTimers.h
...........\........\DSP28_DefaultIsr.c
...........\........\DSP28_DefaultIsr.h
...........\........\DSP28_DevEmu.h
...........\........\DSP28_Device.h
...........\........\DSP28_ECan.h
...........\........\DSP28_Ev.c
...........\........\DSP28_Ev.h
...........\........\DSP28_GlobalPrototypes.h
...........\........\DSP28_GlobalVariable.h
...........\........\DSP28_GlobalVariableDefs.c
...........\........\DSP28_Gpio.h
...........\........\DSP28_InitPeripherals.c
...........\........\DSP28_Mcbsp.h
...........\........\DSP28_PieCtrl.c
...........\........\DSP28_PieCtrl.h
...........\........\DSP28_PieVect.c
...........\........\DSP28_PieVect.h
...........\........\DSP28_Sci.h
...........\........\DSP28_Spi.h
...........\........\DSP28_SysCtrl.c
...........\........\DSP28_SysCtrl.h
...........\........\DSP28_Xintf.h
...........\........\DSP28_XIntrupt.h
...........\........\SRAM.cmd
...........\ADsample说明.txt
...........\........\Debug
...........\ADsample
11_ADSample