----- Original Message ---- >I wasn't carefull, and I don't tell everything sorry. >In my variable there are only 00h-63h (0d-99d). And I want divide it by >10... I tought there is a very simple method, but I don't know it. >So, it seems the fastest method is the the LOOKUP table, it takes a few >cycles but more than 100 rows, the shortest (row) method is more than >100 cycles. >Balazs look at app note an544 http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en011088 there are 4 ways described to do this without tables fastest: Binary to BCD (8 bit) 10 words 62 cycles 1 byte scratch unused Peter van Hoof -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist