通过RS232接收串行数据中断 [英] Interrupt on Recieve Serial DATA via RS232

查看:183
本文介绍了通过RS232接收串行数据中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
我有一个微控制器,可通过rs232将串行数据发送到计算机.
我可以使用线程使用rs232端口.但是我希望当计算机的串行缓冲区已满时,程序中断并去接收数据.如果rs232上没有数据,则程序不会转到该函数或例程来查找rs232上是否有任何数据.换句话说,我想模拟计算机中微控制器的中断.我该怎么办?
谢谢大家.

hi!
i have a micro-controller that send serial data to computer via rs232.
i can use threads to work with rs232 port. but i want that when serial buffer of computer fulled, the program interrupted and went to receive data. and if there were no data on rs232, the program don''t go to that function or routine to find if there is any data on rs232 or not. in other words, i want a simulation of interrupts in micro-controllers in computer. how can i do?
thanks all.

推荐答案

您可以看看 ^ ].
:)
You may have a look at Communication Events[^].
:)


这篇关于通过RS232接收串行数据中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