8.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 22. 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 22. Lo_thresh Register15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
Lo_thresh11 |
Lo_thresh10 |
Lo_thresh9 |
Lo_thresh8 |
Lo_thresh7 |
Lo_thresh6 |
Lo_thresh5 |
Lo_thresh4 |
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_thresh3 |
Lo_thresh2 |
Lo_thresh1 |
Lo_thresh0 |
0 |
0 |
0 |
0 |
R/W-0h |
R/W-0h |
R/W-0h |
R/W-0h |
R-0h |
R-0h |
R-0h |
R-0h |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Figure 23. Hi_thresh Register15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
Hi_thresh11 |
Hi_thresh10 |
Hi_thresh9 |
Hi_thresh8 |
Hi_thresh7 |
Hi_thresh6 |
Hi_thresh5 |
Hi_thresh4 |
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_thresh3 |
Hi_thresh2 |
Hi_thresh1 |
Hi_thresh0 |
1 |
1 |
1 |
1 |
R/W-1h |
R/W-1h |
R/W-1h |
R/W-1h |
R-1h |
R-1h |
R-1h |
R-1h |
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset |
Table 7. Lo_thresh and Hi_thresh Register Field Descriptions
Bit | Field | Type | Reset | Description |
15:4 |
Lo_thresh[11:0] |
R/W |
800h |
Low threshold value |
15:4 |
Hi_thresh[11:0] |
R/W |
7FFh |
High threshold value |