资源描述:
《06_学习应用12864液晶显示器》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、☆电子设计DIY☆学习51单片机☆设计4学习应用12864液晶显示器1任务:学会应用12864液晶显示器显示汉字和图形。①汉字显示的内容为:第1行居中显示“2011年3月22日”,第2行居中显示“浙江万里学院”,第3行居中显示“电子信息学院”,第4行居中显示“×××学习单片机”,(注:×××用自己的姓名代替);②图形显示“万里学院的校标”:2要求:①自学“天狼星”的关于12864液晶的教学视频,结合“郭天祥”的教材第167页开始7.4节内容,搞清楚12864液晶显示器的原理;②参照“天狼星”视频中讲解的内容,自己测试液晶显示器的各条指令;③本学习任
2、务要求在本周二(3月22日)晚上之前完成。3附件:12864液晶接口板电路原理图#include#include#include#defineucharunsignedchar#defineuintunsignedintsbitRS=P1^4;sbitRW=P1^5;sbitE=P1^6;sbitPSB=P1^7;sbitg1=P2^7;sbitg2=P2^6;sbitk1=P3^4;sbitk2=P3^5;uchartable_1[]=" 11年03月22日 ";uchartable_2
3、[]="浙江万里学院";uchartable_3[]=" 电子信息学院";uchartable_4[]="曾雪锦学习单片机";unsignedcharcodetp[]={0x00,0x00,0x00,0x1F,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xF8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xFF,0xFF,0x00,0x
4、00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1F,0xFF,0xFF,0xE0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0xFF,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xF7,0xC0,0x01,0xFC,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
5、,0x00,0x00,0x00,0x03,0xDF,0x80,0x00,0x3E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0xBF,0x00,0x00,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0E,0x7F,0x00,0x00,0x07,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1C,0xBF,0x80,0x00,0
6、x01,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x39,0x3F,0x00,0x00,0x00,0xEF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x1F,0x00,0x00,0x00,0x7F,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x60,0x1F,0x00,0x00,0x00,0x7F,0xF8,0x00,0x00,0x00,0x00,0x0
7、0,0x00,0x00,0x00,0x00,0xE0,0x1F,0x00,0x00,0x00,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xC0,0x0F,0xC0,0x00,0x00,0xFF,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x80,0x07,0xF8,0x00,0x01,0xFF,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x80,0x03,0xFF,
8、0x00,0x03,0xFF,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0