@@ -29,9 +29,18 @@ Supported chips:
29
29
30
30
Datasheet: Publicly available at the Analog Devices website
31
31
32
+ * Maxim MAX31875
33
+
34
+ Prefix: 'max31875'
35
+
36
+ Addresses scanned: I2C 0x48 - 0x4f
37
+
38
+ Datasheet: Publicly available at the Analog Devices website
39
+
32
40
33
41
Authors:
34
42
- Daniel Matyas <
[email protected] >
43
+ - John Erasmus Mari Geronimo <
[email protected] >
35
44
36
45
Description
37
46
-----------
@@ -45,13 +54,20 @@ configured to operate in the same manner with 1 write operation to the
45
54
configuration register. From here on, we will refer to all these chips as
46
55
MAX31827.
47
56
48
- MAX31827 implements a temperature sensor with a 6 WLP packaging scheme. This
49
- sensor measures the temperature of the chip itself.
57
+ This driver also supports the MAX31875. Its fault queue is set to 1 and it has
58
+ no alarm polarity.
59
+
60
+ MAX31827 implements a temperature sensor with a 6 WLP packaging scheme while
61
+ MAX31875 has a 4 WLP packaging scheme. This sensor measures the temperature of
62
+ the chip itself.
50
63
51
64
MAX31827 has low and over temperature alarms with an effective value and a
52
65
hysteresis value: -40 and -30 degrees for under temperature alarm and +100 and
53
66
+90 degrees for over temperature alarm.
54
67
68
+ MAX31875 has only an over temperature alarm with an effective value and a
69
+ hysteresis value: +80 and +75 degrees.
70
+
55
71
The alarm can be configured in comparator and interrupt mode from the
56
72
devicetree. In Comparator mode, the OT/UT status bits have a value of 1 when the
57
73
temperature rises above the TH value or falls below TL, which is also subject to
@@ -75,19 +91,22 @@ it is recommended to perform a read of the configuration/status register to
75
91
clear the status bits before changing the operating mode.
76
92
77
93
The conversions can be manual with the one-shot functionality and automatic with
78
- a set frequency. When powered on, the chip measures temperatures with 1 conv/s.
94
+ a set frequency. When powered on, the MAX31827 measures temperatures with 1
95
+ conv/s while the MAX31875 measures temperatures with 0.25 conv/s or 1 conv/4s.
79
96
The conversion rate can be modified with update_interval attribute of the chip.
80
97
Conversion/second = 1/update_interval. Thus, the available options according to
81
98
the data sheet are:
82
99
83
100
- 64000 (ms) = 1 conv/64 sec
84
101
- 32000 (ms) = 1 conv/32 sec
85
102
- 16000 (ms) = 1 conv/16 sec
86
- - 4000 (ms) = 1 conv/4 sec
87
- - 1000 (ms) = 1 conv/sec (default)
103
+ - 4000 (ms) = 1 conv/4 sec (MAX31875 default)
104
+ - 1000 (ms) = 1 conv/sec (MAX31827 default)
88
105
- 250 (ms) = 4 conv/sec
89
106
- 125 (ms) = 8 conv/sec
90
107
108
+ The MAX31875 only supports the last four values above.
109
+
91
110
Enabling the device when it is already enabled has the side effect of setting
92
111
the conversion frequency to 1 conv/s. The conversion time varies depending on
93
112
the resolution.
@@ -97,16 +116,16 @@ available resolutions are:
97
116
98
117
- 8 bit -> 8.75 ms conversion time
99
118
- 9 bit -> 17.5 ms conversion time
100
- - 10 bit -> 35 ms conversion time
101
- - 12 bit (default) -> 140 ms conversion time
119
+ - 10 bit (MAX31875 default) -> 35 ms conversion time
120
+ - 12 bit (MAX31827 default) -> 140 ms conversion time
102
121
103
122
There is a temp1_resolution attribute which indicates the unit change in the
104
123
input temperature in milli-degrees C.
105
124
106
125
- 1000 mC -> 8 bit
107
126
- 500 mC -> 9 bit
108
- - 250 mC -> 10 bit
109
- - 62 mC -> 12 bit (default) - actually this is 62.5, but the fil returns 62
127
+ - 250 mC -> 10 bit (MAX31875 default)
128
+ - 62 mC -> 12 bit (MAX31827 default) - actually this is 62.5, but the fil returns 62
110
129
111
130
When chip is in shutdown mode and a read operation is requested, one-shot is
112
131
triggered, the device waits for <conversion time> ms, and only after that is
@@ -125,7 +144,8 @@ Bus timeout resets the I2C-compatible interface when SCL is low for more than
125
144
126
145
Alarm polarity determines if the active state of the alarm is low or high. The
127
146
behavior for both settings is dependent on the Fault Queue setting. The ALARM
128
- pin is an open-drain output and requires a pullup resistor to operate.
147
+ pin is an open-drain output and requires a pullup resistor to operate. The
148
+ MAX31875 does not have this feature.
129
149
130
150
The Fault Queue bits select how many consecutive temperature faults must occur
131
151
before overtemperature or undertemperature faults are indicated in the
0 commit comments