Hi. I'v checked the PIClist archive but only found 8-bit bin to BCD and 16 bit and higher. Does anyone have a routine for 10 bits ? ("000"-"3FF" -> 0, 0, 0, 0 - 1, 0, 2, 3) The 4 BCD values could and up as 4 individual bytes or packed in two bytes, it doesn't matter. B.t.w, the 10-bit value comes from the ADC... Jan-Erik Svderholm S:t Anna Data -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu