1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Embedded design Help.

  1. Aug 11, 2007 #1
    1. The problem statement, all variables and given/known data

    I'm very new to embedded design and wanted to develop a micro controller code that

    *takes 3 inputs from 3 push buttons
    - hundreds, tens, ones respectively
    * displays the output on 3 7segment displays
    * outputs a fixed binary number to another microcontroller / or perhaps use it for another aspect inside the microcontroller.

    2. Relevant equations

    None that I know of.
    I'll most likely program it in C and use the ctoasm function to convert it into assembly

    3. The attempt at a solution

    This is the design I'm hoping for.

    rough pseudo code for now

    Code (Text):

    int hundreds, tens, ones;

    boolean set = 0; // when pressed the final value is calculated and stored
    boolean input1 = 0;
    boolean input2 = 0;
    boolean input3 = 0;

    while (set != 1) {
      if (input1 == 1){
      else if (input2 == 1){
      else if (input3 == 1){

    }//end while - loop ends when set = 1

    finalVal = (100*hundreds) + (10*tens) + ones;
    things to include:
    i'll have to #define the push button addresses
    in the main code I'll have to define the output ports as

    byte *output_port = (byte *) display; //or something or rather

    could someone help - or atleast point me in the right direction
    Last edited: Aug 12, 2007
  2. jcsd
  3. Aug 12, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper

    Which micro depends on how many you want to make.
    A basic stamp or pic is easiest is you only want one or two, if you are making more then something like an 8051, but the dev kit is expensive for one off.
    It is unlikely you will find a low end micro with enough i/o pins to drive 3 x 7segment directly, you probably need an interface chip to run the display.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Embedded design Help.
  1. 3d design help (Replies: 2)

  2. Multiplier design help (Replies: 7)