1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

storing and displaying data

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

  1. shir

    shir New Member


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

    DaWei New Member

    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

    Something like this:
    xRaw= GetADC();
    xRaw.byte.MSB = ???
    xRaw.byte.LSB = ??

Share This Page