文件名称:STC12C5A60S2_ADC_Test
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 37kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
内部ADC模数转换查询方式测试程序
1、程序说明:
该例程演示了单片机内部ADC模数转换测试实验,
通过查询方式读取转换结果,并进行简单的数据处理。
并将得到的电压值通过数码管显示出来。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
将拨码开关S10的ADC端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
将程序下载到开发板后可观察到数码管显示测到的电压值,
使用电压表测量TP6的电压值,比较二者的误差,
通过调节电位器VR2可以改变ADC的输入电压。
因为这里的ADC使用的参考源为电源电压,理想情况下认为是5V,
实际可能有偏差,用户可测量出开发板实际的电压值,修改程序中
的电压宏定义,测得的结果将更加精确.-Internal query ADC conversion test program
1, descr iption of the procedures:
This routine demonstrates the MCU internal ADC analog-to-digital conversion test,
Through the query to read the conversion results, and simple data processing.
And then the voltage value through digital tube display.
2, experimental operation
Dial switch S10 SMG end of the dial to the ON side, said the terminal is connected.
Dial switch S10 ADC end of the dial to the ON side, said the terminal is connected.
While the other end of the dial switch is disconnected, that is not allocated to the ON side.
Otherwise it will affect the experimental results.
The program is downloaded to the development board can be observed in the digital display voltage values measured from,
Using the voltmeter to measure the voltage value of TP6, comparing the error of the two,
By adjusting the potentiometer VR2 can change the input voltage of ADC.
Because the reference source for the ADC used here is the supply voltage,
1、程序说明:
该例程演示了单片机内部ADC模数转换测试实验,
通过查询方式读取转换结果,并进行简单的数据处理。
并将得到的电压值通过数码管显示出来。
2、实验操作
将拨码开关S10的SMG端拨到ON端,表示该端接通。
将拨码开关S10的ADC端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
将程序下载到开发板后可观察到数码管显示测到的电压值,
使用电压表测量TP6的电压值,比较二者的误差,
通过调节电位器VR2可以改变ADC的输入电压。
因为这里的ADC使用的参考源为电源电压,理想情况下认为是5V,
实际可能有偏差,用户可测量出开发板实际的电压值,修改程序中
的电压宏定义,测得的结果将更加精确.-Internal query ADC conversion test program
1, descr iption of the procedures:
This routine demonstrates the MCU internal ADC analog-to-digital conversion test,
Through the query to read the conversion results, and simple data processing.
And then the voltage value through digital tube display.
2, experimental operation
Dial switch S10 SMG end of the dial to the ON side, said the terminal is connected.
Dial switch S10 ADC end of the dial to the ON side, said the terminal is connected.
While the other end of the dial switch is disconnected, that is not allocated to the ON side.
Otherwise it will affect the experimental results.
The program is downloaded to the development board can be observed in the digital display voltage values measured from,
Using the voltmeter to measure the voltage value of TP6, comparing the error of the two,
By adjusting the potentiometer VR2 can change the input voltage of ADC.
Because the reference source for the ADC used here is the supply voltage,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5、ADC内部模数转换查询方式实验\ADC_Test.plg
..............................\ADC_Test.uvopt
..............................\ADC_Test.uvproj
..............................\ADC_Test_uvopt.bak
..............................\ADC_Test_uvproj.bak
..............................\.pplication\Doc\readme.txt
..............................\...........\Header\STC12C5A60S2.H
..............................\...........\Source\main.c
..............................\...........\.tartup\STARTUP.A51
..............................\Lis\ADC_Test.m51
..............................\...\main.lst
..............................\...\STARTUP.lst
..............................\Obj\ADC_Test
..............................\...\ADC_Test.hex
..............................\...\ADC_Test.lnp
..............................\...\ADC_Test.plg
..............................\...\main.obj
..............................\...\STARTUP.obj
..............................\...\STARTUP._ia
..............................\Application\Doc
..............................\...........\Header
..............................\...........\Source
..............................\...........\Startup
..............................\Application
..............................\Lis
..............................\Obj
5、ADC内部模数转换查询方式实验