MyFpga.cn 全站声明(如您访问本站,则视为同意此声明!)

15
2020
10

CT107D DS18B20

先贴上核心代码unsigned char get_temp(void) { unsigned char TH,TL; init_ds18b20(); Write_DS18B20(0xCC); Write_DS18B20(0x44); Delay_OneWire(200); init_ds18b20(); Write_DS18B20(0xCC); Write_DS18B20(0xBE); TL=Read_DS18B
15
2020
10

CT107D DS1302

使用官方的ds1302.h和ds1302.c,下方有核心代码讲解main.c#include<reg52.h> #include<intrins.h> #include<ds1302.h> typedef unsigned char BYTE; typedef unsigned int WORD; #define FOSC 11059200L  &

返回顶部