There are many ways you can do it. It depends on what you need.
If you want the main program to continue running while it's receiving data, then you'll need to use the buffer method as shown in that thread.
If you just want the main program to stop what it's doing and grab the serial data, then simply put your HSERIN in the serialin handler.
You should add a timeout if you do that though.
Bookmarks