完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
在过去的几年里,我从易趣网获得了2×16的LCD。不用说,它们没有数据表,而且几乎没有识别标记。我有一个标记为“LCM1602G-V2.0”,这对我在谷歌上没有任何帮助。我正在尝试使用PICB的6个引脚使用PIC24FJ64 GB00在4位模式下工作。我以前做过,但很久以前我记不起我是怎么做的,现在有麻烦了。我的研究表明,只有那些具有TTL输入的LCD可以直接从3.3伏逻辑的PIC驱动。我不知道这些单位我踢我家周围是3.3 TTL或5伏特CMOS输入。由于我的CCT到目前为止还没有工作,我想确保这不仅仅是一个简单的例子,而不是我的硬盘,如果我的液晶显示器使用CMOS。我确实有一个ILQ74光隔离器,如果需要,将得到一个电阻总线包的输入,如果需要的话。我不想为了驱动这个显示器而使用一些谨慎的晶体管,坦白地说,虽然我的电源板上有双电源3.3/5伏,但是如果我能用3.3伏特来供电的话,生活会更好。有什么建议或建议吗?谁知道如何知道在LCD上使用什么输入技术?谢谢您。
以上来自于百度翻译 以下为原文 I have acquired 2 X 16 LCDs over the last few years from Ebay. Needless to say, they came with no datasheets and have very little identifying markings on them. I have one that is marked "LCM1602G-V2.0" which doesn't do anything for me on Google. I am trying to get it working with a PIC24FJ64GB002 in 4 bit mode using 6 pins of PortB. I've done this before but so long ago that I can't remember how I did it and am having trouble now. My research indicates that only those LCD's with TTL inputs can be driven directly from a PIC with 3.3 volt logic. I can't tell if these units I have kicking around my house are 3.3 TTL or 5 volt CMOS inputs. Since my cct so far is not working, I want to make sure that it's not just a simple case of me not driving it hard enough in case my LCD is using CMOS. I do have an ILQ74 opto isolator and will, if needed get a resistor bus pack for the inputs if need be.. I don't want to get into discreet transistors for driving this display and quite frankly, while I do have dual power 3.3/5 volts on my breadboard, life would be a lot nicer if I could just use 3.3 volts to power everything. Any suggestions or tips ? Anyone know how to tell what input technology is being used on an LCD ? Thank you. |
|
相关推荐
9个回答
|
|
|
我只用了3.3个文本LCD大约6年前:平均而言,大多数可用的44780个克隆是5V设备。他们会或多或少工作,甚至由3.3V的MCU驱动的规格,但…所以你可能还有其他问题。4位模式总是有点棘手,也许你做错了什么。
以上来自于百度翻译 以下为原文 I only used 3.3 text LCDs some 6 years ago: on the average, most of the available 44780 clones are 5V device.. and they will more or less work even driven by a 3.3V MCU So you may have other issues going on. 4bits mode is always a bit tricky, maybe you're doing something wrong. |
|
|
|
|
|
|
|
|
|
|
|
顺便说一下,我用4位小写来发送LCD数据和命令的功能是:我已经看到了将这些位转换为静态掩码的其他功能。
以上来自于百度翻译 以下为原文 The function I use, by the way, for sending the LCD data and commands, in 4 bit nibbles, is: void lcd_write(char c)// Receives a char to write, returns nothing { // LCD in 4 bit mode if(c & 0x80) LCD_DB7=1; else LCD_DB7=0;// works through 4 MSBs if(c & 0x40) LCD_DB6=1; else LCD_DB6=0; if(c & 0x20) LCD_DB5=1; else LCD_DB5=0; if(c & 0x10) LCD_DB4=1; else LCD_DB4=0; void LCD_STROBE(void); if(c & 0x08) LCD_DB7=1; else LCD_DB7=0;// works through 4 LSBs if(c & 0x04) LCD_DB6=1; else LCD_DB6=0; if(c & 0x02) LCD_DB5=1; else LCD_DB5=0; if(c & 0x01) LCD_DB4=1; else LCD_DB4=0; void LCD_STROBE(void); __delay_us(40); } I've seen other functions that shift the bits into a static mask. |
|
|
|
|
|
LCDYBDX是如何定义的?确保您使用的是LATX寄存器,而不是PORTX寄存器。
以上来自于百度翻译 以下为原文 How have you defined LCD_DBx ? Make sure you are using the LATx registers, not the PORTx registers. |
|
|
|
|
|
而且,这不是通常调用函数的方式:
以上来自于百度翻译 以下为原文 Also, this is not how you call a function usually :) void LCD_STROBE(void); |
|
|
|
|
|
此外,通常问题在于初始化:正确的顺序,延迟…
以上来自于百度翻译 以下为原文 Moreover, usually the issue lies in Initialization: proper sequence, delays... |
|
|
|
|
|
|
|
|
|
|
|
的确!我曾经用一个Max来获得Bolymin的负电压。
以上来自于百度翻译 以下为原文 Indeed! I once used a MAX232 to get negative voltge for a Bolymin... |
|
|
|
|
|
是的,我已经使用了LAT,谢谢,我会修复选通功能调用。我有一些时钟问题,我希望现在可以。
以上来自于百度翻译 以下为原文 Yes I have used lat, thanks and I'll fix that strobe function call. I had some clock problems that I hope are ok now . |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1122浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 23:46 , Processed in 0.782684 second(s), Total 88, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1820