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

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

ID:50381670

大小:78.50 KB

页数:22页

时间:2020-03-05

基于12864与18B20的温度液晶显示2.doc_第1页
基于12864与18B20的温度液晶显示2.doc_第2页
基于12864与18B20的温度液晶显示2.doc_第3页
基于12864与18B20的温度液晶显示2.doc_第4页
基于12864与18B20的温度液晶显示2.doc_第5页
资源描述:

《基于12864与18B20的温度液晶显示2.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、.基于12864及18B20的温度液晶显示#include#include#include#include#include/*-------------------Definetheregistercommandcode----------------------*/#defineDisp_On0x3f#defineDisp_Off0x3e#defineCol_Add0x40#definePage_Add0xb8#defineStart_Line0xc0#defineLcd

2、_BusP0#defineucharunsignedchar#defineuintunsignedintuchart1,t2,t3,ser;sbitDS=P2^2;         /*----------与单片机的单总线接口--------*/uinttemp;            /*----------可变温度值------------------*/ucharflag1;          /*----------温度正负标志----------------*/sbitMcs=P3^7;      sbitScs=P2^4;        sbitEna

3、ble=P3^4;   sbitDi=P3^5;    sbitRW=P3^6;   sbitLcd_Rst=P2^1;    sbitDIO=P2^5;sbitDU=P2^6;sbitWE=P2^7;charcodeezk[]={....0xF8,0xFC,0x04,0xC4,0x24,0xFC,0xF8,0x00,//-0-0x07,0x0F,0x09,0x08,0x08,0x0F,0x07,0x00,0x00,0x10,0x18,0xFC,0xFC,0x00,0x00,0x00,//-1-0x00,0x08,0x08,0x0F,0x0F,0x08,0x08,

4、0x00,0x08,0x0C,0x84,0xC4,0x64,0x3C,0x18,0x00,//-2-0x0E,0x0F,0x09,0x08,0x08,0x0C,0x0C,0x00,0x08,0x0C,0x44,0x44,0x44,0xFC,0xB8,0x00,//-3-0x04,0x0C,0x08,0x08,0x08,0x0F,0x07,0x00,0xC0,0xE0,0xB0,0x98,0xFC,0xFC,0x80,0x00,//-4-0x00,0x00,0x00,0x08,0x0F,0x0F,0x08,0x00,0x7C,0x7C,0x44,0x44,0xC4,

5、0xC4,0x84,0x00,//-5-0x04,0x0C,0x08,0x08,0x08,0x0F,0x07,0x00,0xF0,0xF8,0x4C,0x44,0x44,0xC0,0x80,0x00,//-6-0x07,0x0F,0x08,0x08,0x08,0x0F,0x07,0x00,0x0C,0x0C,0x04,0x84,0xC4,0x7C,0x3C,0x00,//-7-0x00,0x00,0x0F,0x0F,0x00,0x00,0x00,0x00,0xB8,0xFC,0x44,0x44,0x44,0xFC,0xB8,0x00,//-8-0x07,0x0F,

6、0x08,0x08,0x08,0x0F,0x07,0x00,0x38,0x7C,0x44,0x44,0x44,0xFC,0xF8,0x00,//-9-0x00,0x08,0x08,0x08,0x0C,0x07,0x03,0x00,/*-----------0x30,0x30-----':'已改为'.'-----*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x06,0x00,0x00,0x00,};ucharcodeFirstPage[]={0x00,0x00,0x00,0x80,0x0

7、0,0x00,0x00,0x80,0x30,0x10,0x80,0x30,0x10,0x80,0xC8,0xB0,0xB0,0x76,0xC8,0xE8,0x76,0x99,0x7C,0x7E,0x9F,0x79,0x7C,0x7E,0x79,0x3E,0x1C,0x09,0x37,0x13,0x09,0x0E,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0

8、0,0x0

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。