中断后执行代码[英] Execute code After interrupt

本文是小编为大家收集整理的关于中断后执行代码的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

嗨当串行数据到来时,我想让中断工作,然后运行一个代码.
我该怎么做?

推荐答案

处理 SerialPort.DataRecieved[^] 事件 - 链接包含一个示例.

谢谢,但它没有使用中断,是吗?

本文地址:https://www.itbaoku.cn/post/1356151.html

问题描述

Hi When serial data came I wanna make interrupt work,then one code be runed.
How can i do this?

推荐答案

Handle the SerialPort.DataRecieved[^] event - the link includes an example.

Thanks but it didnt use interrupt,did it?