DS18B20匹配ROM地址单总线多点测温(STC89C52)
时间:11-26
来源:互联网
点击:
=0)
write_wendu(0x80+addr+5,0x20);
else
write_wendu(0x80+addr+5,0x2d);
if(w1==0)
{
write_wendu(0x80+addr+6,0x20);//百位为0,不显示
if((w1==0)&&(w2==0))
write_wendu(0x80+addr+7,0x20);
else
write_wendu(0x80+addr+7,0x30+w2);
write_wendu(0x80+addr+8,0x30+w3);
}
else
{
write_wendu(0x80+addr+6,0x30+w1);
write_wendu(0x80+addr+10,0x30+w4);
}
}
//************************************************
void
{
while(1)
{
init_1602wendu();
tempchange(1);
display_wendu(1);
tempchange(2);
display_wendu(2);
}
}
DS18B20ROM地址多点测温STC89C5 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)