jecottrell
Joined: 16 Jan 2005 Posts: 559 Location: Tucson, AZ
|
|
Posted: Tue Oct 03, 2006 12:23 am |
|
|
Don't start another post if you've already asked the same question previously....
If you're referring to reading the temp data from the LM70 you won't be reading 10 bits. Look at the timing diagrams in the data sheet and look at the way SPI works. Also, the links to other threads in your other thread may clear some things up...
You'll actually read two 8bit sequences that will have to be concatenated into a 16bit integer, of which you'll only have 10 bits of accuracy. You'll also have to deal with the 2's complement format for determining the sign of the value.
From what you have asked, it appears that you aren't up to writing your own drivers yet. Look for another digital temperature sensor that has a driver already written for it.....
John |
|