I want to write a program interrupts when the receive buffer for the serial port has received some data. I have done a little a bit of research and I believe C# word for interrupt is delegate. Apologies if I'm barking up the wrong tree but I want to know if there is method other than polling the read buffer of the serial port. I have used interrupts before but only in C on a PIC. Basically is it possible in C#?


Recommended Answers

All 3 Replies

There is a class (I think it is under System.SerialPort but I could be wrong) that has events which fire when data is received. All the nasty work already done for you. (Although there ARE a few problems with the class that I have notice)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.