液晶显示模块TC1602A与单片机的接口技术
(5)启动TC1602A子程序本文引用地址://m.amcfsurvey.com/article/169081.htm
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_0.jpg)
当供电电源符合一定要求时,TC1602A通电后能自启动,并进入默认置。TC1602A自启动后,单片机(MCU)只要依照系统所需的功能重新对其下达功能设定指令、显示器开/关控制指令及进入模式设定指令即可。通过下面的子程序可以让TC1602A5×7的字型显示器显示2行8bit数据,同时显示光标但不闪烁,且可在每一次资料输入DDRAM后光标向右移动一格。
4 实用实例
下面的应用程序实例可在TC1602A的液晶显示屏上显示2行字符,它们分别是“Testing TC1602A.”和“Easy Learning it”。另外,该程序还能使AT89C51的P0口所控制的8个发光二极管每隔1秒钟从左至右点亮一个,在任一时刻只有一个发光二极管是被点亮的。具体应用程序如下:
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_1.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_2.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_3.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_4.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_5.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_6.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_7.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_8.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_9.jpg)
![](http://m.amcfsurvey.com/editerupload/fetch/20130906/169081_2_10.jpg)
评论