On Mon, 10 Dec 2001 10:40:02 -0500, Martin Peach wrote: >If you do this: > >Fosc equ d'4000000' >BaudRate equ Fosc/(d'16'*d'9600') - 1 > If there are only a few valid baud rates, something like this may do the trick: if BaudRate =3D=3D 2400 messg Baud Rate is 2400 else if BaudRate =3D=3D 9600 messg Baud Rate is 9600 else messg *** CAUTION - Unexpected Baud Rate - CAUTION *** endif endif Regards, Bob -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.