全部博文(54)
发布时间:2013-05-06 21:03:20
#include <reg52.h>//发送程序unsigned char l,h,key;sbit cs=P3^7; void delay(unsigned t){ while(t--);} void main(){ TMOD=0x20; TH1=0xe8; TL1=0xe8;TR1=1; SM1=1; REN=1;ES=1;EA=1; cs=1.........【阅读全文】
发布时间:2013-05-06 21:00:27
收发同文件:#include<reg52.h>//接收数据unsigned char a;unsigned char l,h,key;void delay(unsigned t){ while(t--);}void main(){ TMOD=0X20; TH1=0XFD; TL1=0XFD; TR1=1; SM0=0; SM1=1; REN=1; EA=1; ES=1; .........【阅读全文】
发布时间:2013-05-06 20:35:42
#includestatic single=1;static single1=1;unsigned char smg[]={0xfe,0xfc,0xfd,0xf9,0xfb,0xf3,0xf7,0xf6};void delay0(){ unsigned t=80; while(t--);}void delay1() { unsigned t=200; while(t--);}void main().........【阅读全文】
发布时间:2013-05-06 19:11:36
定时器。 ORG 0000H ;定时效果基本一致(时间10分钟总长相等) AJMP START ORG 000BH LJMP TIME ORG 0030HSTART:MOV TMOD,#01H MOV TH0,#3CH MOV TL0,#0B0H MOV IP,#02H MOV IE,#82H SETB TR0 MOV H,#23 MO.........【阅读全文】