It depends a lot on what constraints there are from other requirements of your system - rates as
high as 115K2 are possible at 4MHz if you don't mind it using up almost all your CPU time doing
serial comms.
On Tue, 25 Mar 2003 23:40:18 -0000, you wrote:
{Quote hidden}>Folks,
>Before I go off and waste a bunch of time trying to do the impossible (but
>hey it may be fun), does anyone have any advice on what is the fastest half
>duplex rs323 comms I can expect to get using software only on a 4MHz 16f876
>(using a resonator not a crystal)?
>
>I'm currently using the code created by Andy N1YEW and posted on piclist.com
>and have this working fine at 19200 baud, but if possible I would like to
>run a little faster. I know I should probably be using the built in hardware
>but the board layout (not mine) will not allow it. I could also switch to a
>higher speed but again I would like to avoid changes to the board. The way
>things are I can probably dedicate the entire cpu to the serial code while
>transmitting/receiving with the exception of a TMR0 roll over interrupt that
>has been coded with minimal register save and just a simple increment of a
>counter (approx 5 instructions long), the interrupt occurs every 65535
>instructions (TMR0 is using divide by 256 pre-scaler).
>
>Thanks for any help
>
>Andy
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.