Demo程序经Keil701编译后,代码量为7-8K,可直接在KeilC51上仿真运行。 使用方法:解压后双击yy项目,点调试即可在串口仿真看到结果。 Demo程序创建了3个任务A、B、C优先级分别为2、3、4,A每秒显示一次,B每3秒显示一次,C每6秒显示一次。从显示结果看,显示3个A后显示1个B,显示6个A和2个B后显示1个C,结果显然正确。用户可以仿照范例运用更多系统API函数写出自己的程序。只要程序中有显示语句就可以用软件仿真器看结果。注意:系统提供的显示函数是并发的,他不是直接显示到串口,而是先输出到显存,用户不必担心IO慢速操作影响程序运行。串口输入也采用了同样的技术,他使得用户在CPU忙于处理其他任务时照样可以盲打输入命令。 将EXL2-shell目录下的文件覆盖yy目录下的同名文件,将word.c、yyshell.c、yyshellsub.c、mystring.c加入项目,删除yy1.c,编译后调试即可。输入help可得到在线帮助,具体命令用法见文章说明。 yangye网友推荐http://www.sics.se/~adam/lwip/网站学习TCPIP,该网站开放源代码的lwip是专为8bit和16bitMCU设计的TCPIP协议栈,已在多种CPU上移植成功,推荐大家下载。
上传时间: 2014-11-01
上传用户:hopy
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
一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。
标签: 分析器
上传时间: 2013-12-20
上传用户:qq21508895
手机文件浏览程序的另外一个版本! SMan is a system utility that manages your UIQ device. It provides functionality which manufacturers did not provide or which are difficult or impossible to do manually. SMan helps keep your UIQ device running in a "healthy" state and, to a certain degree, allows you to customize the system behaviour of your device.
标签: functionality provides manages utility
上传时间: 2013-12-09
上传用户:独孤求源
Description: C4.5Rule-PANE is a rule learning method which could generate accurate and comprehensible symbolic rules, through regarding a neural network ensemble as a pre-process of a rule inducer. Reference: Z.-H. Zhou and Y. Jiang. Medical diagnosis with C4.5 rule preceded by artificial neural network ensemble. IEEE Transactions on Information Technology in Biomedicine, 2003, vol.7, no.1, pp.37-42. 使用神经网络集成方法诊断糖尿病,肝炎,乳腺癌症的案例研究.
标签: comprehensibl Description Rule-PANE accurate
上传时间: 2013-11-30
上传用户:wcl168881111111
this is a trade sale system realized by java. It can run some easy functions and has a good design pattern CVS. A good project to learn CVS.
标签: functions realized design system
上传时间: 2015-04-17
上传用户:sz_hjbf
Draak is a multi-language, macro compiler, meaning all syntax and code generation is defined in a single file. Draak is a single binary that is able to compile any context free language (like C, Pascal, Java) for any platform with only 1 file. Draak Compiler是一个多语言,宏编译器,可以在一个单独的文件中定义所有的语法和代码生成。Draak 是一个单独的二进制文件,可以在任意平台上只使用一个文件来编译任何上下文无关的语言(类似 C, Pascal, Java)。
标签: multi-language generation compiler defined
上传时间: 2013-12-30
上传用户:a673761058
二分图是一个无向图,它的n 个顶点可二分为集合A和集合B,且同一集合中的任意两个顶点在图中无边相连(即任何一条边都是一个顶点在集合A中,另一个在集合B中)。当且仅当B中的每个顶点至少与A中一个顶点相连时,A的一个子集A 覆盖集合B(或简单地说,A 是一个覆盖)。覆盖A 的大小即为A 中的顶点数目。当且仅当A 是覆盖B的子集中最小的时,A 为最小覆盖。
上传时间: 2015-05-07
上传用户:alan-ee
This a script for working with short TCP files with several source nodes, sharing a single bottleneck link with a RED buffer
标签: with bottlenec working several
上传时间: 2013-12-15
上传用户:Miyuki
数字运算,判断一个数是否接近素数 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