完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,有人能帮我吗?我买了1602A的LCD,我用四位模式连接。我用许多库测试我的代码,但是屏幕仍然是空白的。我想这可能是图书馆的问题。有人有这个图书馆吗?LCD是2x16,我想与PIC18F45 K22接口。当使用proteus进行模拟时,所有的工作都在工作中,而不是在硬件上。附加了源文件。
主C。(2.57 KB)-下载99次LCD1602A.H.TXT(3.64 KB)-下载135次 以上来自于百度翻译 以下为原文 Hi all, Can someone help me. I bought the 1602A LCD which I connected in four bit mode. I test my code with many library but the screen is remaining blank. I think it might be a library issue. Is there anyone who has this library? The LCD is 2x16 which I want to interface with the PIC18F45k22. When simulate it using Proteus everything is working but not on the hardware. attached the source files Attachment(s) lcd1602A.c (2.84 KB) - downloaded 142 times main.c (2.57 KB) - downloaded 99 times lcd1602A.h.txt (3.64 KB) - downloaded 135 times |
|
相关推荐
11个回答
|
|
在这个线程中,您问了同样的问题:http://www. Microchip .com /论坛/ M968 201。ASPXα1014721可以使用由Microchip提供的LCD库,在PicDEM 2加上开发板提供的代码中。或者遵循本教程:MCU的LCD和ADC。
以上来自于百度翻译 以下为原文 You asked the same in this thread: http://www.microchip.com/forums/m968201.aspx#1014721 You can use the LCD library supplied by Microchip in the code supplied with PICDEM 2 Plus development board. Or follow this tutorial: LCD and ADC with MCC. |
|
|
|
|
|
|
|
你的液晶显示器是如何连接到你的PIC的?它和你的Proteus仿真一样吗?RS、EN和RW引脚是否与库中定义的PIC正确连接?你能发布你的连接设置吗?
以上来自于百度翻译 以下为原文 How is your LCD connected to your PIC? Is it the same way as in your Proteus simulation? Is the RS, EN and RW pin correctly connected to your PIC as defined in the library? Can you post your connection setup? |
|
|
|
Proteus中的连接与我的硬件相同。我甚至用学生同伴SA提供的LCD库来测试这个项目。我得到了同样的问题。
以上来自于百度翻译 以下为原文 The connection in Proteus is the same I did for my hardware. I even test the project using the LCD library provide in student companion SA. I am getting the same issue. Attached Image(s) |
|
|
|
这些LCD库文件看起来与该视频中使用的LCD库或MICHCHIPPLDEM 2加上开发源代码相同。你从哪里得到的文件?
以上来自于百度翻译 以下为原文 These LCD library files don't appear to be the same as the one used in that video or in microchip PICDEM 2 Plus development board source code. Where did you get your files? |
|
|
|
您正在使用PIC18F44 K22进行模拟,但在您的主体C中,您使用的是PIC18F45 K22。这个代码是如何在仿真中工作的?这个代码是如何在你的主体C中工作的:LCD LCD={&&PoBB,5, 4, 6,0, 1, 2,3 };//端口,RS,EN,D4,D5,D6,D7,RW应该连接在哪里?
以上来自于百度翻译 以下为原文 You are simulating with PIC18F44K22 but in your main.c you are using PIC18F45K22. How did this code work in simulation? How does this code work as defined in your main.C: LCD lcd = { &PORTB, 5, 4, 6, 0, 1, 2, 3 }; // PORT, RS, EN, D4, D5, D6, D7 where should RW be connected? |
|
|
|
是的,图书馆看起来不一样,因为我试过很多人。从一个图书馆搬到另一个图书馆。首先我在项目中使用了这个文件。我上传了整个项目给你检查。我很抱歉为Proteus PIC看了正确的一个。谢谢你的帮助。
以上来自于百度翻译 以下为原文 Yes the library doesn't look the same because I was been trying many of them. Moving from one library to another. First of all I used the file in the project. I uploaded the entire project for you to check. I am sorry for the Proteus pic look to the correct one. Thank you for your help. |
|
|
|
你必须提供正确的信息来获得正确的帮助,你似乎正在混合你的东西!没有人知道什么是什么。
以上来自于百度翻译 以下为原文 You must provide correct information to get a correct assistance, you seem to be mixing your stuff! No one knows what is what. |
|
|
|
你是否已经调整了RV1的范围?当VEE销接近地面时,它可能工作得最好。
以上来自于百度翻译 以下为原文 Have you adjusted RV1 right through its range? It is likely to work best when the VEE pin is close to ground. |
|
|
|
谢谢你,GHB。是电位计。我调整它,然后显示器工作。请看图片。正如你在屏幕上看到的,LCD显示有趣的字符,我没有从微控制器发送。你知道它会是什么吗?
以上来自于百度翻译 以下为原文 Thank you GHB. It was the potentiometer. I adjust it then the display was working. Please look at the picture. As you can see on the screen the LCD is displaying funny characters, which i didn't send from the microcontroller. Do you know what can it be? Attached Image(s) |
|
|
|
大家好,我发现,使用我从这个网站找到的图书馆,LCD仍然闪烁,不管在主代码中的任何东西编辑。我从那个图书馆搬到我所附的那个图书馆。LCD正在显示我不从PIC18F45 K22发送的字符。我知道振荡器的速度。我不知道什么是正确的速度。我的PIC配置为在没有锁相环的情况下用8MHz的外部振荡器工作。有人有建议吗?
LCD1602A.H.TXT(3.67 KB)-下载98次主C(2.57 KB)-下载76次 以上来自于百度翻译 以下为原文 Hi all, I found out that using the library that I found from this website the LCD remain blink irrespective to any thing editing in the main code. I move from that library to the one I attached. The LCD is displaying characters that I am not sending from the PIC18F45K22. I though about the oscillator speed. I am not sure what is the right speed. My pic is configure to work with an external oscillator at 8MHz without PLL. Is there anyone who has suggestion? Attachment(s) lcd1602A.c (2.84 KB) - downloaded 106 times lcd1602A.h.txt (3.67 KB) - downloaded 98 times main.c (2.57 KB) - downloaded 76 times |
|
|
|
只有小组成员才能发言,加入小组>>
5139 浏览 9 评论
1987 浏览 8 评论
1917 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3158 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2215 浏览 5 评论
708浏览 1评论
598浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
480浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
609浏览 0评论
505浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-8 14:34 , Processed in 1.454750 second(s), Total 101, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号