All, It seems to me I saw something like this in either the "PIC'n up the Pace" book or "Easy PIC'n" book by David Benson. It accepts a 5 digit decimal number and convert it to 16 bit binary. You could use this or modify it to suit. I'm sure David would be happy if you used it, as that is what his book was written for. Check it out. Regards, Jim On Fri, 19 January 2001, James Newton wrote: > > It seems that the code library > http://www.piclist.com/techref/microchip/math/radix/index.htm > also needs such a routine... > > Any takers? > > --- > James Newton (PICList Admin #3) > mailto:jamesnewton@piclist.com 1-619-652-0593 > PIC/PICList FAQ: http://www.piclist.com or .org > > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Philip Martin > Sent: Friday, January 19, 2001 09:01 > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]:Maths Problem > > > > I have got a routine to convert 16 or 24 bit to BCD and that works fine. But > what I need is a routine to convert BCD to 16 bit, does anyone know the > location of such a routine or, how best to go about this. > > TIA, > > Philip Martin. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. jim@jpes.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.