NEW MATH RESOURCE FOR PICs I've been reorganizing the PIC FAQ math page and searching the archives to round out the code available there. I think it's a good site thanks to all the brilliant code contributed to the PICList. See: http://techref.massmind.org/microchip/math or http://www.piclist.com/faq then select Routine library and Math. 1. I have a couple of snippets that don't have the authors name and would love to give credit where its due. 2. If any of the credited authors who don't have web sites would like some form of link so that they can be contacted, please let me know. If you would like a web site for PIC or PC related stuff, let me know. I haven't copied any code off of anyone else's homepage. If you see code that is posted on your web page, rest assured I got it from the PICList archives. If you didn't post it and want it removed, just let me know. 3. I'd really like to know if I've missed anything. If I can host or mirror your pages or copy the routines (with full credit, links, etc... of course) from your web site, personal library, code vault or bag of tricks, I would love to. 4. I'm worried that the comments I've added (of the form W= and A2=) on each line of John Payson's 16 bit Binary to BCD conversion code may be incorrect. Specifically: Am I getting the subtraction by addition idea correct? How can comf do a negate when it does a ones complement vice a twos complement? Math is not my strongest point. see: http://techref.massmind.org/microchip/math/radix/b2bu-16b5d.htm --- James Newton mailto:jamesnewton@geocities.com 1-619-652-0593 http://techref.massmind.org NEW! FINALLY A REAL NAME! Members can add private/public comments/pages ($0 TANSTAAFL web hosting)