storing and displaying data

Newbie Member
3Aug2007,07:08   #1
shir's Avatar
Hi..

How do i store 3 raw ADC in buffer, and how do i display it..??
Team Leader
3Aug2007,09:23   #2
DaWei's Avatar
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).
Newbie Member
3Aug2007,11:06   #3
shir's Avatar
Something like this:
xRaw= GetADC();
xRaw.byte.MSB = ???
xRaw.byte.LSB = ??