===================
##在某宝贪便宜买了这块LCD,然后GG
没看到人家说不提供技术支持,花了几天时间找资料写驱动
终于写好了,push在这,希望需要的人看到(其实我自己买了5块怕找不到驱动)
用的单片机是STC89C52,晶振是12MHz
##引脚定义,@数码之家``路人乙
1脚:CS 2脚:WR 3脚: AO 此部分为上半屏段划屏
4脚: +5V 5脚:GND
6脚:RS 7脚:R/W 8脚:EN 9-16脚: 数据口(相当于1602的D0-D7)
##编码方式
###上半部分以HT1621控制的段划
USB
0X1B,0X04 CARD
0X1B,0X04
顶端从左到右的方格
:0x14,0x08----0x14,0x02----0x14,0x04---0X0F,0x08---0x0f,0x04
0x0c,0x0b---0x0c,0x02---0x0c,0x08---0x09,0x08---0x09,0x04
TRACK
: 0x1d,0x08 ▶
: 0x1b,0x02 ‖
: 0x1a,0x08 <<
: 0x18,0x08 >>
: 0x16,0x08ELAPSED
: 0x14,0x01 TOTAL
: 0x11,0x08 REMAIN
:0x0c,0x01 AUTO
:0x09,0x02CUE
: 0x09,0x01
:
0x0f,0x02 M
: 0x0f,0x01 :
0x08,0x08 S
: 0x0b,0x08 F
: 0x06,0x08
SINGLE
: 0x1e,0x08 CONTINUE
: 0x1e,0x04 ROBO
: 0X1E,0X02 PITCH
: 0x1e,0x01
PROGRAM
: 0x1f,0x01 LOOP
: 0x1f,0x02, REPEAT
:0x1f,0x04 1
: 0x1f,0x08
%
:0x0e,0x08 ,
:0x03,0x08 1
:0x01,0x08&0x00,0x08 -
0x00,0x04 +
:0x00,0x0e
###下半部分为1601,谢谢@数码之家``路人乙
由十六个57字符点阵部分,属较标准的1601,可显示十六个57点阵的字符,ETM8812K4自带160个字符,包括标准的ASCⅡ码、日文字符和希腊文字符。ETM8812K4引脚6~16分别对应1602的4~14脚,即依次为AO、R/W、E,D0~D7;ETM8812K4没有VO端,但只要电源不太偏离5V,对比度已很高。此十六个5*7字符点阵部分使用方法同1602,这里不再赘述。
##鸣谢
数码之家
**电子diy之家
某宝
PS:数码之家因为我权限不够所以未获得作者授权,侵删
##日志
删除了特殊字符显示函数(5K的hex伤不起啊)
---------------------
下方1601在复位的时候有很大几率无法初始化导致不能显示【已修复】