摘要:系统d~STC89C52单片机为核心的控制模块、速度里程测量模块、温度测量模块以及声光报警模块等部分组成。系统利用霍尔传感器原理进行速度和里程的测量,通过Ds18B2O温度传感器进行温度测量,通过单片机实现速度、温度的警示。系统可作为自行车运动时的码表的使用。
上传时间: 2013-10-13
上传用户:dljwq
#include<iom16v.h> #include<macros.h> #define uint unsigned int #define uchar unsigned char uint a,b,c,d=0; void delay(c) { for for(a=0;a<c;a++) for(b=0;b<12;b++); }; uchar tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,
上传时间: 2013-10-21
上传用户:13788529953
独特的单线接口仅需一个端口引脚进行通讯l 每个器件有唯一的 64 位的序列号存储在内部存储器中l 简单的多点分布式测温应用l 无需外部器件l 可通过数据线供电。供电范围为3.0V到5.5V。l 测温范围为-55~+125℃(-67~+257℉)l 在-10~+85℃范围内精确度为±5℃l 温度计分辨率可以被使用者选择为9~12位l 最多在 750ms 内将温度转换为12 位数字l 用户可定义的非易失性温度报警设置l 报警搜索命令识别并标志超过程序限定温度(温度报警条件)的器件l 与DS1822兼容的软件l 应用包括温度控制、工业系统、消费品、温度计或任何热感测系统
上传时间: 2013-11-15
上传用户:zhyfjj
双向直流(电压/电流)信号隔离转换器是一种混合集成电路。产品主要用于工业控制系统中模拟信号输入输出控制,系统内部通过dsp、plc的da转换输出信号来显示和控制其它装置的可调输出,现场工作电压、电流和各种运行参数的监测及系统外部增加4-20ma(0-20ma)/0-5v标准信号接口等。该ic为标准sip12 pin符合ul-94的阻燃封装,占用pcb板面积少,装入仪器内部可以并联安装实现多路信号的监测、隔离和转换。ic在同一芯片上集成了一个多隔离的dc/dc变换电源和一组模拟信号隔离放大器,输入及输出侧宽爬电距离及内部隔离措施使该芯片可达到3000vdc绝缘电压。sunyuan iso em系列产品使用非常方便,免零点和增益调节,无需外接调节电位器等任何元件,即可实现工业现场信号的隔离转换功能。
上传时间: 2013-10-21
上传用户:windgate
题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。
上传时间: 2015-01-08
上传用户:lifangyuan12
RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
采用12位MAX 197对外部信号采样。采用全周波傅立叶积分算法,对采样信号进行处理,对电力系统的电压有效值、功率等特征量进行实时在线监测;采用全数字测量法测量相位差;并采用自适应技术调整采样间隔,消除非同步采样对计算造成的误差,利用PIC18F458捕获功能实时监测电力系统频率波动,修订采样间隔。分析了各量的测量误差,均达到标准。并提供友好的人机交互界面。
上传时间: 2014-01-25
上传用户:上善若水
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).
上传时间: 2013-12-26
上传用户:siguazgb
The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition
标签: government streamline important alphabet
上传时间: 2015-06-09
上传用户:weixiao99