文件名称:F06x_ADC2_ExternalInput
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-03-31
- 文件大小:
- 4kb
- 下载次数:
- 0次
- 提 供 者:
- liya****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
C8051F060 外设ADC2程序.测量一个外部电压,并通过串口和终端打印功能将测量结果传到计算机windows终端.-This program measures the voltage on an external ADC input and prints the
result to a terminal window via the UART.
The system is clocked using the internal 24.5MHz oscillator.
Results are printed to the UART from a loop with the rate set by a delay
based on Timer 2. This loop periodically reads the ADC value from a global
variable, Result.
The ADC makes repeated measurements at a rate determined by SAMPLE_RATE
using Timer 3. The end of each ADC conversion initiates an interrupt which
calls an averaging function.
result to a terminal window via the UART.
The system is clocked using the internal 24.5MHz oscillator.
Results are printed to the UART from a loop with the rate set by a delay
based on Timer 2. This loop periodically reads the ADC value from a global
variable, Result.
The ADC makes repeated measurements at a rate determined by SAMPLE_RATE
using Timer 3. The end of each ADC conversion initiates an interrupt which
calls an averaging function.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
F06x_ADC2_ExternalInput.c