Re: listening to rs485 serial port on BL4S200
"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]> Wed, 10 Aug 2016 11:00:49 -0700
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
Your program is the only thing running, and the BL4S200 runs at a fixed speed. A typical program is going to have a big loop where it checks for things to do. The overhead of checking for available data on a serial port is negligible in the overall time it takes that loop to run, so it's probably fine as it is. And in most cases, you're better off processing serial data at a known point in program execution, instead of interrupting some other task to process it. -Tom On Aug 10, 2016, at 10:28 AM, [email protected] [rabbit-semi] wrote: > I am using BL4S200 for my control project. BL4S200 is a slave device. Other equipment uses Modbus RS485 to communicate BL4S200. Actually, everything is working, but the only thing is I need use loop to check serial port weather I receive any request, is it possible to use some internal interrupt to detect information received on serial port? so I can remove the fast loop to save some resource. > >