Josh Koffman wrote: > Hi all. I'm thinking of a project where I'll have a 9 bit > binary number, and I'll want to display it on a 3 digit > 7 segment display. To do this I'll need to extract the > hundreds, tens, and ones digits from the number... For this, I would use the "Shift and Add-3 Algorithm" to do the conversion you need: http://www.engr.udayton.edu/faculty/jloomis/ece314/notes/devices/binary_to_BCD/bin_to_BCD.html Take care, -Chris -- | Christopher Cole, Cole Design and Development, LLC cole@coledd.com | | Embedded Software Development and Electronic Design http://coledd.com | | Stow, Ohio, USA 800-518-2154 | -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist