Dallas DS1821 Скачать руководство пользователя страница 7

DS1821 

 

7 of 18 

OPERATION – THERMOSTAT  

When the DS1821 is in thermostat mode (T/R

¯

 = 1 in the status/configuration register), temperature 

conversions are performed continuously beginning at power-up (regardless of the value of the 1SHOT 
bit), and the DQ pin serves as the thermostat output.   The DQ output will become active when the 
temperature of the DS1821 exceeds the user-defined limit in the T

H

 register, and will remain active until 

the temperature drops below the user-defined limit in the T

L

 register as illustrated in Figure 4.   Thus, the 

user can select T

H

 and T

L

 to provide the desired amount of thermostat output hysteresis.  

The user-defined 8-bit centigrade trip-point values (T

H

 and T

L

) must be stored in two’s complement 

format as shown in Figure 3.  The sign bit (S) indicates if the temperature is positive or negative; for 
positive numbers S = 0 and for negative numbers S = 1.  The non-volatile T

H

 and T

L

 registers must be 

programmed when the DS1821 is in 1-Wire mode as explained in the OPERATING MODES section of 
this datasheet.  The DS1821 can be temporarily switched from thermostat mode to 1-Wire mode to 
change the T

H

 and T

L

 values as also explained in the OPERATING MODES section.   

The polarity (i.e., the active state) of the DQ output is user-selectable with the nonvolatile POL bit in the 
status/configuration register. DQ is active-high when POL = 1, and DQ is active-low when POL = 0.  
Two bits in the status/configuration register, THF and TLF, provide additional thermostatic information. 
The value of these bits is normally 0.  The THF (temperature high flag) bit will be set to 1 if the measured 
temperature is ever greater than the value in the T

H

 register and will remain a 1 until the user rewrites the 

bit with a 0.  The TLF (temperature low flag) bit will be set to 1 if the temperature is ever lower than the 
value in the T

L

 register and will remain a 1 until the user rewrites the bit with a 0.  These bits provide a 

record of the device temperature relative to the thermostat trip-points over a period of time.   They are 
stored in nonvolatile memory, so the data stored in THF and TLF can be analyzed after any number of 
power cycles.   The THF and TLF bits function in both 1-Wire and thermostat mode. 
 

DQ OPERATION IN THERMOSTATE MODE  

Figure 4 

 

 
 
 
 
 
 

 
 
STATUS/CONFIGURATION REGISTER 

The status/configuration register provides information to the user about conversion status, EEPROM 
activity and thermostat activity.  It also allows the user to program various DS1821 options such as 
power-up operating mode, thermostat output polarity and conversion mode. The status/configuration 
register is arranged as shown in Figure 5 and detailed descriptions of each bit are provided in Table 3.  
Note that the THF, TLF T/R

¯

, POL and 1SHOT bits are stored in nonvolatile memory (EEPROM).  

 
CONFIGURATION REGISTER  

Figure 5

 

bit 7 

bit 6 

bit 5 

bit 4 

bit 3 

bit 2 

bit 1 

bit 0 

DONE 1  NVB

THF*

TLF*

T/R

¯

*  POL* 1SHOT* 

*

Stored in EEPROM

 

T

L

 

T

H

Temp (°C) 

DQ 

Operating Mode = Thermostat 
POL=1 (DQ is active high)

Содержание DS1821

Страница 1: ...ge NC No Connect DESCRIPTION The DS1821 can function as a standalone thermostat with user programmable trip points or as 8 bit temperature sensor with a 1 Wire digital interface The thermostat trip po...

Страница 2: ...21 and pin descriptions are given in Table 1 The DS1821 can operate as a standalone thermostat with user programmable trip points or as 8 bit temperature sensor with a 1 Wire digital interface The ope...

Страница 3: ...e and the counter is again preset with a starting value determined by the slope accumulator circuitry The preset counter value is unique for every temperature increment and compensates for the parabol...

Страница 4: ...low thermostat trip point registers TH and TL and the configuration register and reading the temperature counter and slope accumulator registers Also in this mode the microprocessor can initiate and...

Страница 5: ...URE DS1821 output temperature data is calibrated in degrees centigrade and is stored in two s complement format in the 1 byte 8 bit temperature register see Figure 3 which the user can access when the...

Страница 6: ...ommand This value is the count remaining in the counter at the end of the gate period and is called COUNT_REMAIN in Eq 1 Next the Load Counter 41h command must be issued which loads the 9 bit slope ac...

Страница 7: ...POL 0 Two bits in the status configuration register THF and TLF provide additional thermostatic information The value of these bits is normally 0 The THF temperature high flag bit will be set to 1 if...

Страница 8: ...Read Write TLF 0 The measured temperature has not been lower than the value stored in the TL register TLF 1 At some point in time the measured temperature has been lower than the value stored in the...

Страница 9: ...e to release the data line when the device is not transmitting data so that the bus is available for use by the other device The 1 Wire port of the DS1821 the DQ pin is open drain with an internal cir...

Страница 10: ...versions will be performed until a Stop Convert T command is received STOP CONVERT T 22h Stops temperature conversions when the device is in continuous conversion mode 1SHOT 0 This opcode has no funct...

Страница 11: ...ata from the counter register A0h Master receives 9 bit counter value from DS1821 Load Counter Loads slope accumulator data into the counter register 41h None 1 Wire SIGNALING The DS1821 uses a strict...

Страница 12: ...high during the sampling window a 1 is written to the DS1821 If the line is low a 0 is written to the DS1821 READ TIME SLOTS The DS1821 can only transmit data to the master when the master issues read...

Страница 13: ...OMMENDED MASTER READ 1 TIMING Figure 10 VDD GND 1 WIRE BUS 15 s VIH of Master TRC TINT 1 s Master samples VDD GND 1 WIRE BUS 15 s VIH of Master TRC small TINT small Master samples LINE TYPE LEGEND Fig...

Страница 14: ...RX Presence DS1821 responds with presence pulse TX 02h Master issues Write TL command TX 0Ah Master sends data for TL 10 C TX Reset Master issues reset pulse RX Presence DS1821 responds with presence...

Страница 15: ...mometer Error 55 C to 125 C VDD 3 6V to 5 5V See Typical Curve Figure 11 DQ Logic Low VIL 0 3 0 8 V 1 5 DQ Logic High VIH 2 The lower of 5 5 or VDD 0 3 V 1 6 Sink Current IL VDQ 0 4V VDD 3 6V to 5 5V...

Страница 16: ...RSTH 480 s 1 Reset Time Low tRSTL 480 s 1 2 Presence Detect High tPDHIGH 15 60 s 1 Presence Detect Low tPDLOW 60 240 s 1 VDD Low to Mode Toggle Clock Low tPC 100 ns 1 3 Mode Toggle Clock 16 High to VD...

Страница 17: ...DS1821 17 of 18 TYPICAL PERFORMANCE CURVE Figure 11 MODE TOGGLE TIMING WHEN T R 1 Figure 12...

Страница 18: ...DS1821 18 of 18 TIMING DIAGRAMS Figure 13...

Отзывы: