//———————–函数声明,变量界说——————————————————–
#include
sbit DQ=P1^0;
//————————————————————————————————–
// 函数称号: delay
// 进口参数: N
// 函数功用:延时子程序,完成(16*N+24)us的延时
// 体系选用11.0592MHz的时钟时,延时满足要求,其它状况需求改动
//————————————————————————————————–
//————————————————————————————————–
// 函数称号: Reset
// 进口参数: 无
// 回来deceive_ready
// 函数功用:复位
//————————————————————————————————–
unsigned char Reset(void)
{
}
//————————————————————————————————–
// 函数称号:read_bit
// 进口参数: 无
// 回来接纳的数据
// 函数功用:读一个bit子程序
//————————————————————————————————–
unsigned char read_bit(void)
{
unsigned char i;
DQ=0;
DQ=1;