#include #include __CONFIG(0x3F32); //芯片装备字 #define LCDRS #define LCDRW #define LCDE #define LCDDATA #define DS18B20 #define TRIS_B20 TRISE0 void LCD1602_INIT(void); void WRITE_LCD_CMD (char cmd); void WRITE_LCD_DATA (char data); void LCD_Display(char *s); void LCD_Display_location void LCD1602_BUSY(); void US_delay ( int t); void itoa10(unsigned char *buf, int i); int strlen (const char *s); void DS18B20_INIT(); void WRITE_DS18B20_CMD(char cmd); float READ_DS18B20 (); char bank1 DAT_BUFF1[]= “Temperature:”; char Found_DS18B20[]=”DS1820 FOUND”; char DS18B20_NOT_Found[]=”DS1820 NOT FOUND”; char bank1 DAT_BUFF2[]= “ #define CLRLCD 0X01 #define LCDMOD 0X38 #define TURNON 0X0F #define CURMODE 0X06 #define ORG1 #define ORG2 #define SKIPROM 0XCC #define READSCRACHPAD 0XBE #define TCONVERT 0X44 #define DS18b20_RESET 10 #define DSRECOVER 1 float temperature; char bank1 atemperature[10]; void main() { } int strlen(const char * s) { } void LCD_Display(char *s) { } void LCD1602_BUSY() { } void LCD_Display_location { } void WRITE_LCD_DATA(char data) { }
PIC16F877A例程—DS18B20
includepich>includepic1687xh>__CONFIG(0x3F32);芯片配置字defineLCDRSRB2defineLCDRWRB1defineLCDERB0de
声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/zhishi/260714.html