On Sat, 4 Oct 2003, Ken Pergola wrote: > Is there a way to do this with MPASM or Hi-Tech's C preprocessor (print out > *all* of the baud rates possible given Fosc)? If there is an easy way, that > would be great. I can't think of any way that would be possible with a C preprocessor since it doesn't support the notion of displaying "variable" data. I ended up writing a C program to dump out just the kind of "overview" for a given Fosc that you're talking about: $ baud 4000000 Percent Error BPS BRGH = 0 BRGH = 1 ---------------------------- 300 0.16 N/A 1200 0.16 0.16 2400 0.16 0.16 4800 0.16 0.16 7200 -3.55 -0.79 9600 -6.99 0.16 19200 8.51 0.16 31250 0.00 0.00 38400 -18.62 -6.99 57600 8.51 8.51 115200 N/A 8.51 -- John W. Temples, III -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads