基于.12864与18B20的温度液晶显示.docx

上传人:王** 文档编号:1105062 上传时间:2024-03-27 格式:DOCX 页数:22 大小:51.78KB
下载 相关 举报
基于.12864与18B20的温度液晶显示.docx_第1页
第1页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第2页
第2页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第3页
第3页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第4页
第4页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第5页
第5页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第6页
第6页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第7页
第7页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第8页
第8页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第9页
第9页 / 共22页
基于.12864与18B20的温度液晶显示.docx_第10页
第10页 / 共22页
亲,该文档总共22页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《基于.12864与18B20的温度液晶显示.docx》由会员分享,可在线阅读,更多相关《基于.12864与18B20的温度液晶显示.docx(22页珍藏版)》请在优知文库上搜索。

1、基于12864及18B20的温度液晶显示#include#include#include#include#include*Definetheregistercommandcode*/#defineDisp_0n0x3f#defineDisp_Off0x3e#defineCol_Add0x40#definePage_Add0xb8#defineStart_LineOxcO#defineLcd_BusPO#defineucharunsignedchar#defineuintunsignedintuchartl,t2,t3,ser;*与单片机的单总线接口/*可变温度值/*温度正负标志sbitDS=P

2、22;*/uinttemp;*/ucharfIagl;*/sbitMcs=P37;sbitScs=P24;sbitEnable=P3*4;sbitDi=P35;sbitRW=P6;sbitLCCLRSt=P21;sbitDI0=P25;sbitDU=P26;sbitWE=P27;charcodeezk=0xF8,OXFC,0x04,0xC4,0x24,OXFC,0xF8,0x00,/-0-0x07,OxOF,0x09,0x08,0x08,OxOF,0x07,0x00,0x00,0x10,0x18,OxFC,OXFC,0x00,0x00,0x00,/-1-0x00,0x08,0x08,OxOF,

3、OxOF,0x08,0x08,0x00,0x08,OxOC,0x84,0xC4,0x64,0x3C,0x18,0x00,/2OxOE,OxOF,0x09,0x08,0x08,OxOC,OxOC,0x00,0x08,OxOC,0x44,0x44,0x44,OxFC,0xB8,0x00,/-3-0x04,OxOC,0x08,0x08,0x08,OxOF,0x07,0x00,OxCO,OxEO,OxBO,0x98,OxFC,OxFC,0x80,0x00,/-4-0x00,0x00,0x00,0x08,OxOF,OxOF,0x08,0x00,0x7C,0x7C,0x44,0x44,0xC4,0xC4,

4、0x84,0x00,/-5-0x04,OxOC,0x08,0x08,0x08,OxOF,0x07,0x00,OxFO,0xF8,0x4C,0x44,0x44,OxCO,0x80,0x00,/-6-0x07,OxOF,0x08,0x08,0x08,OxOF,0x07,0x00,OxOC,OxOC,0x04,0x84,0xC4,0x7C,0x3C,0x00,/70x00,0x00,OxOF,OxOF,0x00,0x00,0x00,0x00,0xB8,OxFC,0x44,0x44,0x44,OxFC,0xB8,0x00,/-8-0x07,OxOF,0x08,0x08,0x08,OxOF,0x07,0

