I wrote a routine to convert a bin value to BCD some time ago. One thing that I missed about the DAW instruction, is that DAW "Decimal adjust W" when W containes the result of an addition of two other values *which both was in BCD format before the addition*. So you can not add two *binary* values and then use DAW on the result. You'll get all kinds of funny results. (And if one read the data sheet carefully, this is clearly written there...) I have not checked is this is the case for your code, but anyway... Jan-Erik S=F6derholm. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body