Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   storing and displaying data (http://www.go4expert.com/forums/storing-displaying-data-t5632/)

shir 3Aug2007 07:08

storing and displaying data
 
Hi..

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

DaWei 3Aug2007 09:23

Re: storing and displaying data
 
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).

shir 3Aug2007 11:06

Re: storing and displaying data
 
Something like this:
xRaw= GetADC();
xRaw.byte.MSB = ???
xRaw.byte.LSB = ??


All times are GMT +5.5. The time now is 19:37.