文件名称:LCD1602_PIC16_driver_for_C
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [WORD]
- 上传时间:
- 2013-04-24
- 文件大小:
- 256kb
- 下载次数:
- 0次
- 提 供 者:
- u**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
LCD1602驱动程序,4位总线方式
//单片机:PIC16F877A(4MHz)
//*** *** *** 初始化说明**************************
//4位总线方式初始化,应注意LCD接线方式,及初始化首条指令
//4位总线初始化方法:因LCD加电初始化后默认为8位总线方式,
//故首条指令只能以8位方式传送,此时高4位数据可以程序控制,
//(而低4位则取决于硬件接线方式)设定为4位总线方式的控制
//位,刚好在第4位,故此时可以将总线传送方式设为4位方式,当将
//总经传送方式设为4位后,LCD工作方式就完全可以控制了.
//关于低4位接线方式的说明:由于首条指令只需将总线方式设为
//4位传送方式,LCD便可控,因低4位的接线方式并不影响对LCD总
//线传送方式的设定,故低4位接线方式可任意(包括悬空).
-The LCD1602 driver, 4-bit bus// MCU: PIC16F877A (4MHz)//****************** initialization Descr iption**************************// 4 bus initialization should be noted that the LCD wiring, and the first instruction of the initialization// 4 bus initialization method: LCD power initialization defaults to 8 bit bus,// the first instruction can only be transferred to the 8-bit mode, the upper 4 bits of data can program control,// (the lower 4 bits depends on the hardware wiring) is set to 4-bit bus control// bit, just in the first four, so you can bus transfer mode is set to 4-bit mode,// General transmission mode is set to 4, the LCD work can control// low 4 wiring Descr iption: Since the first instruction simply bus mode is set to// 4 transmission mode, the LCD will be controllable, due to the low four wiring does not affect on LCD// line transmission method set, the lower 4 bits of wiring can be arbitrary (including vacant).
//单片机:PIC16F877A(4MHz)
//*** *** *** 初始化说明**************************
//4位总线方式初始化,应注意LCD接线方式,及初始化首条指令
//4位总线初始化方法:因LCD加电初始化后默认为8位总线方式,
//故首条指令只能以8位方式传送,此时高4位数据可以程序控制,
//(而低4位则取决于硬件接线方式)设定为4位总线方式的控制
//位,刚好在第4位,故此时可以将总线传送方式设为4位方式,当将
//总经传送方式设为4位后,LCD工作方式就完全可以控制了.
//关于低4位接线方式的说明:由于首条指令只需将总线方式设为
//4位传送方式,LCD便可控,因低4位的接线方式并不影响对LCD总
//线传送方式的设定,故低4位接线方式可任意(包括悬空).
-The LCD1602 driver, 4-bit bus// MCU: PIC16F877A (4MHz)//****************** initialization Descr iption**************************// 4 bus initialization should be noted that the LCD wiring, and the first instruction of the initialization// 4 bus initialization method: LCD power initialization defaults to 8 bit bus,// the first instruction can only be transferred to the 8-bit mode, the upper 4 bits of data can program control,// (the lower 4 bits depends on the hardware wiring) is set to 4-bit bus control// bit, just in the first four, so you can bus transfer mode is set to 4-bit mode,// General transmission mode is set to 4, the LCD work can control// low 4 wiring Descr iption: Since the first instruction simply bus mode is set to// 4 transmission mode, the LCD will be controllable, due to the low four wiring does not affect on LCD// line transmission method set, the lower 4 bits of wiring can be arbitrary (including vacant).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LCD1602_PIC16_driver_for_C.doc