Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pmod:pmodtmp2:reference-manual [2021/05/14 23:03] – ↷ Page moved from reference:pmod:pmodtmp2:reference-manual to pmod:pmodtmp2:reference-manual Arthur Brown | pmod:pmodtmp2:reference-manual [2022/09/13 15:21] (current) – changed forum.digilentinc.com to forum.digilent.com Jeffrey | ||
---|---|---|---|
Line 43: | Line 43: | ||
| Shorted | | Shorted | ||
- | To read the temperature data from the %%Pmod TMP2%%, users must first call the Analog Devices chip by whichever slave [[reference:pmod: | + | To read the temperature data from the %%Pmod TMP2%%, users must first call the Analog Devices chip by whichever slave [[pmod: |
Then, issue a restart condition and perform a read for two bytes of data (the register address is auto-incremented). Users may also notice that because the register address for the temperature data is 0x00, they may read the two data registers upon power-up without having to write to the address register because it is already in the correct location. The address register will need to be written to for subsequent readings. | Then, issue a restart condition and perform a read for two bytes of data (the register address is auto-incremented). Users may also notice that because the register address for the temperature data is 0x00, they may read the two data registers upon power-up without having to write to the address register because it is already in the correct location. The address register will need to be written to for subsequent readings. | ||
Line 59: | Line 59: | ||
|::: |||::: | |::: |||::: | ||
- | By default, the %%Pmod TMP2%% collects data with 13 bits of resolution including the sign bit. Users may calculate the corresponding decimal temperature by reading the 13 bits (with the most significant bit as the sign bit) in a [[:reference: | + | By default, the %%Pmod TMP2%% collects data with 13 bits of resolution including the sign bit. Users may calculate the corresponding decimal temperature by reading the 13 bits (with the most significant bit as the sign bit) in a [[: |
{{ : | {{ : | ||
Line 73: | Line 73: | ||
The schematics of the %%Pmod TMP2%% are available {{reference: | The schematics of the %%Pmod TMP2%% are available {{reference: | ||
- | Example code demonstrating how to get information from the %%Pmod TMP2%% can be found [[reference:pmod: | + | Example code demonstrating how to get information from the %%Pmod TMP2%% can be found [[pmod: |
- | If you have any questions or comments about the %%Pmod TMP2%%, feel free to post them under the appropriate section (" | + | If you have any questions or comments about the %%Pmod TMP2%%, feel free to post them under the appropriate section (" |