登录
首页 » c » PIC8单片机ADC应用

PIC8单片机ADC应用

于 2022-01-25 发布 文件大小:2.45 kB
0 97
下载积分: 2 下载次数: 1

代码说明:

#include volatile unsigned char adresult; void ADC_Sample(unsigned char adch); void DelayXms(unsigned char x); #define _DEBUG //调试程序用 /********************************************************** 函数名称:AD_Sample 函数功能:AD检测 入口参数:adch - 检测通道 出口参数:无  备    注:采样通道需自行设置为模拟口      采样10次,取中间八次的平均值为采样结果存于adresult中 **********************************************************/ void ADC_Sample(unsigned char adch) { static unsigned int adsum = 0; static unsigned char admin = 0,admax = 0; static unsigned char adtimes = 0; ADCON1 = 0; //左对齐 ADCON0 = 0X41 | (adch

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • eisence-Chinese
    VC essence of the article, Pi Chinese computer library production
    2017-07-21 23:17:39下载
    积分:1
  • Dcp
    翅片上冷凝 udf,由于存在shadow必须考虑两侧冷凝udf。所以需要考虑两侧相变传热传质(The condensation of UDF on the fin, due to the presence of shadow, must be considered on both sides of the condensing udf. Therefore, it is necessary to consider the heat transfer and mass transfer on both sides)
    2017-09-05 10:45:03下载
    积分:1
  • Another type
    Another type-safe alternative to Boost s string format library.
    2022-01-25 18:01:14下载
    积分:1
  • HookRegister
    控制注册表,注册表监控操作、拦截操作,结构清晰(Control registry, registry monitoring operation, blocking action)
    2011-02-01 12:00:41下载
    积分:1
  • OQPSK调制
    说明:  基于OQPSK,高斯信道和瑞利信道的matlab仿真程序(Matlab simulation program based on OQPSK)
    2019-02-26 19:12:16下载
    积分:1
  • MATLAB仿真源文件
    说明:  实现点云地图ICP算法匹配和EKF定位,通过将十帧点云数据进行拟合生成一张融合地图(ICP algorithm matching and EKF positioning of point cloud map are realized, and a fusion map is generated by fitting ten frames of point cloud data)
    2021-01-19 16:18:30下载
    积分:1
  • GTS卡实现单轴运动、插补运动、PVT运动
    GTS卡实现单轴运动、插补运动、PVT运动,可用于测试固高运动控制卡,以上全部在四轴机器人上运行通过
    2022-07-05 05:08:44下载
    积分:1
  • complete statistics accumulation of the number of steps algorithm dimensional ar...
    完成统计聚点个数的算法步骤 用一维数组记录各个聚点的象素点数 用快速排序方法对数组排序 按计算平均象素点数 在外存中用文件的形式保存所有数据 -complete statistics accumulation of the number of steps algorithm dimensional array with a record of each meeting point of the pixel points rapid sequencing methods used Sorting an array by the calculation of the average pixel points in Disk used in the form of a document to preserve all data
    2022-06-27 20:43:03下载
    积分:1
  • zhanqunxitong
    泊君站群免费版源码下载,真正的站群系统,站群工具,站群软件,大家可以看看思路(The mooring the monarch station group free version of the source code download, the station group system, the tools of the station group, station group software, we can look at the idea of)
    2013-04-01 05:21:39下载
    积分:1
  • 16
    说明:  Visual C++安例开发集锦,多媒体应用,实现用playsound播放声音文件(Visual C++ development highlights security cases, multimedia applications, to achieve the sound file plays with playsound)
    2010-03-31 18:43:49下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载