OSC freq / 4 / Baud Rate tells you how many cyles to wait between bits... for example at 20 mhz 20,000,000 / 4 / 115,000 baud = 43 cycles...you have to allow for your program time so this would be about the highest youd go its 43.47826 just for the picky...hehe..see yas ----- Original Message ----- From: "David Huisman" To: Sent: Wednesday, September 27, 2000 3:33 PM Subject: Dual UART > Has anyone here implemented an application that uses both the on-board UART > and a bit bashed Serial port simultaneously on a PIC ? > > My particular interest is not loosing serial data coming in on the port pin > while the on-board UART can receive at any time. > I need to determine how fast the bit bashed serial receive can run when PIC > is running from 20MHz Xtal. (I am using 16F876) > > The approach so far is to use RB0 interrupt to capture the Start bit then a > timer to verify start bit at T/2, then sample line every period T x 8 and > finally the stop bit. > > Regards > > David Huisman > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST > > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST