摘要
51单片机IO口直接驱动段式液晶无论是在电路结构和程序编写上都是比较复杂的。文章通过利用单片机IO口内部上拉电阻和外接电阻分压的方法,实现1/2电平,运用循环将相应的编码赋给P1和P3口的方法实现动态驱动,仅需6只电阻接在液晶屏和单片机之间就可实现一位"8."字的显示,使电路和编程都非常简单。
Driving of segment LCD directly by SCM IO port is quite complex no matter on circuit diagram or programming. This thesis focus on getting 1/2 electric level by making use of pull-up register and external register inside the SCM IP ports to split pressure, and utilizing circulation to exert encoding to P1 and P3 ports to realize dynamic driving, subsequently we will need only 6 resistors connecting between LCD screen and SCM to get a "8" display, and thus makes the circuit diagram and programming very simple.
出处
《计算机与网络》
2011年第10期60-62,共3页
Computer & Network
关键词
单片机直接驱动段式液晶
SCM (single chip microcomputer)
direct driving
segment LCD