完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我是MPLAB的新手,我用和声。我为ILI9341生成了pmp驱动程序和LCD驱动程序。我的设置是PIC32MX340F512H,MPLAB X IDE,HARMony v1.09。ILI931的驱动程序与框架下的其他驱动程序类似。和预期的一样集成和编译良好。我有背光并且我检查了RD,WR信号系统时钟-80Mhz,PMP-8bit与WR和RD线(虽然没有使用RD),颜色钝16位。以下是硬件连接:CS用于LCD-->GNDport RC1-->LCD Resetport RC2-->LCD数据/命令PMWR>LCD WRPMRD-->此时不使用。PMD0到PMD7-->LCD D0到D7I写到LCD寄存器,当我试图读时,II什么也没得到(我读到的地址和我使用的reg相同)。我应该使用PMP 16位接口吗?任何帮助,谢谢
以上来自于百度翻译 以下为原文 Hi, I am new to mplab, and I am using harmony. I generated pmp driver and LCD driver for ILI9341 My setup is here PIC32MX340F512H, MPLAB X IDE , Harmony v1.09. The driver for ILI9341 done similarly as other drivers under framework..driver..gfx..controller.. and integrates and compiles fine as expected. I have backlight and I checked RD, WR signals Sys Clock - 80Mhz, PMP - 8bit with WR and RD lines (not using RD though), Color deapth 16bit. Following are hardware connections: CS for LCD --> GND port RC1 --> LCD Reset port RC2 --> LCD data/command PMWR --> LCD WR PMRD --> not used at this time. PMD0 to PMD7 --> LCD D0 to D7 I write to LCD register and when I try to read , II got nothing (I read the same address as the reg I use ) Should I use PMP 16bit interface ? Any help , Thank you |
|
相关推荐
3个回答
|
|
嗨,如果你想从LCD控制器中读取寄存器,你不应该也连接PMRD信号吗?可能是ILI9341使用这个信号作为读选通(我没有看数据表)。
以上来自于百度翻译 以下为原文 Hi there, If you want to read a register from the LCD controller, shouldn't you connect the PMRD signal as well? It could be that the ILI9341 uses this signal as a read-strobe (I didn't look in the datasheet). Kind regards, Reini |
|
|
|
谢谢,我连接了PMRD信号并验证了它,PMP正确地驱动这个信号。当我通过PMP读取数据时,应该进行几次读取以获得正确的数据吗?下面是我面临的问题:在配置comands之后,我尝试写到寄存器并读取相同的寄存器:DRV_GFX_RegSet(0xF2,0x55);//写到寄存器DRV_GFX_RegGet(0xF2,&data);//从寄存器读取。所有寄存器(我读地址值)
以上来自于百度翻译 以下为原文 Thank, I connected PMRD signal and verified it, the PMP drives this signal correctly. When I read data via PMP , should I make several reads to get right data ? Here is the problem I am facing: After config comands , I try to write to a register and read same register : DRV_GFX_RegSet( 0xF2,0x55); // write to register DRV_GFX_RegGet(0xF2, &data); // read from register When I read I get the value 0xF2 in data variable instead of 0x55 and the same probelm occur whith all registers ( I read address value) |
|
|
|
Hi Laasasu显示控制器可以在发送寄存器命令后将实际响应值延迟到下一个周期,因此您可以尝试多次读取,并且应该得到您所期望的。有类似的问题-参见我的线程HTTP://www. McCHIP.COM/FUMMS/FUNDSPE/961263SILAS
以上来自于百度翻译 以下为原文 Hi Laitasso The display controller may delay the actual response value to the next cycle after the register command was transmitted, so you may try to multiple reads and you should get what you expect. Had the similar issue - see my thread http://www.microchip.com/forums/FindPost/961263 Silas |
|
|
|
只有小组成员才能发言,加入小组>>
5183 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3178 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2229 浏览 5 评论
739浏览 1评论
624浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
510浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
637浏览 0评论
535浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 19:11 , Processed in 1.326659 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号