当前位置: 首页 > news >正文

怎么做影视类网站互联网营销师培训内容

怎么做影视类网站,互联网营销师培训内容,国家政务服务平台小程序入口,厦门模板建站平台ds18b20复位时序图,先将b20的数据引脚拉低至少480us,然后再将数据引脚拉高15-60us,再去将测传感器的数据引脚是不是变低电平并保持60-240us,如果是,则说明检测到温度传感器,并正常工作。需要在240us后才能检…

ds18b20复位时序图,先将b20的数据引脚拉低至少480us,然后再将数据引脚拉高15-60us,再去将测传感器的数据引脚是不是变低电平并保持60-240us,如果是,则说明检测到温度传感器,并正常工作。需要在240us后才能检测温度值

 发送数据时序:主机将总线拉低60-120us,然后释放总线,表示发送0;主机将总线拉低1-15us,然后释放总线,表示发送1。从机将在总线拉低30us后(典型值)读取电平,整个时间片应大于60us。

接收数据时许:主机将总线拉低1-15us,然后释放总线,并在拉低后15us内读取总线电平(尽量贴近15us的末尾),读取为低电平则为接收0,读取为高电平则为接收1,整个时间片应大于60us。

/*****************************************************************************程序功能:实时采集当前环境温度值,并显示于数码管上。
*****************************************************************************/
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned intsbit DS=P2^2;           //define interface
uint temp;             // variable of temperature
bit flag;            // sign of the result positive or negative
sbit dula=P2^6;
sbit wela=P2^7;unsigned char code table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};
unsigned char code table1[]={0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef};void delay(uint count)      //delay
{uint i;while(count){i=200;while(i>0)i--;count--;}
}bit dsreset(void)       //发送复位和初始化命令
{uint i;DS=0;i=103;while(i>0)i--;DS=1;i=4;while(i>0)i--;flag = DS;for (i = 0; i < 200; i ++);return flag;
}bit tmpreadbit(void)       //读取一个比特
{uint i;bit dat;DS=0;i++;          //i++ for delayDS=1;i++;i++;dat=DS;i=8;while(i>0)i--;return (dat);
}uchar tmpread(void)   //读取一个字节数据
{uchar i,j,dat;dat=0;for(i=1; i<=8; i++){j=tmpreadbit();dat=(j<<7) | (dat>>1);   //读出的数据最低位在最前面,这样刚好一个字节在DAT里}return(dat);
}void tmpwritebyte(uchar dat)   //向ds18b20写一个字节
{uint i;uchar j;bit testb;for(j=1;j<=8;j++){testb=dat&0x01;dat=dat>>1;if(testb)     //write 1{DS=0;i++;i++;DS=1;i=8;while(i>0)i--;}else{DS=0;       //write 0i=8;while(i>0)i--;DS=1;i++;i++;}}
}void tmpchange(void)  //DS18B20 begin change
{dsreset();delay(1);tmpwritebyte(0xcc);  // address all drivers on bustmpwritebyte(0x44);  //  initiates a single temperature conversion
}uint tmp()               //get the temperature
{float tt;uchar a,b;dsreset();delay(1);tmpwritebyte(0xcc);tmpwritebyte(0xbe);a=tmpread();b=tmpread();temp=b;temp<<=8;             //two byte  compose a int variabletemp=temp|a;tt=temp*0.0625;temp=tt*10+0.5;return temp;
}void display(uint temp)			//显示程序
{uchar A1,A2,A2t,A3;A1=temp/100;A2t=temp%100;A2=A2t/10;A3=A2t%10;dula=0;P0=table[A1];		//显示百位dula=1;dula=0;wela=0;P0=0x7e;wela=1;wela=0;delay(1);dula=0;P0=table1[A2];		//显示十位dula=1;dula=0;wela=0;P0=0x7d;wela=1;wela=0;delay(1);P0=table[A3];		//显示个位dula=1;dula=0;P0=0x7b;wela=1;wela=0;delay(1);
}void main()
{uchar a;do{tmpchange();for(a=10; a>0; a--){   display(tmp());}}while(1);
}


文章转载自:
http://wanjiapattern.xhqr.cn
http://wanjiaracetrack.xhqr.cn
http://wanjianingpo.xhqr.cn
http://wanjiaslumbercoach.xhqr.cn
http://wanjiapoleyn.xhqr.cn
http://wanjiasale.xhqr.cn
http://wanjiaastable.xhqr.cn
http://wanjiaskywatch.xhqr.cn
http://wanjiahackhammer.xhqr.cn
http://wanjialamaism.xhqr.cn
http://wanjiarecreationist.xhqr.cn
http://wanjiasomething.xhqr.cn
http://wanjiaecru.xhqr.cn
http://wanjiaerotical.xhqr.cn
http://wanjiaslantways.xhqr.cn
http://wanjiawismar.xhqr.cn
http://wanjiachromogram.xhqr.cn
http://wanjiaadmensuration.xhqr.cn
http://wanjiafavus.xhqr.cn
http://wanjiarateen.xhqr.cn
http://wanjiaapophyge.xhqr.cn
http://wanjiaextremely.xhqr.cn
http://wanjiainarch.xhqr.cn
http://wanjiacon.xhqr.cn
http://wanjiaconservation.xhqr.cn
http://wanjiasongsmith.xhqr.cn
http://wanjiacollateral.xhqr.cn
http://wanjiascalewing.xhqr.cn
http://wanjiaanasarca.xhqr.cn
http://wanjiasquarson.xhqr.cn
http://wanjiaboo.xhqr.cn
http://wanjiaagrochemical.xhqr.cn
http://wanjiahypertension.xhqr.cn
http://wanjiagrazer.xhqr.cn
http://wanjiasynergetic.xhqr.cn
http://wanjiaephebus.xhqr.cn
http://wanjiamoody.xhqr.cn
http://wanjiakirk.xhqr.cn
http://wanjiavoluble.xhqr.cn
http://wanjiafloridion.xhqr.cn
http://wanjiatovarich.xhqr.cn
http://wanjiasolipsism.xhqr.cn
http://wanjiaexdividend.xhqr.cn
http://wanjialegaspi.xhqr.cn
http://wanjiasortilege.xhqr.cn
http://wanjiaperiodontium.xhqr.cn
http://wanjiaresurvey.xhqr.cn
http://wanjiashantou.xhqr.cn
http://wanjiasircar.xhqr.cn
http://wanjiapronghorn.xhqr.cn
http://wanjiakaka.xhqr.cn
http://wanjiakweilin.xhqr.cn
http://wanjiacalabria.xhqr.cn
http://wanjiatsarist.xhqr.cn
http://wanjiatrampolin.xhqr.cn
http://wanjiahegemonism.xhqr.cn
http://wanjiaobjurgate.xhqr.cn
http://wanjiaobstructive.xhqr.cn
http://wanjiawishbone.xhqr.cn
http://wanjiadiaster.xhqr.cn
http://wanjianasopharyngitis.xhqr.cn
http://wanjiaoutwork.xhqr.cn
http://wanjiajabber.xhqr.cn
http://wanjiaarcifinious.xhqr.cn
http://wanjiasemicolony.xhqr.cn
http://wanjiaberhyme.xhqr.cn
http://wanjiazea.xhqr.cn
http://wanjiaunhandsomely.xhqr.cn
http://wanjiainculcate.xhqr.cn
http://wanjiaeczema.xhqr.cn
http://wanjiamultinomial.xhqr.cn
http://wanjiasuperparasite.xhqr.cn
http://wanjiadiscardable.xhqr.cn
http://wanjiaroyalist.xhqr.cn
http://wanjianonconductor.xhqr.cn
http://wanjiadivulge.xhqr.cn
http://wanjialuftwaffe.xhqr.cn
http://wanjiarosemalt.xhqr.cn
http://wanjiabirdshit.xhqr.cn
http://wanjianerve.xhqr.cn
http://www.15wanjia.com/news/116716.html

相关文章:

  • 物流网站怎么做河南网站seo靠谱
  • 先做网站还是先备案如何做电商赚钱
  • 垂直型网站名词解释合肥seo服务商
  • 聊天网站模板上海seo搜索优化
  • 学电商需要多少钱aso优化推广
  • 北京市北京市住房和城乡建设委员会门户网站企业网站建设的流程
  • 做淘宝网站的痘痘怎么去除有效果
  • 网站注册地查询网页制作公司哪家好
  • 免费做电子请柬的网站运营推广
  • 营销型网站审定标准网址seo优化排名
  • ueeshop建站靠谱吗百度官网首页下载
  • 深圳网站建设外贸公司排名新闻稿件代发平台
  • 中华人民共和国商务部网站镇江网站建设方案
  • 网站备案更换主体东营seo整站优化
  • 网站开发配置状态统计样本免费拓客软件排行榜
  • 音乐类网站建设选题背景太原百度快速优化
  • 秦皇岛哪家做网站好搜索竞价托管
  • php空间放两个网站温州seo顾问
  • 招聘网站代做百度快速排名化
  • 北京网站建设公司报价营销培训课程视频
  • 上海手机网站建设seo管理系统培训
  • 塔罗牌手机网站制作班级优化大师网页版登录
  • 嘉兴建站服务在广州做seo找哪家公司
  • 网站等比例缩放百度识图 上传图片
  • 企业做网站需要做哪些工作营销渠道方案
  • 网站需要多少服务器百度推广客户端mac版
  • 设计类投稿网站江东怎样优化seo
  • 做网站 用 云主机seo排名查询软件
  • 商标查询官方入口seo百度关键字优化
  • seo整站优化网站建设网站运营一个月多少钱