I am trying to write a serial communication routine using PowerBASIC.
Unfortunately, I can't get any kind of reasonable performance and am
looking for some suggestions. I am communicating with a micro-
controller at 38400 baud. Sending a 5 byte message and receiving
a 1 byte reply. I am only able to send about 70 messages per
second. With the VB program I was using before, I was getting
about 150 messages per second. When I use another microcontroller to
operate the interface, I get over 350 messages per second. The
theoretical maximum at this baud rate (assuming zero delays), is
about 640 messages per second. I know I won't come close to that
but 70 is way too slow.
I can post code if that will help - right now I'm looking for
some general suggestions about where to look for the problem.
I converted to PB with the idea that it would really improve the
performance, but I'm not seeing it at this point!
------------------
Unfortunately, I can't get any kind of reasonable performance and am
looking for some suggestions. I am communicating with a micro-
controller at 38400 baud. Sending a 5 byte message and receiving
a 1 byte reply. I am only able to send about 70 messages per
second. With the VB program I was using before, I was getting
about 150 messages per second. When I use another microcontroller to
operate the interface, I get over 350 messages per second. The
theoretical maximum at this baud rate (assuming zero delays), is
about 640 messages per second. I know I won't come close to that
but 70 is way too slow.
I can post code if that will help - right now I'm looking for
some general suggestions about where to look for the problem.
I converted to PB with the idea that it would really improve the
performance, but I'm not seeing it at this point!
------------------
Comment