Binary to Decimal conversion

Discussion in 'Programmer's Corner' started by zeeba, Oct 18, 2010.

  1. zeeba

    Thread Starter New Member

    Sep 26, 2010
    22
    0
    Hi

    I want an assembly code for pic16f876a to convert from 16 bit binary number to 5 digit decimal and display it on LCD
    can any one help me ?? Binary to Decimal conversion

     
  2. AlexR

    Well-Known Member

    Jan 16, 2008
    735
    54
    A google of "PIC binary to decimal" brings up 112,000 results. I'm sure a fair proportion of those will have what you want, in fact the very first one gives PIC assembler code for doing the conversion.

    If there is something you don't understand or want explained then this is the site to ask your question but for straight out code examples you are much better of going to Google and doing a WEB search.
     
  3. zeeba

    Thread Starter New Member

    Sep 26, 2010
    22
    0
    I did search but I didn't find what I whant I mean 16bit binary to 5 digit decimal
    what I found was converting to asci can that help me some how??
     
  4. AlexR

    Well-Known Member

    Jan 16, 2008
    735
    54
  5. zeeba

    Thread Starter New Member

    Sep 26, 2010
    22
    0
    thanx 4 tring 2 help me but I so this before

    I need to convert 16 bit binary to 5 digit decimal and I need the code for pic16f876a
     
Loading...