1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

storing and displaying data

Discussion in 'C' started by shir, Aug 3, 2007.

  1. shir

    shir New Member

    Joined:
    Jun 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hi..

    How do i store 3 raw ADC in buffer, and how do i display it..??
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    Divide the output of the ADC into bytes, grab those bytes, and store them in variables. The way you display it is entirely dependent upon what it represents. If a value of 50 represents 2 degrees centigrade, then you have to convert or scale that. If it represents twice the number of items that passed a photocell, then you have to convert or scale that.

    You need to forget about the code for a few hours and get your thinking cap on. Only YOU know what the hell your system is and what it represents (unless you deign to tell us).
     
  3. shir

    shir New Member

    Joined:
    Jun 18, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Something like this:
    xRaw= GetADC();
    xRaw.byte.MSB = ???
    xRaw.byte.LSB = ??
     

Share This Page