mega8和ds18b20的温度采集程序
2012-06-30 7
本程序为采用mega8 和ds18b20的温度采集程序 选用mega8内部8M RC震荡,ds18b20 数据线接pd6,数据线和vcc间接一4.7k上拉电阻 感谢dfgeoff 嗜血蜗牛提供的资料*/ #include < avr / io.h > #include <timer.h> #define uchar unsigned char #define uint unsigned int void init_1820(); write_1820(uchar x); uchar .. [查看全文]

本站简介 | 意见建议 | 免责声明 | 版权声明 | 联系我们
CopyRight@2024-2039 嵌入式资源网
蜀ICP备2021025729号