| Newsgroups |
gmane.comp.hardware.rabbit-semiconductor |
| Organization |
Omniverter Inc. |
| Message-ID |
<[email protected]> |
Hello, Tom:
Thank you for your response. Actually, I am using serval "costate" with
different loop timing. My current serial port use one of them "costate" with
15 msec loop time. My RS485 port use 115kbps. Do you think how often
checking serial port is reasonable according to your experience?
Regards,
Yang
From: [email protected] [mailto:[email protected]]
Sent: Wednesday, August 10, 2016 2:01 PM
To: [email protected]
Subject: Re: [rabbit-semi] listening to rs485 serial port on BL4S200
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]
<mailto:[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.