完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在尝试在我的Spartan-3an入门套件上实现与lcd屏幕的接口,我特别不想使用PicoBlaze或MicroBlaze。
我的第一个问题是:如果我想使用8位接口,我是否必须遵循类似于电路板用户指南中提供的初始化过程(专门用于使用4位接口)? 初始化过程中的步骤是什么? 我探讨了更多的用户指南参考设计,并找到了在DNA Reader应用程序参考中使用8位接口的初始化过程。 该特定应用程序使用了我想避免使用的PicoBlaze处理器,但我遵循了应用程序中使用的相同算法。 然后我将以下命令传递给LCD:清除显示(x“01”),显示在(x“0F”)上,最后返回光标(x“02”),之后我希望在顶部看到一个闪烁的光标 显示器的一角(地址x“00”),但没有闪烁的光标,只是一个完全空白的显示。 当我试图将一个角色写入显示器时,它也没有出现。 在将我的设计下载到FPGA之前的模拟显示所有命令正确地传递到LCD并且在命令之间有适当的时间间隔,我已经仔细检查了我直接从板文档中复制的UCF文件。 我试图解决这个问题几天,并没有取得任何进展,所以我很感激任何人可能提供的任何帮助。 以上来自于谷歌翻译 以下为原文 I am trying to implement an interface with the lcd screen on my Spartan-3an starter kit, I specifically don't want to use PicoBlaze or MicroBlaze. My first question is: If I wish to use the 8-bit interface, do I have to follow an initialisation process similar to the one provided in the board's user guide (which is specifically for using the 4-bit interface)? And what are the steps in the initialisation process? I poked around more user guides reference designs and found an initialisation process for using the 8-bit interface in the DNA Reader application reference. That specific application makes use of a PicoBlaze processor which I want to avoid but I followed the same algorithm used in the application. I then passed the following commands to the LCD: clear display (x"01"), display on (x"0F") and finally return cursor (x"02") after which I expected to see a flashing cursor in the top let corner of the display (address x"00") but there was no flashing cursor, just a completely blank display. When I tried to write a character to the display it didn't appear either. My simulation before downloading my design to the FPGA showed all commands passing to the LCD correctly and with appropriate time intervals between commands and I've double-checked my UCF file which I copied straight from the boards documentation. I've trying to solve this problem for a few days and haven't made any progress so I'd appreciate any help anyone may have to offer. |
|
相关推荐
1个回答
|
|
我完全不熟悉有问题的LCD和Spartan-3AN套件。
当然,这种无知不会妨碍我提供调试建议。 您有一个PicoBlaze正常初始化4位模式LCD的工作示例,以及非PicoBlaze在8位模式下执行相同功能的非工作示例。 分而治之。 问题是您对init序列的实现,还是您对8位(与4位)接口转换的实现? 以4位模式实现非PicoBlaze init序列。 如果它工作,你剩下的问题是8位转换。 如果没有,您需要更好地复制PicoBlaze init序列。 (如果我不得不做一个狂野的猜测,我的第一个猜测就是在8位字节内交换低/高4位数字的顺序,但正确的方法是描述有条理的分治/征服步骤 以上) - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 I am completely unfamiliar with the LCD in question, and the Spartan-3AN kit. Of course, this ignorance won't stand in my way for offering a debugging suggestion. You have a working example of PicoBlaze correctly initialising the LCD in 4-bit mode, and a non-working example of non-PicoBlaze performing the same function in 8-bit mode. Divide and conquer. Is the problem your implementation of the init sequence, or your implementation of 8-bit (vs. 4-bit) interface translation? Implement your non-PicoBlaze init sequence in 4-bit mode. If it works, your remaining problem is the 8-bit translation. If not, you need to do a better job of replicating the PicoBlaze init sequence. (and if I had to make a wild-a** guess, my first guess would be swapping the order of low/hi 4-bit nybbles within the 8-bit byte, but the proper approach is the methodical divide/conquer step described above) - Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
只有小组成员才能发言,加入小组>>
2458 浏览 7 评论
2851 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2313 浏览 9 评论
3399 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2492 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1971浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
636浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
494浏览 1评论
2041浏览 0评论
768浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-24 05:38 , Processed in 1.018006 second(s), Total 45, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号