LCD5110字模提取软件PCtoLCD2002使用指南
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
PCtoLCD2002作为LCD5110字模提取软件的使用方法
Yuan 坤
2012.8.28
LCD5110简述:
5110使用PCD8544进行控制。
5110每行有84列点阵,通过一个十六进制数据来控制每列的8个点阵的亮灭;5110共有6
行。
5110在默认情况下使用的是水平扫描模式,如图2中,0、1、2、3……代表的是第几列,控制器扫描完第0列后,水平向右扫描,即扫描第1列,之后第2
列……
图2
举个显示“P ”的例子,注意其数据的写入值:左边为最高位D7
……
图3
由图3可以看出,要显示“P ”,首先写入0x1f ,则第一列显示一个竖杠,之后控制器自动水平右移到下一列,再写入0x05,则出现两个小横杆,这个两个横杆就是0x05中00000101中两个1所处的位置,写完第二列后,控制器自动跳到第三列,再写入0x07,第四列写入0x00后,P 就显示出来了。
端显示一个小点,你也得控制写入一个8位的二进制数置设置好,即写入0x01。即你不能一次性控制一个点阵,只能一介绍部分,这些部分设置之后是不用再改的:
图4
图6
由图5和图6总结软件的设置:
1.主界面中的“字宽”与“字高”的设置才是真正对显示到液晶屏上的字体的大小的设置。
2.对话框中“点阵”的值会对字模的编码产生影响。
因为5110是从第一列水平向右写入数据,取模时也是从左往右的那样的取,所以就拿一个16*16的汉字来讲,将汉字的上半截16列数据,可以分成很多份,而
点阵=字宽/份数
即16*16的汉字,字宽为16,若将其分为两份,则每份存8列的数据
若将其分为一份,则每份存16列的数据
例“元”字宽16字高16:点阵=8
{0xDF,0xDF,0xDD,0xDD,0xDD,0x1D,0xDD,0xDD },{0xDD,0x1D,0xDD,0xDD,0xDD,0xDF,0xDF,0xFF },{0x7F,0xBF,0xDF,0xEF,0xF3,0xFC,0xFF,0xFF },{0xFF,0xC0,0xBF,0xBF,0xBF,0xBF,0x87,0xFF }点阵=16
{0xDF,0xDF,0xDD,0xDD,0xDD,0x1D,0xDD,0xDD,0xDD,0x1D,0xDD,0xDD,0xDD,0xDF,0xDF,0xFF },{0x7F,0xBF,0xDF,0xEF,0xF3,0xFC,0xFF,0xFF,0xFF,0xC0,0xBF,0xBF,0xBF,0xBF,0x87,0xFF },
可以出,点阵8和点阵16的数据是完全一样的,只不过就是这个二维数组中的每个一维的数据位数不同罢了。
点阵8和点阵16都可以显示这个“元”字,只是程序上会有些不同。推荐配置:字宽*字高8*8点阵816*16点阵1624*24点阵2432*32点阵3240*40点阵40
--------------------------------------------------------------------------------------------------------------------------------------
使用PCtoLCD2002提取图片字模:
1.图片初级处理:
因为整个5110的屏幕点阵为84*48个,所以所有的图片的像素大小都要为宽84,高48,我指的是全屏的图片。
并且由于5110为黑白屏,所以要把图片转成黑白色。
所以第一步处理图片,使用的软件是可牛影像。
1.1先选择一张图片
图1.1
1.2选择调整图片尺寸
1.3将尺寸改成84*48
1.4点击“编辑”
1.5在“数码暗房”中有一个“高反差黑白”,选中
1.6保存【.bmp格式设置成“单色”】
2.调入到PCtoLCD2002软件中
设置点阵=42
3.生成字模
{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x7F,0x7F,0x3F,0x3F,0x1F,0x1F,0x9F,0x8F,0x8F,0x8F,0xCF,0xCF,0xC7,0xE7,0xE7,0xE7,0xF3,0x73,0xB3,0xBF,0xBF,0xBF,0xB9,0xBD,0xFB},
{0xF7,0x31,0xF1,0xF1,0xB3,0xB3,0xB3,0xB3,0xB3,0xB3,0x73,0xF3,0xA3,0xE3,0xE7,0xC7,0xC7,0xC7,0xCF,0x8F,0x8F,0x1F,0x1F,0x1F,0x1F,0x3F,0x3F,0x7F,0x7F,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,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