Chinaunix首页 | 论坛 | 博客
  • 博客访问: 182972
  • 博文数量: 54
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-31 23:14
文章存档

2014年(2)

2013年(52)

发布时间:2013-05-06 21:06:20

AD转换:#include<reg52.h>#include<intrins.h>sbit rs=P2^0;sbit rw=P2^1;sbit e=P2^2;sbit dout=P2^3;sbit addr=P2^4;sbit cs=P2^5;sbit clk=P2^6;sbit eoc=P2^7;void delay(int t){   while(t--);}void write_com(unsigned char com){    e=0;   rs=0;  &nb.........【阅读全文】

阅读(1050) | 评论(0) | 转发(1)

发布时间: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.........【阅读全文】

阅读(1190) | 评论(0) | 转发(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; .........【阅读全文】

阅读(1116) | 评论(0) | 转发(1)

发布时间:2013-05-06 20:36:39

我......【阅读全文】

阅读(1101) | 评论(1) | 转发(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().........【阅读全文】

阅读(1025) | 评论(0) | 转发(1)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册