将键盘发回的数据放到一个缓冲区里(数组),当按键结束后发生内部中断来处理所按的按键
上传时间: 2015-03-22
上传用户:star_in_rain
牛顿拉夫逊算法进行潮流计算,数据处理程序,方便处理实验数据,并取得数学表达式
上传时间: 2015-03-24
上传用户:diets
这是一个页面置换算法的实现,功能描述:输入可用内存页面数和一个作业访问逻辑页号的序列 *给出FIFO、LRU、OPT算法的缺页中断率 *本程序中设初始页框里的页号与实际页号都不同
上传时间: 2015-03-25
上传用户:jkhjkh1982
编译课程设计,自己编的一个词法分析器,功能还算强大,只要自己再在上面加些代码可以构成语法分析,(包括与处理程序).
标签: 编译
上传时间: 2015-04-19
上传用户:lwwhust
实现pc机键盘(p/s2接口)与8位单片机连接使用 原理:键盘时钟接在p3.2口,既8051的外部中断int0上,键盘数据接到p1.0上 每次按键,键盘会向单片机发脉冲使单片机发生外部中断,数据有p1.0口一位一位传进来 传回的数据格式为:1位开始位(0),8位数据位(所按按键的通码,用来识别按键),1位校验位(奇校验) 1位结束位(1) 实现:将键盘发回的数据放到一个缓冲区里(数组),当按键结束后发生内部中断来处理所按的按键 缺点:由于51单片机的容量有限所以缓冲区不可以开的太大,这就导致可以记录键盘的按键次数过少, 也就是容错性一般。不过如果正常使用键盘是不会出错的
上传时间: 2013-12-05
上传用户:清风冷雨
凌阳单片机4*4键盘扩展源代码及原理电路(PDF格式),包括键盘扫描初始化,键盘扫描服务函数,以及键盘防抖动处理程序。
上传时间: 2015-05-12
上传用户:我干你啊
数字运算,判断一个数是否接近素数 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
这是,关于中断的示例程序
标签:
上传时间: 2015-05-22
上传用户:qweqweqwe
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将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
c语言版的多项式曲线拟合。 用最小二乘法进行曲线拟合. 用p-1 次多项式进行拟合,p<= 10 x,y 的第0个域x[0],y[0],没有用,有效数据从x[1],y[1] 开始 nNodeNum,有效数据节点的个数。 b,为输出的多项式系数,b[i] 为b[i-1]次项。b[0],没有用。 b,有10个元素ok。
上传时间: 2014-01-12
上传用户:变形金刚