??? 01/01/07 11:08 Read: times |
#130283 - Basics - Data format Responding to: ???'s previous message |
Sriram Sridharan said:
I never did understand the deep murky waters of digital systems.. Can you explain:
hint: the temperature output is a 9-bit 2's complement value and your program seems to write the MSB to port 0. This is not "deep murky waters" - this is an absolutely basic, fundamental concept. As Patrick says, you really need to understand these basics before you can proceed - you cannot build a house before you've laid good foundations. Anyhow, the format of the data from the DS1620 is illustrated diagramatically in Figure 2 in the Data Sheet, and further illustrated with example readings in Table 3 You should be able to work out what's going on from there... |