Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next 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 Brownpmod:pmodtmp2:reference-manual [2022/09/13 15:21] (current) – changed forum.digilentinc.com to forum.digilent.com Jeffrey
Line 43: Line 43:
 |  Shorted  |  Shorted  |  0x48 (0b1001000)   | |  Shorted  |  Shorted  |  0x48 (0b1001000)   |
  
-To read the temperature data from the %%Pmod TMP2%%, users must first call the Analog Devices chip by whichever slave [[reference:pmod:pmodtmp2:reference-manual#i2c_address_selection|address you have set]] with the jumper blocks and then write the register address of the most significant byte of the temperature data (0x00). +To read the temperature data from the %%Pmod TMP2%%, users must first call the Analog Devices chip by whichever slave [[pmod:pmodtmp2:reference-manual#i2c_address_selection|address you have set]] with the jumper blocks and then write the register address of the most significant byte of the temperature data (0x00). 
  
 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:
 |:::                                      |||::: J3  |   INT  |  Interrupt Output           | |:::                                      |||::: J3  |   INT  |  Interrupt Output           |
  
-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:twos_complement|two's complement]] format and dividing by 16 (for 13-bit resolution). Thus, one equation that could be used to determine the measured temperature could be:+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 [[:twos_complement|two's complement]] format and dividing by 16 (for 13-bit resolution). Thus, one equation that could be used to determine the measured temperature could be:
  
 {{ :pmod:pmod:tmp2:PmodTMP2_Calculation.png?750 |Temperature Calculation for 13-bits of resolution}} {{ :pmod:pmod:tmp2:PmodTMP2_Calculation.png?750 |Temperature Calculation for 13-bits of resolution}}
Line 73: Line 73:
 The schematics of the %%Pmod TMP2%% are available {{reference:pmod:pmodtmp2:pmodtmp2_sch.pdf|here}}. Additional information about the %%ADT7420%% including communication modes and specific timings of the chip can be found by checking out its datasheet [[http://www.analog.com/adt7420|here]].  The schematics of the %%Pmod TMP2%% are available {{reference:pmod:pmodtmp2:pmodtmp2_sch.pdf|here}}. Additional information about the %%ADT7420%% including communication modes and specific timings of the chip can be found by checking out its datasheet [[http://www.analog.com/adt7420|here]]. 
  
-Example code demonstrating how to get information from the %%Pmod TMP2%% can be found [[reference:pmod:pmodtmp2:start#example_projects|here]]. +Example code demonstrating how to get information from the %%Pmod TMP2%% can be found [[pmod:pmodtmp2:start#example_projects|here]]. 
  
-If you have any questions or comments about the %%Pmod TMP2%%, feel free to post them under the appropriate section ("Add-on Boards") of the [[https://forum.digilentinc.com/|Digilent Forum]].+If you have any questions or comments about the %%Pmod TMP2%%, feel free to post them under the appropriate section ("Add-on Boards") of the [[https://forum.digilent.com/|Digilent Forum]].