If you do this: Fosc equ d'4000000' BaudRate equ Fosc/(d'16'*d'9600') - 1 (you really have to insist on decimal because default is hex...) ...then if you compile in MPLAB and look at the symbol table in the Absolute Listing window you have the values in hexadecimal: SYMBOL TABLE LABEL VALUE ... Fosc 003D0900 ... br 00000019 ... Then you can use the Windows Calculator accessory to convert to decimal if you like. /\/\/\/*=Martin ----- Original Message ----- From: "Bob Barr" To: Sent: Sunday, December 09, 2001 11:17 AM Subject: Re: [PIC]: Messages with MPASM On Sun, 9 Dec 2001 09:50:30 -0600, Douglas Wood wrote: >I do this in EPICIS to report errors, etc.: > >#define EPE *** EPICIS Error: > > messg EPE Parm1 is invalid for specified >processor. > >Simply #define Parm1 with the value to want to display before the "messg" >message directive. Like this: > >BaudRate equ Fosc/(16*9600) - 1 > > messg Baud rate value is BaudRate > >this should print "Baud rate value is xxxxx" > When I tried something similar a while back, all I could get to print was the literal text. In this case it would print: "Baud rate value is BaudRate" Is there some trick involved that I've missed? Regards, Bob -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.