Thread: Simple Binary to Decimal conversion through a Port to display on LCD Display

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    1

    Simple Binary to Decimal conversion through a Port to display on LCD Display

    I know this is more simple than I am making it out to be. I have a solar panel hooked up to an 8-Bit ADC and linked into my Microprocessor. I am trying to take the Binary readout from the ADC and convert it to a decimal number to be displayed on the boards LCD display. I am wiring the ADC to PORTA on my Motorola Freescale Board. This is for a final project for my electronic systems class due on Monday... Any help would be greatly appreciated!

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Yowzers...you probably should have started a bit sooner. For questions like this, it helps if you provide part numbers and a schematic of your setup. There's lots of solar panels, ADCs and uC boards out there, so we can't help you much without specifics. Also, if you could give us more detail as to what you have done so far, that would be great.

  3. #3
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    You question is unclear. In what sense do you need to "convert" binary to decimal?
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  4. #4
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Actually, it sounds a lot more complicated than you're making it out to be. This question is huge and open-ended, and you've pretty much given no details that are required to help you.

    For instance:

    - You never mentioned the exact device that you're using
    - You never mentioned the type of solar panel you're using
    - You never mentioned if your MCU has a selectable internal (fixed) or external (adjustable) voltage reference, as well as the I/O voltage of your device, and the voltage of the solar panel, and whether the voltage from this solar panel is direct or has any kind of gain
    - You never mentioned what specific type of display you are using
    - You never mentioned which compiler you are using, the flavor of which could greatly effect the potential code you might write
    - You don't mention if you're (1) using a standard development board, (2) using a custom-made board from your university, or (3) designing a board yourself

    If you don't know most of this, and only have a few days to finish it ... you might be in over your head. This project crosses several disciplines. Unless you know more about it than you're letting on, you might be in for a rough time ahead.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How To Display A Whole Number or Decimal Point
    By Glodel in forum C++ Programming
    Replies: 6
    Last Post: 06-28-2012, 07:32 AM
  2. Replies: 13
    Last Post: 05-02-2012, 04:17 PM
  3. decimal to binary conversion
    By roelof in forum C Programming
    Replies: 41
    Last Post: 05-16-2011, 03:32 AM
  4. about scan 7-segment display via parallel port
    By mobdawg in forum C Programming
    Replies: 4
    Last Post: 09-11-2002, 06:11 AM
  5. Binary to decimal conversion help!
    By matrism in forum C Programming
    Replies: 4
    Last Post: 03-25-2002, 12:22 PM

Tags for this Thread