﻿<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/css" href="/page/images/rssstyle.css"?><rss version="2.0"><channel><title>问答讨论区 - 深圳市炜烨兴电子有限公司｜LCD在线 网站｜定制智能串口液晶</title><link>http://www.lcdinline.com/2009</link><language>zh-cn</language><docs>http://www.lcdinline.com/sitemaps/index.html</docs><generator>http://www.lcdinline.com</generator><ttl>5</ttl><item><title>发贴提问必看</title><link>http://www.lcdinline.com/2009/faq/2009-3-11/1.html</link><description><![CDATA[几点说明：<br />1、本讨论区优先解决使用<u>深圳市炜烨兴电子有限公司</u>(下称本公司)的液晶所出现问题。<br />2、用户所发布帖子必须是技术性的,<strong>广告,色情,灌水</strong>等等与此讨论区或网站主题无关的一律删,严重者禁言直至封IP。<br />3、不得恶意攻击他人。<br />4、欢迎原创内容的帖子，不欢迎没有新意的转发帖子。<br />5、想到再补充...]]></description><category>LCD售前售后咨询</category><author>wayeah</author><pubdate>2009-3-11 21:49:14</pubdate></item><item><title>丰宝找媒体“设拆”圣邦微缺货</title><link>http://www.lcdinline.com/2009/faq/2009-3-20/2.html</link><description><![CDATA[深圳IIC上新闻多，但是“怪事”也不少。<br /><br />2月27日第14届国际集成电路展的第二天，笔者正在圣邦微电子的展台上对其总裁张世龙进行采访，因为圣邦微电子超大的展台吸引了记者，它应该是本届IIC上中国IC公司中最大的参展商了。正在我们聊得起劲时，一个熟悉而响亮的声音从我后面传来：“我要找《国际电子商情》投拆，圣邦微不给我货，现在客户急需他的产品呢，天天追着我要。”<br /><br /><br /><br /><br />圣邦微电子的超大展台位于IIC展会的中央，同欧美厂商同台竞技，格外醒目<br /><br /><br />回头望去，正是我非常熟悉的朋友——上海丰宝电子副总经理刘海东。“你们要帮我在媒体上呼吁，我目前供需缺口很大，而张总不给我货。”丰宝是圣邦微的授权代理商，他与圣邦微合作，将后者的很多芯片都做进了中国主流品牌客户中，比如CDMA手机。“目前CDMA手机要货很急，我的几个大客户天天在向我追货，但是圣邦微不能解我的燃眉之急啊。”刘海东又对着张世龙说道：“你承不承认缺货？当者记者的面，我们今天来个对证。”<br />http://www.datasheetic.com &nbsp; 名称：ic datasheet<br />http://www.datasheetic.cn &nbsp; &nbsp;名称：datasheet查询网<br />http://www.pdfic.com &nbsp; 名称：IC pdf<br />http://www.pdfic.com &nbsp; 名称：ic pdf资料查询网<br />http://www.17ic.com &nbsp; &nbsp;名称：电子元器件交易网<br />]]></description><category>LCD售前售后咨询</category><author>莱科宁678</author><pubdate>2009-3-20 15:25:15</pubdate></item><item><title>定制非标准液晶的一般要求和参数</title><link>http://www.lcdinline.com/2009/faq/2009-3-20/3.html</link><description><![CDATA[定制一款非标准的液晶屏/模块如下图所示:<br />[img]<a target="_blank" href="/page/link.asp?url=http://www.lcdinline.com/2009/up_files/lcm.jpg">http://www.lcdinline.com/2009/up_files/lcm.jpg</a>[/img]<br /><br />一、需要提供的尺寸:<br />模块尺寸：&nbsp;A,B,Q,R &nbsp;&nbsp; &nbsp;&nbsp; <br />铁框尺寸：&nbsp;C,D,E,F&nbsp; <br />视域尺寸：&nbsp;G,H,I,J&nbsp; <br />定位尺寸：&nbsp;K,L,M,N&nbsp; <br />二、显示内容(分三种):<br /> &nbsp;1.段式: 7段数字式或14段米字式,特殊的ICON和文字<br /> &nbsp;2.字符点阵:<br /> &nbsp; A)字体格式:5*8点阵/5*11点阵<br /> &nbsp; &nbsp;B)字符尺寸(或者是点尺寸)/字符间距(点间距)<br /> &nbsp; C)显示字符分布:一行显示多少字符,分几行显示<br /> &nbsp;3.图形点阵:<br /> &nbsp; A)分辨率:多少列*多少行<br /> &nbsp; B)显示点尺寸<br /> &nbsp; C)显示点间距<br />三、显示方式:<br /> &nbsp;1.TN/HTN: 正显示/负显示,半透/全透/反射<br /> &nbsp;2.STN: 黄绿膜/灰膜, 正显/负显,蓝膜<br /> &nbsp;3.FSTN:正显/负显<br />四、视角：<br /> &nbsp; 6H/12H/9H/3H<br />五、背光：<br /> &nbsp; 1.LED：底发光/侧发光<br /> &nbsp; 2.EL<br /> &nbsp;3.CCFL<br /> &nbsp;4.发光颜色<br />六、工作电压及接口<br /> &nbsp; 5V／3V，并行／串行<br />七、工作温度：<br /> &nbsp; 常温／宽温／超宽温<br />八、其它参数：<br /> &nbsp; <br /><br />&nbsp;]]></description><category>LCD售前售后咨询</category><author>wayeah</author><pubdate>2009-3-20 16:52:32</pubdate></item><item><title>LCM的装配及使用注意事项</title><link>http://www.lcdinline.com/2009/faq/2009-4-13/4.html</link><description><![CDATA[<span style="font-size:32px;line-height:38px;">以下内容转载自网络,仅供参考</span><br />LCM的装配及使用注意事项:<br /><br />一、处理保护膜<br /> &nbsp; &nbsp;在装好的模块成品表面贴有一层保护膜，以防在装配时沾污显示表面，在整机装配结束前不得揭去，以免弄脏或损坏显示面;<br /><br />二、加装衬垫<br />　　在客户机壳内表面与液晶模块之间加一层1毫米左右的衬垫，面板还应保持平整，以免在装配后产生扭曲，并可提高其抗振性能;<br /><br />三、严防静电<br /> &nbsp; &nbsp;模块中的控制、驱动电路是低压、微功耗的CMOS电路，极易被静电击穿，静电击穿是一种不可修复的损坏，而人体有时会产生高达几十伏或上百伏的高压静电，所以，在操作、装配以及使用中都应极其小心，严防静电，为此：<br /> &nbsp; &nbsp;1.不要用手随意去摸外引线、电路板上的电路及金属框;<br /> &nbsp; &nbsp;2.如必须直接接触时，应使人体与模块保持在同一电位，或将人体良好接地;<br /> &nbsp; &nbsp;3.焊接使用的烙铁和操作用的电动工具必须良好接地，没有漏电;<br /> &nbsp; &nbsp;4.不得使用真空吸尘器进行清洁处理，因为它会产生很强的静电;<br /> &nbsp; &nbsp;5.空气干燥，也会产生静电，因此，工作间湿度应在RH60%以上;<br /> &nbsp; &nbsp;6.取出或放回包装袋或移动位置时，也需小心，防止静电，不要随意更换包装或舍弃包装;<br /><br />四、装配操作时的注意事项<br /> &nbsp; &nbsp;1.模块是经过精心设计组装而成的，请勿随意自行加工、修整;<br /> &nbsp; &nbsp;2.金属框爪不得随意扭动、拆卸;<br /> &nbsp; &nbsp;3.不要随意修改加工PCB板外形、装配孔、线路极其部件;<br /> &nbsp; &nbsp;4.不得修改导电胶条;<br /> &nbsp; &nbsp;5.不得修改任何内部支架;<br /> &nbsp; &nbsp;6.不要碰、摔、折曲、扭动模块;<br /><br />五、焊接<br /> &nbsp; &nbsp;在焊接模块外引线、接口电路时，应按如下规程进行操作：<br /> &nbsp; &nbsp;1.在烙铁头温度小于280℃;<br /> &nbsp; &nbsp;2.焊接时间小于3～4S;<br /> &nbsp; &nbsp;3.焊接材料：共晶型、低熔点;<br /> &nbsp; &nbsp;4.不要使用酸性助焊剂;<br /> &nbsp; &nbsp;5.重复焊接不要超过3次，且每次重复需间隔5分钟以上;<br /><br />六、模块的使用与保养<br /> &nbsp; &nbsp;1.模块的外引线决不允许接错，调试液晶模块时，请注意正确接线，尤其是正、负电源的接线不能有错，否则可能造成过流、过压、烧毁电路上的芯片等损坏液晶模块的情况;<br /> &nbsp; &nbsp;2.模块在使用时，接入电源及断开电源，必须在电源稳定接入以后，才能输入信号电平，如在电源稳定前或断开后输入信号电平，有可能损坏模块中的IC及电路;<br /> &nbsp; &nbsp;3.模块使用时，接入逻辑电源和驱动电源的顺序应是先逻辑电源，后驱动电源，断电时，应先驱动电源，后逻辑电源，这样做有助于保持屏的良好显示效果和避免在上电、断电时的电压冲击损坏，所以推荐使用带控制的DC-DC电源做为模块的驱动电源;<br /> &nbsp; &nbsp;4.点阵液晶模块显示时的对比度、视角与温度、驱动电压关系很大，所以，如果VEE调整过度，不仅会影响显示，还会缩短模块的使用寿命;<br /> &nbsp; &nbsp;5.因为液晶材料的物理特性，液晶的对比度会随着温度的变化而相应变化，所以，你加的负电压值应该随温度作相应的调整，大致是温度变化10℃, 电压变1伏，为满足这一要求，你可做一个温度补偿电路，或者安排一个电位器，随温度调整负电压值;<br /> &nbsp; &nbsp;6.不应在规定工作温度范围以外使用，并且不应在超过存储极限温度的范围外存储，如果温度低于结晶温度，液晶就会结晶，如果温度过高，液晶将变成各向同性的液体，破坏分子取向，使器件报废;<br /> &nbsp; &nbsp;7.用力按压显示部分，会产生异常显示，这时切断电源，稍待片刻，重新上电，即恢复正常;<br /> &nbsp; &nbsp;8.液晶显示器件或模块表面结雾时，不要通电工作，因为这将引起电极化学反应，产生断线;<br /> &nbsp; &nbsp;9.长期用于阳光及强光下时，被遮部分会产生残留影像;<br /><br />七、模块的存储<br /> &nbsp; &nbsp;若长期（如几年以上）存储，我们推荐以下方式：<br /> &nbsp; &nbsp;1.装入聚乙稀口袋（最好有防静电涂层）并将口封住;<br /> &nbsp; &nbsp;2.在-10℃～35℃之间存储;<br /> &nbsp; &nbsp;3.放暗处，避强光;<br /> &nbsp; &nbsp;4.决不能在表面压放任何物品;<br /> &nbsp; &nbsp;5.严格避免在极限温/温度条件下存放。<br />]]></description><category>LCD售前售后咨询</category><author>wayeah</author><pubdate>2009-4-13 15:20:20</pubdate></item><item><title>东莞集思光电科技有限公司-CCD检测</title><link>http://www.lcdinline.com/2009/faq/2009-9-10/5.html</link><description><![CDATA[大家好，这里是东莞集思光电科技有限公司，我是周先生，我们主要做CCD自动化检测，刚进入这个行业，相信大家都有更多的惊讶，请多多指点。]]></description><category>LCD售前售后咨询</category><author>dgjisi</author><pubdate>2009-9-10 12:1:41</pubdate></item><item><title>【专业PCB打样】双面板50元/款起（含测试）15817448851</title><link>http://www.lcdinline.com/2009/faq/2009-10-27/6.html</link><description><![CDATA[【专业PCB打样】双面板50元/款起（含测试）四层板500元/款起（含测试）李工 15817448851 <br />双面板:<br />长和宽在5厘米以内的 &nbsp;喷锡 &nbsp;绿油/白字 &nbsp;10片 &nbsp; 50元/款 &nbsp; &nbsp; 交期：3-4天 <br />长和宽在10厘米以内的 &nbsp;喷锡 &nbsp;绿油/白字 &nbsp;10片 &nbsp; 100元/款 &nbsp; &nbsp; 交期：3-4天 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />四层板: 长和宽在10厘米以内的 &nbsp;喷锡 &nbsp;绿油/白字 &nbsp;10片 500元/款(全测试) &nbsp; 交期：5-6天 &nbsp; <br />长或宽超出10cm的计算公式：双面板 &nbsp;板子的规格：长cm*宽cm*0.05元*（片数+6张菲林）+工程费100<br />同一文件中如有不同线路的板则+拼板费50/款<br /><br />技术生产能力范围：过孔大于或等于0.3mm（12mil），外环大于或等于0.6mm（24mil），线距线宽大于或等于0.15mm（6mil），多层板内层线距线宽大于或等于0.18mm（7mil）。<br />准时交付率98%以上,有飞针测试可保证质量! 欢迎广大公司、贸易商和个人咨询！ &nbsp; &nbsp; &nbsp; &nbsp; <br />JLC嘉立创（专业PCB/电路板打样）服务热线：李工15817448851 &nbsp;QQ: 1140471007 &nbsp; QQ: 995390355 &nbsp; QQ: 837677823 &nbsp; www.sz-jlc.com &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />公 司 地 &nbsp;址：深圳市福田区车公庙都市阳光名苑3座12D <br />工 厂 地 &nbsp;址：深圳市龙岗区坪地镇富地岗同富裕工业区C5栋3楼样板厂 &nbsp; &nbsp;<br />]]></description><category>LCD售前售后咨询</category><author>xyxpcb</author><pubdate>2009-10-27 16:7:55</pubdate></item><item><title>液晶模块162P04 兼容普通1602液晶 ??</title><link>http://www.lcdinline.com/2009/faq/2010-11-3/7.html</link><description><![CDATA[您好!<br />請問 162P04 要如何兼容普通1602液晶 ?<br /><br />我硬件可以在前次購買(2010.02.01 QC出貨)的 162P04 模塊上正常顯示，<br />但無法在(2010.10.xx QC出貨)的 162P04 模塊上正常顯示，<br />使用它牌 1602 模塊卻一樣可正常顯示，<br />請問需要設定才能兼容普通1602液晶 ??<br /><br />TKs,<br /><br />Justin 11/3]]></description><category>LCD售前售后咨询</category><author>justin</author><pubdate>2010-11-3 15:19:3</pubdate></item><item><title>串口液晶的使用－UART串口程序</title><link>http://www.lcdinline.com/2009/faq/2010-11-4/8.html</link><description><![CDATA[深圳炜烨兴电子公司推出的串口液晶通常有两到三个白色插座，一个两芯，另外的是三芯。两芯的是电源输入，要注意看PCB上的标注（＋－号）的正负电源极性，如果接反了有可能会烧坏整个模块！<br /> &nbsp; &nbsp;三芯的两个座（部分为旧版产品只有一个三芯座）为通信端，标为COM1的为UART串口（RS232或TTL电平），对应的PCB旁边上会有标明相关的字母（RX，TX，GND），请按相应的接线连接到你的控制端电路上。<br /><br />// &nbsp; &nbsp;以下为相应的驱动程序代码：（C51）<br />#include &lt;reg51.h&gt; &nbsp; //51单片机头文件<br />//串口初始化 晶振为11.0592M　方式1 波特率19200<br />void InitCom(void)<br />{<br />&nbsp;SCON = 0x50; //串口方式1,允许接收<br />&nbsp;TMOD = 0x21; //定时器1定时方式2<br />&nbsp;TCON = 0x40; //设定时器1开始计数<br />&nbsp;TH1 &nbsp;= 253;<br />&nbsp;TL1 &nbsp;= 253;<br />&nbsp;PCON = 0x80; //波特率加倍控制,SMOD位<br />&nbsp;RI = 0;&nbsp;//清收发标志<br />&nbsp;TI = 0;<br />&nbsp;TR1 = 1; //启动定时器<br />}<br />//串口发送一字节 进入串口发送前请关串口中断<br />void Send_UART(unsigned char OutData)<br />{<br />&nbsp;SBUF = OutData; //输出字符<br />&nbsp;while(!TI); //空语句判断字符是否发完<br />&nbsp;TI = 0; //清TI<br />}<br />//发送一个清屏指令:clr<br />void lcd_clr()<br />{<br />&nbsp;Send_UART(&#39;c&#39;);<br />&nbsp;Send_UART(&#39;l&#39;);<br />&nbsp;Send_UART(&#39;r&#39;);<br />&nbsp;Send_UART(0x0d);<br />&nbsp;delay(200); &nbsp;//延时程序(大概需要50-80ms时间)<br />}<br />void delay(uchar t) &nbsp;//延时程序<br />{<br /> &nbsp;while(t--)<br />&nbsp;&nbsp;_nop_();<br />}<br />//显示字符串 str<br />void lcd_string(bit char_bit, unsigned char *pst)<br />{<br />&nbsp;<br />&nbsp;Send_UART(&#39;s&#39;);<br />&nbsp;Send_UART(&#39;t&#39;);<br />&nbsp;Send_UART(&#39;r&#39;);<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(char_bit);<br />&nbsp;while(*pst!=0)<br />&nbsp;&nbsp;Send_UART(*pst++);<br />&nbsp;Send_UART<img src="/page/image/emot/42.gif"/>; //字符串结束标志\0<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(0x0d); //串口发送结束标志&nbsp;<br />&nbsp;delay(200); &nbsp;//延时大概需要50-80ms<br />}<br />//显示直线(x1,y1)-(x2,y2)<br />void dis_line(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2)<br />{&nbsp;<br />&nbsp;Send_UART(&#39;l&#39;);<br />&nbsp;Send_UART(&#39;i&#39;);<br />&nbsp;Send_UART(&#39;n&#39;);<br />&nbsp;Send_UART(x1);<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(y1);<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(x2);<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(y2);<br /> &nbsp; &nbsp; &nbsp; &nbsp; Send_UART(0x0d);<br />}<br />//主程序<br />void main(void)<br />{<br /> &nbsp; &nbsp;delay(100);<br /> &nbsp; &nbsp;InitCom(); &nbsp; //串口初始化<br /> &nbsp; &nbsp; lcd_clr(); &nbsp; //清屏<br /> &nbsp; &nbsp; lcd_string(0,&quot;I like the SLCM. 我喜欢串口液晶&quot;); &nbsp;//显示一个字符串<br /> &nbsp; &nbsp; dis_line(1,4,121,46);//显示一条直线(1,4)-(121,46)<br /> &nbsp; &nbsp;while(1); &nbsp;//程序停止<br />}<br /><br />/////////显示的图片效果如下:<br />]]></description><category>LCD售前售后咨询</category><author>yesever</author><pubdate>2010-11-4 11:23:2</pubdate></item><item><title>串口液晶的指令</title><link>http://www.lcdinline.com/2009/faq/2010-11-4/9.html</link><description><![CDATA[串口液晶的指令集:<br />说明:不同型号的串口液晶会根据液晶控制器的特点,控制的指令会有所不同<br /><br />命令 &nbsp;参数 &nbsp; &nbsp; &nbsp;功能说明<br /><br />??? &nbsp; 无 &nbsp; &nbsp; &nbsp;查询模块的状态,模块准备好就回传字符&quot;OK&quot;到主机(UART)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 收到此命令后,在显示屏最后一行显示波特率等提示<br />asd+串 &nbsp; &nbsp; &nbsp; &nbsp;快速显示一串英文字符(地址不递增) &nbsp; &nbsp; &nbsp; ***<br />bls &nbsp; 无 &nbsp; &nbsp; &nbsp;背光开关,第一次发送为打开(如果背光关闭了)背光,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 再次发送就是关闭(如果背光打开了)<br />brt + a &nbsp; &nbsp; &nbsp;设置波特率(a=0-8),设置新的波特率后,主机也要重新设置<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=0 &nbsp;2400<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=1 &nbsp;4800 &nbsp; &nbsp; &nbsp; &nbsp; a=2 &nbsp;7200<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=3 &nbsp;9600 &nbsp; &nbsp; &nbsp; &nbsp; a=4 &nbsp;14400<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=5 &nbsp;19200 &nbsp; &nbsp; &nbsp; &nbsp;a=6 &nbsp;38400 &nbsp; ;UART/USB接口有效<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a=7 &nbsp;57600 &nbsp; &nbsp; &nbsp; &nbsp;a=8 &nbsp;115200 &nbsp;;如果a&gt;8则不做处理<br /><br />chr + abc &nbsp; &nbsp;显示内码为ab的字符,地址自动加1.c=0显示普通字,c=1显示大字<br />cir + abcde &nbsp;画圆.原点(ab,c),半径d.e=0消圆, e=1画圆<br />cln + abcd &nbsp; 清除从点(a,b)到点(c,d)的一直线<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 320*240的屏上a,c为双字节值<br />clr &nbsp; 无 &nbsp; &nbsp; &nbsp;清屏.清屏后,显示坐标也回复到起点(左上角)<br />clw + ablh &nbsp; 清除以(a,b)为起点的l个字符宽,h个字符高的窗口内容<br />cpl + ablh &nbsp; 反显以(a,b)为起点的l个字符宽,h个字符高的窗口内容<br />dat + abc &nbsp; &nbsp;在坐标(a,b)处显示c(主要用来输入图形或用户自定义文字数据)<br />def + ab串 &nbsp; &nbsp;设置开机显示文字 &nbsp;***<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 开机上电时串口液晶在a列b行显示字符串. def+0则不显示<br />dot + abc &nbsp; &nbsp;在(a,b)处显示一个点c,c=0则为清除一个点,c=1则是画一个点<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 320*240的屏上a为双字节值<br />fhz + abcde &nbsp;在b列c页处显示内码为de的文字,a=1显示大字,a=0显示小字 ***<br />lin + abcd &nbsp; 从点(a,b)到点(c,d)画一直线 320*240的屏上a,c为双字节值<br />loc + abc &nbsp; &nbsp;设置(a,b)为显示字符的坐标,在进行str,chr命令前<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 需先发送此命令.c=1则显示光标块,默认为关闭状态<br />sad + a &nbsp; &nbsp; &nbsp;设置显示区(仅240*128的屏有效) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />str + a&quot;串&quot; &nbsp;显示字符串,a=0显示正常字,a=1显示大字;串长度&lt;=100字符,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 字符串以&#39;\0&#39;结束.显示地址变为最后字符的后一位<br /><br />注:显示大字符表示<br />如果当前为6*12/12*12点阵标准字形,则大字符就是12*24/24*24<br />如果当前为8*16/16*16点阵标准字形,则大字符就是16*32/32*32<br /><br />带&quot;***&quot;的为新增指令<br /><br />如需购买样品,请点击网页下面的联系方式里查看,或者是直接在淘宝上购买!<br /><a target="_blank" href="/page/link.asp?url=http://mylcd.taobao.com">http://mylcd.taobao.com</a> 我们会不定期在淘宝上进行促销活动!<br />在线技术支持方式:<br />QQ: &nbsp;56154083<br />MSN: yesever@hotmail.com<br />手机: 13714759758 刘工]]></description><category>LCD售前售后咨询</category><author>yesever</author><pubdate>2010-11-4 12:3:55</pubdate></item><item><title>串口液晶的使用－普通IO串口程序</title><link>http://www.lcdinline.com/2009/faq/2010-11-21/10.html</link><description><![CDATA[深圳炜烨兴电子公司推出的串口液晶通常有两到三个白色插座，一个两芯，另外的是三芯。两芯的是电源输入，要注意看PCB上的标注（＋－号）的正负电源极性，如果接反了有可能会烧坏整个模块！<br /> &nbsp; 三芯的两个座（部分为旧版产品只有一个三芯座）为通信端，标为COM2的为普通IO串口（TTL电平），对应的PCB旁边上会有标明相关的字母（MCK，SCK，SDA），请按相应的接线连接到你的控制端电路上。<br /><br />// &nbsp; &nbsp;以下为相应的驱动程序代码：（C51）<br />#include &lt;reg51.h&gt; &nbsp; //51单片机头文件<br />sbit MCLK=P1^0;<br />sbit SCLK=P1^1;<br />sbit SDA =P1^2;<br /><br />unsigned char bdata DATA;<br />sbit BIT0=DATA^0;<br />// 发送一个数据到模块,<br />void Send_byte_IO(unsigned char ch)<br />{<br />&nbsp;unsigned char i;<br />&nbsp;if(!MCLK)return; //&nbsp;<br />&nbsp;MCLK=0;&nbsp;//申请通讯<br />&nbsp;DATA=ch;<br />&nbsp;<br />&nbsp;for(i=4;i!=0;i--)<br />&nbsp;{<br />&nbsp;&nbsp;while(SCLK); //检测从机响应<br />&nbsp;&nbsp;SDA=BIT0; &nbsp; //放一个bit到SDA<br />&nbsp;&nbsp;MCLK=1;&nbsp;&nbsp;<br />&nbsp;&nbsp;DATA=DATA&gt;&gt;1; //准备下一个bit<br /><br />&nbsp;&nbsp;while(!SCLK); //检测从机响应<br />&nbsp;&nbsp;SDA=BIT0; &nbsp; //放一个bit到SDA<br />&nbsp;&nbsp;MCLK=0;&nbsp;&nbsp;<br />&nbsp;&nbsp;DATA=DATA&gt;&gt;1; //准备下一个bit<br />&nbsp;}<br />&nbsp;while(SCLK); //检测从机收完<br />&nbsp;MCLK=1;<br />&nbsp;while(!SCLK);//等待从机准备好<br />&nbsp;SDA=1;<br /><br />}<br /><br />//发送一个清屏指令:clr<br />void lcd_clr()<br />{<br /> Send_byte_IO(&#39;c&#39;);<br /> Send_byte_IO(&#39;l&#39;);<br /> Send_byte_IO(&#39;r&#39;);<br /> Send_byte_IO(0x0d);<br /> delay(200); &nbsp;//延时程序(大概需要50-80ms时间)<br />}<br />void delay(uchar t) &nbsp;//延时程序<br />{<br /> while(t--)<br /> &nbsp;_nop_();<br />}<br />//显示字符串 str<br />void lcd_string(bit char_bit, unsigned char *pst)<br />{<br /> <br /> Send_byte_IO(&#39;s&#39;);<br /> Send_byte_IO(&#39;t&#39;);<br /> Send_byte_IO(&#39;r&#39;);<br /> Send_byte_IO(char_bit);<br /> while(*pst!=0)<br /> &nbsp; &nbsp; &nbsp;Send_byte_IO(*pst++);<br /> &nbsp; &nbsp; &nbsp; &nbsp;//Send_byte_IO<img src="/page/image/emot/42.gif"/>; //字符串结束标志\0 <br /> Send_byte_IO(0x0d); //串口发送结束标志 <br /> delay(200); &nbsp;//延时大概需要50-80ms<br />}<br />//显示直线(x1,y1)-(x2,y2)<br />void dis_line(unsigned char x1,unsigned char y1,unsigned char x2,unsigned char y2)<br />{ <br /> Send_byte_IO(&#39;l&#39;);<br /> Send_byte_IO(&#39;i&#39;);<br /> Send_byte_IO(&#39;n&#39;);<br /> Send_byte_IO(x1);<br /> Send_byte_IO(y1);<br /> Send_byte_IO(x2);<br /> Send_byte_IO(y2);<br /> Send_byte_IO(0x0d);<br />}<br />//主程序<br />void main(void)<br />{<br /> &nbsp; delay(100);<br /> &nbsp; <br /> &nbsp; lcd_clr(); &nbsp; //清屏<br /> &nbsp; &nbsp;lcd_string(0,&quot;I like the SLCM. 我喜欢串口液晶&quot;); &nbsp;//显示一个字符串<br /> &nbsp; &nbsp;dis_line(1,4,121,46);//显示一条直线(1,4)-(121,46)<br /> &nbsp; while(1); &nbsp;//程序停止<br />}<br /><br />/////////显示的图片效果如下:<br /><br /><br />[img]<a target="_blank" href="/page/link.asp?url=http://www.lcdinline.com/up_files/image/2010-11-4/imag0014.jpg">http://www.lcdinline.com/up_files/image/2010-11-4/imag0014.jpg</a>[/img]<br /><br /><br />]]></description><category>LCD售前售后咨询</category><author>yesever</author><pubdate>2010-11-21 21:7:24</pubdate></item><item><title>串口液晶所有控制命令使用示例</title><link>http://www.lcdinline.com/2009/faq/2011-4-22/11.html</link><description><![CDATA[对于SLCM系列串口液晶的指令进行一个统一的使用示例<br /><br />//发送指令子程序 假定在外部定义好了,这里声明一下<br />extern void Send_Byte(unsigned char dat);<br /><br />//按顺序演示指令的发送<br /><br />//指令???<br />void CMD_STU(void)<br />{<br /> &nbsp; &nbsp;Send_Byte(&#39;?&#39;); &nbsp; //指令码<br /> &nbsp; &nbsp;Send_Byte(&#39;?&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(&#39;?&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(0x0d); &nbsp;//结束码<br />}<br /><br />//指令asd 功能:显示一个英文串<br />void CMD_asd(unsigned char *S)<br />{<br /> &nbsp; &nbsp;Send_Byte(&#39;a&#39;); &nbsp; //指令码<br /> &nbsp; &nbsp; Send_Byte(&#39;s&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(&#39;d&#39;); &nbsp; //<br /> &nbsp; &nbsp;while(*S!=0)<br /> &nbsp; &nbsp; &nbsp; &nbsp;Send_Byte(*S++); &nbsp; //<br /><br /> &nbsp; &nbsp;Send_Byte(0x0d); &nbsp;//结束码<br />}<br /><br />//指令bls 功能:开关背光<br />void CMD_bls(void)<br />{<br /> &nbsp; &nbsp;Send_Byte(&#39;b&#39;); &nbsp; //指令码<br /> &nbsp; &nbsp; Send_Byte(&#39;l&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(&#39;s&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(0x0d); &nbsp;//结束码<br />}<br /><br />//指令brt 功能:重设波特率<br />void CMD_brt(unsigned char Brt )<br />{<br /> &nbsp; &nbsp;Send_Byte(&#39;b&#39;); &nbsp; //指令码<br /> &nbsp; &nbsp; Send_Byte(&#39;r&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(&#39;t&#39;); &nbsp; //<br /> &nbsp; &nbsp;Send_Byte(Brt); &nbsp; //波特率,取值0-8<br /> &nbsp; &nbsp;Send_Byte(0x0d); &nbsp;//结束码<br />}<br /><br />//待续<br />]]></description><category>LCD售前售后咨询</category><author>yesever</author><pubdate>2011-4-22 16:14:9</pubdate></item></channel></rss>
