- NANDBOOT S3C2410 For Wince5.0 NAND Flash 启动的源代码
- connectone_wifi ConnectOne 工业级wifi模块的相关文档
- s-clsvof simple clsvof of2.2.2
- alidecf This is a project for JPEG compression using Slantlet Transform. It s very useful project
- 89267528 FancyButton Easy to use button controls(FancyButton Easy to use the button controls)
文件名称:AD
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:734byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/*软件A/D所能实现的精度有限 , 测量电压范围是2-15V,
而且速度低(约1KHz),但仅用一个电容和一个电阻的诱惑
力,我想大虾您会笑纳的。用于某些场合是有用的。
原理是利用470K电阻对1uF电容充电,利用P0.0口作为检测电压,
当电压低于1/3 VCC时,P0.0读入的I/O电平为0,当充电电压超过
1/3 VCC时,P0.0读入的I/O电平为1。通过测量此过程所用的时间,
就能判断输入电压(需要换算)。
程序的编写用定时器0实现-/* Software A/D can achieve the accuracy is limited, measuring voltage range is 2-15V, and low speed (about 1KHz), but only one capacitor and a resistor of temptation, I think you will accept my gift of prawns. Is useful for certain occasions. Principle is to use 470K resistor to the 1uF capacitor, using P0.0 port as the test voltage, when the voltage is less than 1/3 VCC when, P0.0 read into the I/O level to 0, when the charging voltage over 1/3 VCC time, P0.0 read the I/O level to 1. By measuring the time spent in this process, we can determine the input voltage (with translation). The preparation process to achieve with Timer 0
而且速度低(约1KHz),但仅用一个电容和一个电阻的诱惑
力,我想大虾您会笑纳的。用于某些场合是有用的。
原理是利用470K电阻对1uF电容充电,利用P0.0口作为检测电压,
当电压低于1/3 VCC时,P0.0读入的I/O电平为0,当充电电压超过
1/3 VCC时,P0.0读入的I/O电平为1。通过测量此过程所用的时间,
就能判断输入电压(需要换算)。
程序的编写用定时器0实现-/* Software A/D can achieve the accuracy is limited, measuring voltage range is 2-15V, and low speed (about 1KHz), but only one capacitor and a resistor of temptation, I think you will accept my gift of prawns. Is useful for certain occasions. Principle is to use 470K resistor to the 1uF capacitor, using P0.0 port as the test voltage, when the voltage is less than 1/3 VCC when, P0.0 read into the I/O level to 0, when the charging voltage over 1/3 VCC time, P0.0 read the I/O level to 1. By measuring the time spent in this process, we can determine the input voltage (with translation). The preparation process to achieve with Timer 0
相关搜索: 充电 程序
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AD.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
