完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我是这个论坛的新手,在微芯片编程方面也是新手。我正在做一个项目,它使用18F4550与16x2液晶显示器接口。虽然液晶显示器工作正常,但是它看起来在过程中引入了明显的延迟。这个应用程序经常读取PORTB(端口)上的1Khz脉冲。仅1针)。脉冲数必须及时显示在LCD上,但是我已经注意到LCD的程序引入了大约25毫秒的延迟。在这段时间里,我错过了输入的脉冲。液晶显示器有可能“这么大”的延迟吗?许多感恩节
以上来自于百度翻译 以下为原文 Hi All, i'm new on this forum and almost new in the microchip's programming. I'm working on a project that makes use of an 18F4550 interfaced with a 16x2 LCD. The LCD work just fine however looks that it introduces a sensible delay in the process. This application constantly read 1Khz pulses on PORTB (1 pin only) . The pulses number must be displayed onthe LCD in time but i have noticed that the LCD's routine introduces approx 25ms of delay. During this time , i miss the incoming pulses. Is it possible such "huge" delay by the LCD ? Many thanks Guido |
|
相关推荐
2个回答
|
|
是的,这些LCD每个字符循环大约需要1mS。关键是,您应该在中断处理程序或类似程序中处理输入脉冲,并且只偶尔从主循环更新一次LCD。
以上来自于百度翻译 以下为原文 Yeah, those LCDs may take some 1mS per character circa. The point is that you should handle incoming pulses in an interrupt handler or alike, and update the LCD from the main loop only once in a while. |
|
|
|
嗨,达里奥,很高兴听到你的声音。我对此有些不安。我确实需要快速更新显示器,这样看起来是实时的,但是主回路总是忙于读取脉冲。我试图使用中断,但是由于某种原因不能工作……在代码的某个地方我错了。但是,我认为使用中断将导致停止进程并让lcd更新的问题。我想使用第二张图片作为lcd的从机……这只是一个想法,因为我真的不知道如何将脉冲变量转换为第二次
以上来自于百度翻译 以下为原文 Hi Dario, nice to ear from you. I'm a little upset about this. I do need to update the display quickly , in such a way that it looks to be in realtime, but the main loop (while) is always busy reading the pulses. I have tried to use the interrupts but for some reason doesn't work .... i'm wrong somewhere in the code. However, i believe that using the interrupt i will have the problem to stop the process and lets the lcd to update. I thought to use a second pic as a slave just for the lcd.....this is just an idea because i really don't know how to transfer the pulses variable to the second one. Thanks Guido |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 18:04 , Processed in 1.098345 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号