5、x00,0x38,0x7C,0x44,0x44,0x44,OxFC,0xF8,0x00,/-9-0x00,0x08,0x08,0x08,OxOC,0x07,0x03,0x00,/*0x30,0x30已改为.*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,;ucharcodeFirstPageEJ二(0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x30,0x10,0x80,0x30,0x10,0x80,0xC8,OxBO,OxBO,0x76,0x

6、C8,0xE8,0x76,0x99,0x7C,0x7E,0x9F,0x79,0x7C,0x7E,0x79,0x3E,OxlC,0x09,0x37,0x13,0x09,OxOE,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x20,0x20,0x00,0x23,0x32,0x98,0x44,0x63,0x33,0x9C,0x23,0x75,OxCC,0x

7、03,0x25,0x34,OxlB,0x04,0x26,0x33,0x04,0x82,0x03,0x30,0x03,0x80,0x80,0x40,0x08,0x98,0x80,0x40,0x40,0x00,0x80,0x40,OxCO,0x00,0x00,0x00,0x80,0x80,OxCO,OxCO,OxOO,0x00,0x80,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOO,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x

8、01,0x00,0x00,OxOO,0x00,0x20,0x60,OxCO,0x02,0x12,0x98,OxCO,OxCC,0x85,0x20,OxEC,OxFO,0xF9,0xE4,OxFC,OxFC,OxFD,OxFE,OxFC,OxFC,OxFF,OxFE,OxFF,OxFF,OxFE,OxFF,OxFF,OxFE,OxFF,OxFF,OxFE,OXFC,OxFE,0x00,OxCO,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxOC,0x06,0x06,0x60,0x08,0x4D,OxED,0xF8,OxFE,0x63,0x01,0x00,0x48,0x

9、6D,OxFF,OxFF,OxFF,OxFF,0x81,0xC9,OxED,0xE7,0xF3,0xE2,OxEO,0x31,0x69,OxOF,0x6E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x08,0x08,0x60,OxFF,OxFF,OxFF,0x7F,OxFF,0x78,0x33,0x78,0x38,0x18,0x68,0x99,OxBB,OxlF,0x07,0x07,0x03,0x01,0x06,0x05,0x01,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x

10、03,0x01,0x00,OxlB,0x01,0x00,0x06,0x00,0x02,0x03,0x00,0x04,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x

11、00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,OxFE,OxFF,OxFF,OxFF,OxFF,OxFF,OxFFOxFE,OxFO,0xF8,OxFO,OxFO,0x20,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOOOxFF,OxFF,

12、OxlF,0x9F,0x9F,OxOF,0x67OxFF,OxFF,OxFF,OxFF,OxEF,0xE7,0xF30x2D,OxDF,0x8F,0xD7,0x93,0x03,OxOF0x00,0x00,0x00,0x00,0x00,0x00,OxOOOxFF,0x79,0xB6,0xB8,0x78,0x96,0x780x3F,OxlF,OxOF,0x3F,OxlF,OxOF,OxOF0x01,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x06,0x00,0x04,0x04,0x01,OxOO0x00

13、,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,OxOO0x00,0x00,0x00,0x00,0x00,0x00,Ox

14、OO0x00,0x00,0x00,0x00,0x00,0x00,OxOO,0x00,0x00;ucharcodeSecondPage=/数据表64*64(OxFF,0x03,0x01,0x03,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OXFF,0x01,0x01,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,0x01,0x01,OxFF,OxFF,OxFF,OxOF,0x03,0x01,0x39,0x19,0x39,0x39,0x39,0x19,0x19,0x09,Oxl

15、B,OxFF,OxCl,0x81,0x8F,0x9F,0x9F,0x9F,0x9F,0x01,0x01,OxlF,0x9F,0x9F,0x9F,0x9F,0x81,OxCl,0xF3,OxFF,OxFF,0x00,0x00,0x00,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,0x00,0x00,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,OxFF,0x00,OxOO,OxFF,OxFF,OxFF,0x00,0x00,0x00,OxCF,OxCF,OxCF,OxCF,OxCF,OxCF,OxCO,0x60,0xF8,OxFF,0x03,0x01,0x48,OxCC,OxCC,OxCC,OxCC,0x00,0x00,0x48,OxCC,OxCC,OxCC,0x48,0x01,OxOl,OxCF,OxFF,OxFF,OxCO,0x80,0x80,0x9F,0x9F,0x9F,0x9F,0x9

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 通信/电子 > 电子设计

copyright@ 2008-2023 yzwku网站版权所有

经营许可证编号:宁ICP备2022001189号-2

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!