On Fri, 8 Mar 2002 20:19:53 +0100, Alvaro Deibe Diaz wrote: >I know it, but I need my 16MHz crystal to generate "exact" 10ms sample >periods in my project. If I use a crystal that generate standard RS2 >baud rates, I can't get exact 10ms... > >This is the reason for trying to "force" the PC to talk in other baud >rates. I thought perhaps the 16XXX of the PC UARTs have clock generation >with more than the 8 bits of SPBRG in the PIC. This way I could get less >than 2,13% error between both baud rates. > Unless there's some other reason to avoid doing so, the 250nS instruction resolution you have at 16MHz should allow you to bit-bang your RS-232 at standard baud rates with minimal error.=20 Hardware UARTs are very convenient but sometimes bit-banging can have its benefits. :-) Regards, Bob -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads