完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我正在处理UART RX中断。我通过终端发送数据,然后我的代码接收数据并在控制台上打印。 但我的代码问题是,当我把数据发送到15字节,但只读取8字节,如果我在UART接收器设置中更改缓冲区大小超过8字节。 我的代码总是执行中断,也就是说,它不是从中断出来的。 所以,请帮我解决这个问题。 提前感谢。 请找到附件 PWM1CYWRK.SARVEVE01.ZIP 4.6兆字节 以上来自于百度翻译 以下为原文 Hi, I am working on Uart rx interrupt.I send the data through terminal,then my code receive the data and print on the console. But my code problem is when i send the data upto 15 bytes but reads upto 8 bytes only,if i change the buffer size in uart receiver settings morethan 8 bytes than the my code always executes the interrupt only ,i.e it is not coming out from interrupt. so,please help me to resolve the issue. Thanks in advance. please find the attachment
|
|
相关推荐
2个回答
|
|
|
你好,
你试着先清除中断然后处理数据吗? 以上来自于百度翻译 以下为原文 Hi, Did you try clearing the interrupt first and then processing the data ? |
|
|
|
|
|
维努
检查这个PSoC4 UART代码示例(从终端接收/发送命令字符串) (SCB模式) http://www. Cypop.com /评论/ 389231 类似于UDB模式 http://OrgIn www. CyPress 奥迪赛1 以上来自于百度翻译 以下为原文 venu, Check this PSOC4 UART code example (receiving/sending command string from terminal) (SCB mode) http://www.cypress.com/comment/389231#comment-389231 And similar for UDB mode http://origin-www.cypress.com/comment/235306#comment-235306 odissey1 |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2474 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2073 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 05:33 , Processed in 0.578748 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2407