> I got the UART_BAUD macro from piclist.com If you are referring to my UART_BAUD macro, then you should get the real version from http://www.embedinc.com/pic. I don't put things at piclist.com, so I have no idea what version somebody stuck there. I didn't even know it was there until now. > and it was driving me insane. > Since I couldn't figure out how to get MPASM to print values from macros Just look at the listing file. You can see all the intermediate values stored to assembler variables. That's how I debug these things. > I did a lot of trial and error testing intermediate calculation values. > FINALLY I realized that the problem was that the default base in MPASM > isn't decimal. Right. I think that's totally irresponsible of Microchip. The very first line in STD_DEF.INS.ASPIC sets the radix to decimal for that reason. All the rest of my source code assumes that the radix is decimal. I have no interest supporting people who think that hexadecimal default is a good idea. > A few dozen d'...' later (including on the argument to > the macro) and now it gets the right answer. Much better answer is to do a RADIX DEC at the beginning of your code. Even better, use STD_DEF.INS.ASPIC and STD.INS.ASPIC within the environment as they were intended and everything will just work. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body