完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HI,通常当我需要读取数据流时,我检查是否设置了USAT数据寄存器空标志。但是根据数据表16F1718,我找不到这个标志。有一些标志,例如RC1STA.RcIDL(USAT接收器正在接收数据,但是当我开始读取一个流数据没有告诉我接收寄存器是空的,我需要你的帮助,谢谢。
以上来自于百度翻译 以下为原文 Hi, Usually when I need to read a stream of data I check if the USART Data Register Empty flags is set or not. But with the 16F1718 according to the data sheet I can't find this Flag. There are some flags such as RC1STA.RCIDL (The USART receiver is receiving data, but when I start reading a stream of data it doesn't tell me when the Receiving register is empty or not ). I need your help please, Thanks. |
|
相关推荐
6个回答
|
|
从数据表:这个PIC有一个接收FIFO缓冲器(2个字符)。RCIF标志用于指示FIFO包含未读字符。
以上来自于百度翻译 以下为原文 from the data sheet: This pic has a receive FIFO buffer (2 characters). The RCIF flag is used to indicate the FIFO contains unread characters. |
|
|
|
我想你在谈论除了PICS以外的设备。正如杰克所说,我曾经合作过的每一个PIC都使用RCIF标志。
以上来自于百度翻译 以下为原文 I assume you are talking about on devices other than PICs. As Jack said, every PIC I have ever worked with uses the RCIF flag for this purpose. |
|
|
|
|
|
|
|
是的,它是HaviCIF标志,但它只能被读取。
以上来自于百度翻译 以下为原文 Yes it have RCIF flag but it can only be read. |
|
|
|
我们不必清除它,它是自动清除当我们读取2字节收到的数据谢谢!
以上来自于百度翻译 以下为原文 We don't have to clear it, it is automatically cleared when we read the 2 byte received data Thanks! |
|
|
|
你的观点是什么?当您读取数据寄存器时,标志会自动清除。这在PIC数据表的USAT部分中都清楚地描述了。
以上来自于百度翻译 以下为原文 What's your point? The flag clears automatically when you read the data register. This IS all described clearly in the USART section of the PIC datasheet. |
|
|
|
只有小组成员才能发言,加入小组>>
4814 浏览 9 评论
1823 浏览 8 评论
1743 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2949 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2055 浏览 5 评论
452浏览 1评论
1107浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
355浏览 0评论
260浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1777浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-20 08:50 , Processed in 1.276257 second(s), Total 76, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号