全部博文(54)
发布时间:2013-05-07 20:40:28
本实验无仿真,自制实验板;相关连接见附件。c:NRF905收发程序 温度传送.zippcb图:NRF终极版.zip涉及芯片:NRF 905 1023BG 三极管:S9011 C 331 电容:100UF 二极管:IN5819引脚:1,VCC 2,TXE 3,CE, &.........【阅读全文】
发布时间:2013-05-06 21:34:48
c:.zip#include <reg52.h> //采用11.0592晶振 发送#include "send.h"sbit signalBit=P1^0;sbit p20=P2^0;sbit p21=P2^1;sbit p22=P2^2;sbit p23=P2^3;sbit p24=P2^4;sbit p25=P2^5;sbit p26=P2^6;sbit p27=P2^7;void SendIRdata(uchar dat) { uchar i,j,dat0=~dat;/********* 发送9ms.........【阅读全文】
发布时间:2013-05-06 21:31:22
24c02密码为55;c:#include#include#define uchar unsigned char#define uint unsignedsbit rs=P2^4;sbit rw=P2^5;sbit e=P2^6;//////////sbit sda=P2^1;sbit scl=P2^0;sbit s=P2^2;uchar zm1[]="Password please!";uchar zm2[]="----- ------";uchar dat[2]="22";unsig.........【阅读全文】
发布时间:2013-05-06 21:11:10
温度采集:c:DS18B20.zip#include<reg52.h>#include<intrins.h>#define uchar unsigned char#define uint unsignedsbit rs=P2^4;sbit rw=P2^5;sbit e=P2^6;sbit dq=P2^3;uchar zm1[]=" temperature: ";uchar zm2[]=" 00.0 c ";uchar zm3[]=" NO DS18B20.........【阅读全文】
发布时间:2013-05-06 21:08:38
AD转换:方波#include<reg52.h>#include<math.h>#define uchar unsigned char#define uint unsigned sbit SCLK=P2^0;sbit CS=P2^1;sbit DIN=P2^2;sbit p=P2^3;float x,y;void delay(uchar t){ while(t--);}void WRITE(int DATA){ uchar i; CS=0; SCLK=0; DATA<<=2; for(i=1.........【阅读全文】