文件名称:adc
介绍说明--下载内容均来自于网络,请自行研究使用
该ADC模块总共有8个通道可以进行模拟信号的输入,分别是AIN0、AIN1、AIN2、AIN3、YM、YP、XM、XP。那么ADC是怎么实现模拟信号到数字信号的转换呢?首先模拟信号从任一通道输入,然后设定寄存器中预分频器的值来确定AD转换器频率,最后ADC将模拟信号转换为数字信号保存到ADC数据寄存器0中(ADCDAT0),然ADCDAT0中的数据可以通过中断或查询的方式来访问。开发板通过一个10K的电位器(可变电阻)来产生电压模拟信号,然后通过第一个通道(即:AIN0)将模拟信号输ADC。-The ADC module has a total of eight channels can be input analog signals are AIN0, AIN1, AIN2, AIN3, YM, YP, XM, XP. So is how ADC analog signal to digital signal conversion it? First, the analog input signal either channel, and the set value of the prescaler register AD converter to determine the frequency and finally ADC to convert analog signals to digital signals to the ADC saved data register 0 (ADCDAT0), then ADCDAT0 in the data can be accessed via interrupt or query. Development board to generate a voltage analog signal through a 10K potentiometer (variable resistor), and then through the first channel (ie: AIN0) analog signal output ADC.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
adc.txt