完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,所有,我是新用户使用图片,所以它将尝试清楚。我用一个触摸屏AR1021.PIC:PIC32 MZ2048 ECH144和和声版本1.11来编程一个电阻屏幕。事实上,我可以通过使用图形库来配置屏幕并显示它。然而,当我添加触摸驱动器AR1021和系统服务触摸和谐时,屏幕根本不显示。我有一个简单的代码程序来闪烁一个LED内部的Appl任务,而且它也不工作。如果我对Ly//Sysx ToucHi任务(SysObj.StasoukObjuto0)进行注释,屏幕再次显示对象,程序运行(LED闪烁),但是AR1021驱动程序和PIC停止之间的SPI通信。工作。有人知道发生了什么事吗?提前感谢
以上来自于百度翻译 以下为原文 Hi all, I am new user working with PICs so it will try to be clear. I am programming a resistive screen with a touch dirver AR1021. PIC: PIC32MZ2048ECH144 and HARMony version 1.11. The fact is I can configure the screen by using the graphics library and display it. However, when I add the touch driver AR1021 and the system services Touch in Harmony, the screen is not displaying at all. I have a simple code programm to blink a led inside APP_Task and it is not working neither. If I comment the line //SYS_TOUCH_Tasks(sysObj.sysTouchObject0); the screen shows the object again , and the programm runs (LEd blinking), but the SPI communicatiion between the AR1021 driver and the PIC stop working. Does anybody know what is happening?? Thanks in advance |
|
相关推荐
9个回答
|
|
我希望有一些微芯片的贡献者会在第一步。我希望你的项目刚刚开始,因为和声即将在下个月发生大的变化。我们中的许多人已经移动到版本2.03b(beta)的工作,因为2.04将是第一个版本。这有很多C。挂在和谐中,在云中不支持AR10XX部分前进。看到这个线程:HTTP://www. McCHIP.COM/FUMMS/M99 8938ASPX?树= Ttrue:这是一种在2.03B中添加驱动程序的方法,但是它可能需要一些工作。至于你开始的问题,我没有运行1.01版本驱动程序的问题。我确实需要对配置更新做一些修改,所以我的发布报告会来得更早,但就是这样。你能和其他设备共享SPI吗?
以上来自于百度翻译 以下为原文 I was hoping that some of the Microchip contributors would pip in first. I hope your project is just getting started as the Harmony is about to go though a big change in the next month or so. A lot of us have moved to version 2.03b (Beta) for work as 2.04 will be the first release. This has a lot of changes to Harmony, in clouding not supporting the AR10XX parts going forward. See this thread: http://www.microchip.com/forums/m998938.aspx?tree=true This is a way to add the driver in for now in 2.03b, but it may take some work. As to your issue that you started, I had no issues running the 1.01 version of the driver. I did have to make some changes to the configuration update so my release reports would come in sooner, but that is all. Could you be sharing the SPI with any other devices? |
|
|
|
您好,实际上,在我的原型中没有更多的设备可以通过SPI进行通信,但是我已经通过在同一设备上发送数据来检查SPI,配置两个SPI实例;一个主控器和一个SoVE,并用LED指示结果。结果是令人满意的,但我不知道为什么我不能配置AR1021。我将最终移动到2.03 B版本,但是我担心贝塔Viion是否会支持驱动器AR1021。当做
以上来自于百度翻译 以下为原文 Hello, Actually, there are no more devices in my protype to communicate by SPI, but I have checked the SPI by sending data on the same device, configuring two SPI instances; one master and one salve and indicating the results by a led. The results are satisfactory but I do not know why I am not able to configure the AR1021. I will finally move to 2.03 b version, however I have concerns about if the Beta vesion will support the driver Ar1021 or not. regards |
|
|
|
你好,对不起,这一个溜走了,我们没有处理它。我们有一个AR1021的工作驱动程序,但是我们目前还没有演示。这个装置不推荐用于新的设计,所以显然我们最近没有关注它。我会让其中一个家伙跑向地面并回到这里。我们确实有其他客户使用这个,我们相信V2.03B环境。V2.04中的任何东西都不会真正改变这个特定的驱动程序或功能。所以,如果你选择这样做,V2.03B将继续进行。
以上来自于百度翻译 以下为原文 Hello, Sorry, this one slipped through and we did not address it. We do have a working driver for AR1021, but we do not have demos for it at this point. The device is not recommended for new designs, so obviously we have not focused on it recently. I will have one of the guys run this to ground and get back to you here. We do have other customers using this, and one we believe in the v2.03b environment. Nothing in v2.04 will really change this specific driver or function for you. So working with it in v2.03b will carry over if you choose to do so. |
|
|
|
|
|
|
|
你好,Ger jackson,我将在与AR1021驱动程序连接时查看SysTouChuthTask()的问题。如所提到的,AR1021是遗留的。驱动程序的代码生成并没有跟上发布周期的步伐。乍一看,您需要在MHC:1中启用以下内容。驾驶员-GT;触摸驱动器-GT;AR10212。系统服务&触摸;使用触摸系统服务3。您还需要修改AR1021的“FTL”文件:在DRVYAR1021.C.FTL AT:框架驱动器触摸 AR1021CONFIGDRVYAR1021.C.FLTRex::l.I.如果CONFIXUIORDVVGGFX显示= = true>您需要为DVVARAR1021.C驱动文件定义以下内容。实际的引脚和显示分辨率将取决于您的硬件。SP.VeldIdvase227生成代码并编译。请提供更新
以上来自于百度翻译 以下为原文 Hi Ger jackson, I will take a look at your issue with SYS_TOUCH_Task() when interfacing with the AR1021 driver. As mentioned, the AR1021 is legacy. The code generation for the driver has not kept pace with the release cycle. At first glance, you will need to enable the following in MHC: 1. Drivers->Touch Drivers-> AR1021 2. System Services->Touch->Use Touch System Service 3. System Services->Timer->Use Timer System Service You will also need to modify the "ftl" file for ar1021 as follows: in drv_ar1021.c.ftl at: frameworkdrivertouchar1021configdrv_ar1021.c.ftl Replace: <#if CONFIG_USE_DRV_GFX_DISPLAY == true> .orientation = DISP_ORIENTATION, .horizontalResolution = DISP_HOR_RESOLUTION, .verticalResolution = DISP_VER_RESOLUTION,#if> with: <#if CONFIG_USE_GFX_STACK == true> .orientation = ${CONFIG_DRV_GFX_DISPLAY_ORIENTATION}, .horizontalResolution = ${CONFIG_DRV_GFX_DISPLAY_WIDTH}, .verticalResolution = ${CONFIG_DRV_GFX_DISPLAY_HEIGHT}, #if> Lastly, you will need to define the following to the drv_ar1021.c driver file. The actual pins and display resolution will be dependent on your hardware. #ifndef BSP_TouchScreenChipOff #define BSP_TouchScreenChipOff LATDCLR = _LATD_LATD9_MASK #endif #ifndef BSP_TouchScreenChipOn #define BSP_TouchScreenChipOn LATDSET = _LATD_LATD9_MASK #endif #define DISP_HOR_RESOLUTION 480 #define DISP_VER_RESOLUTION 272 Generate the code and compile. Please provide an update |
|
|
|
您好,非常感谢您的输入。我已经修改了“FTL”文件的AR1021,因为我在其他职位阅读。然而,问题仍然存在。我最近移动到2.03和声版本,我也有同样的问题。在sys .Touch .c文件中,在SysTouch任务功能中,当触摸系统服务打开时,SysTouch打开(SysSouthCuxIdxx0),主代码和屏幕停止工作。如果我评论主要作品的线条,绘制对象,但是SPI停止。
以上来自于百度翻译 以下为原文 Hello, Thank you very much for your input. I had already modified the "ftl" file for ar1021, as I read in other post. However, the problem is still there. I have recently moved to 2.03 harmony version and I have the same issue. In the sys.touch.c file, inside the SYS_TOUCH_Tasks function, when the touch system service is opened SYS_TOUCH_Open(SYS_TOUCH_INDEX_0), the main code and the screen stop working. If I comment the line the main works, objects are drawn but the SPI stops. Regards |
|
|
|
嗨,Ger,我理解你的问题。我仔细看看你的问题,并在周末前提供答复。
以上来自于百度翻译 以下为原文 Hi Ger, I understand your problem. I take a closer look at your issue and provide a response before end of week. |
|
|
|
这些修正是否解决了这个问题?有没有进一步的更新,因为我即将开始同一冒险2V04。任何信息或指示,以修复将是非常感谢。
以上来自于百度翻译 以下为原文 Did these corrections fix the issue? Are there any further updates as i am about to embark on the same adventure with 2v04. Any information or indication to a fix would be great thanks. |
|
|
|
嗨,保罗,这并没有解决问题。我最近改为ADC触摸控制器,一切都很简单。我无法用和谐V.1.11配置AR1021,我决定改变策略。祝你好运。
以上来自于百度翻译 以下为原文 Hi Paul, It did not fixe the problem. I have recently changed to ADC Touch controller and everything was easie . I was unable to configure the AR1021 with harmony V.1.11 and I decided to change the strategy. Good luck in your project. Regards. |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3201 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
772浏览 1评论
662浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
590浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
672浏览 0评论
572浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 13:23 , Processed in 1.300814 second(s), Total 92, Slave 76 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号