文件名称:F06x_ADC2_ExternalInput
介绍说明--下载内容来自于网络,使用问题请自行百度
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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.