9.6.4 Lo_thresh (P[1:0] = 2h) [reset = 8000h] and Hi_thresh (P[1:0] = 3h) [reset = 7FFFh] Registers
The upper and lower threshold values used by the comparator are stored in two 16-bit registers in two's complement format. The comparator is implemented as a digital comparator; therefore, the values in these registers must be updated whenever the PGA settings are changed.
The conversion-ready function of the ALERT/RDY pin is enabled by setting the Hi_thresh register MSB to 1 and the Lo_thresh register MSB to 0. To use the comparator function of the ALERT/RDY pin, the Hi_thresh register value must always be greater than the Lo_thresh register value. The threshold register formats are shown in Figure 37. When set to RDY mode, the ALERT/RDY pin outputs the OS bit when in single-shot mode, and provides a continuous-conversion ready pulse when in continuous-conversion mode.
Figure 37. Lo_thresh Register
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
Lo_thresh15 |
Lo_thresh14 |
Lo_thresh13 |
Lo_thresh12 |
Lo_thresh11 |
Lo_thresh10 |
Lo_thresh9 |
Lo_thresh8 |
R/W-1h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Lo_thresh7 |
Lo_thresh6 |
Lo_thresh5 |
Lo_thresh4 |
Lo_thresh3 |
Lo_thresh2 |
Lo_thresh1 |
Lo_thresh0 |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Figure 38. Hi_thresh Register
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
Hi_thresh15 |
Hi_thresh14 |
Hi_thresh13 |
Hi_thresh12 |
Hi_thresh11 |
Hi_thresh10 |
Hi_thresh9 |
Hi_thresh8 |
R/W-0h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
Hi_thresh7 |
Hi_thresh6 |
Hi_thresh5 |
Hi_thresh4 |
Hi_thresh3 |
Hi_thresh2 |
Hi_thresh1 |
Hi_thresh0 |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Table 9. Lo_thresh and Hi_thresh Register Field Descriptions
Bit |
Field |
Type |
Reset |
Description |
15:0 |
Lo_thresh[15:0] |
R/W |
8000h |
Low threshold value |
15:0 |
Hi_thresh[15:0] |
R/W |
7FFFh |
High threshold value |