PC与单片机双向通讯智能温控程序 #include <AT89X51.H> #include <intrins.h> #define Key_UP P1_0 #define Key_DOWN P1_1 #define Key_SET P1_2 #define RelayOutPort P2_0 #define LEDPort P0 #define DELPort P2_1 #define LEDTwoC P3_6 #define LEDThreeC P3_7 #define TMPort P2_7 #define INBUF_LEN 5 //数据长度 unsigned char inbuf1[INBUF_LEN]={ 0 , 0 , 0 , 0 , 0 } //发送缓冲区 unsigned char inbuf2[50] //接收缓冲区 unsigned char count3 void init_serialcomm( void ) { SCON = 0x50 //SCON: serail mode 1, 8-bit UART, enable ucvr TMOD |= 0x20 //TMOD: timer 1, mode 2, 8-bit reload PCON |= 0x80 //SMOD=1 TH1 = 0xFA //Baud:4800 fosc=11.0592MHz IE |= 0x90 //Enable Serial Interrupt TR1 = 1 // timer 1 run } //向串口发送一个字符 void send_char_com( unsigned char ch) { SBUF=ch while (TI== 0 ) TI= 0
标签: include intrins define Key_UP
上传时间: 2014-11-29
上传用户:风之骄子
奇迹仓库管理器源码,易语言编写,支持1.02~1.04版本服务端数据库
上传时间: 2017-02-14
上传用户:xyipie
淡淡网络奇迹登录器客户端易语言源代码,支持所有1.0D~~1.02版本
上传时间: 2013-12-28
上传用户:semi1981
淡淡网络奇迹登录器服务端易语言源代码,支持所有1.0D~~1.02版本
上传时间: 2014-06-20
上传用户:三人用菜
Instead of finding the longest common subsequence, let us try to determine the length of the LCS. Then tracking back to find the LCS. Consider a1a2…am and b1b2…bn. Case 1: am=bn. The LCS must contain am, we have to find the LCS of a1a2…am-1 and b1b2…bn-1. Case 2: am≠bn. Wehave to find the LCS of a1a2…am-1 and b1b2…bn, and a1a2…am and b b b b1b2…bn-1 Let A = a1 a2 … am and B = b1 b2 … bn Let Li j denote the length of the longest i,g g common subsequence of a1 a2 … ai and b1 b2 … bj. Li,j = Li-1,j-1 + 1 if ai=bj max{ L L } a≠b i-1,j, i,j-1 if ai≠j L0,0 = L0,j = Li,0 = 0 for 1≤i≤m, 1≤j≤n.
标签: the subsequence determine Instead
上传时间: 2013-12-17
上传用户:evil
//--- --- --- - 音乐简谱播放器--- --- --- - /*奏乐程序使用说明 调用方式: sing fname [speed [times]] 文件名 速度(拍/分) 遍数 简谱文件格式: 第1行: 曲名 节拍 调号 第2行-- 乐谱 (空格,换行无意义,但不得插在一个"音描述"内部) 记号: * 节拍,调号,小节分隔符,终止符,升音符,中音音高,休止符,附点,延长 符等 -- 按照常规. * 音描述 -- [3连音符][升降还原符]音高[高低音后缀][音长][附点][延长符] * 3连音符 -- ^ 只标在第1音前,音长只标在第3音后 (3连音的实际总音长为所标音长的两倍,例如:^323 的总音长为1拍) * 降音符 -- @ * 还原符 -- $ * 高低音后缀 -- H(高音) U(高16度音) 连用音程相加 L(低音) W(低16度音) * 音长 -- 无(1拍) (1/2拍) "(1/4拍) 连用为相乘*/
上传时间: 2014-11-28
上传用户:hj_18
mimo系统的仿真,提供发射天分别使用1发1收,和1发多收的各种情况下的误码率比较。IEEE论文的远程序。
上传时间: 2014-01-12
上传用户:gmh1314
Google maps切割方法 每个切割的小图片是256*256(像素),常识来判断每个小图片代表的实际区域长宽之比应为2:1,但由于投影不同的存在,其实它是1:1 的,至于中间过程怎么处理的我也没搞明白。 关于51ditu
上传时间: 2014-12-03
上传用户:zuozuo1215
java开源订销管理系统源码,为连接池使用的apache commons-dbcp-1.2.1管理数据库连接[tomcat自带],确保该包可用.若要使用其它数据库连接沲,需要修改easyjf-dbo.xml文件中的相应配置。
上传时间: 2017-03-12
上传用户:xzt
学生考试成绩统计管理系统编写程序完成某班学生考试成绩的统计管理,包括成绩输入函数、成绩显示函数, 并计算每位同学的总分、平均分,对成绩排名输出
上传时间: 2013-12-28
上传用户:宋桃子