msp430單片機(jī)的ds18b20測(cè)溫度c程序
// 功能函數(shù)定義
unsigned char DS18B20_Init(void){
}//Intialization the 1-wire devices;
unsigned char DS18B20_Init_2(void){
}//Intialization the 1-wire devices;
unsigned char DS18B20_ReadBit(void){
}//Read a bit on the 1-wire bus;
unsigned char DS18B20_ReadBit_2(void){
}//Read a bit on the 1-wire bus;
void DS18B20_WriteBit(unsigned char oww_dat){
}//Write a bit to the 1-wire bus;
void DS18B20_WriteBit_2(unsigned char oww_dat){
}//Write a bit to the 1-wire bus;
unsigned char DS18B20_ReadByte(void){
}//Read a byte from the 1-wire bus;
unsigned char DS18B20_ReadByte_2(void){
}//Read a byte from the 1-wire bus;
void DS18B20_WriteByte(unsigned char oww_dat){
}//Write a byte to the 1-wire bus;
void DS18B20_WriteByte_2(unsigned char oww_dat){
}//Write a byte to the 1-wire bus;
評(píng)論