Discussion in 'C' started by shir, Aug 3, 2007.
How do i store 3 raw ADC in buffer, and how do i display it..??
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).
Something like this:
xRaw.byte.MSB = ???
xRaw.byte.LSB = ??
Separate names with a comma.