13.3.19 ADC Digital Filter x Control Register (x = 0, 1, 2, 3)
Legend: HSC = Hardware Settable/Clearable bit
| Name: | ADFLxCON |
| Offset: | 0xB6A, 0xB6E, 0xB72, 0xB76 |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| FLEN | MODE[1:0] | OVRSAM[2:0] | IE | RDY | |||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | HSC/R | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| FLCHSEL[4:0] | |||||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
Bit 15 – FLEN Filter Enable bit
| Value | Description |
|---|---|
1 |
Filter is enabled. |
0 |
Filter is disabled and the RDY bit is cleared. |
Bits 14:13 – MODE[1:0] Filter Mode bits
| Value | Description |
|---|---|
11 |
Averaging mode |
10 |
Reserved |
01 |
Reserved |
00 |
Oversampling mode |
Bits 12:10 – OVRSAM[2:0] Filter Averaging/Oversampling Ratio bits
If MODE[1:0] = 00:
111 = 128x (16-bit result in the ADFLxDAT register is in 12.4
format)
110 = 32x (15-bit result in the ADFLxDAT register is in 12.3
format)
101 = 8x (14-bit result in the ADFLxDAT register is in 12.2
format)
100 = 2x (13-bit result in the ADFLxDAT register is in 12.1
format)
011 = 256x (16-bit result in the ADFLxDAT register is in 12.4
format)
010 = 64x (15-bit result in the ADFLxDAT register is in 12.3
format)
001 = 16x (14-bit result in the ADFLxDAT register is in 12.2
format)
000 = 4x (13-bit result in the ADFLxDAT register is in 12.1
format)
If MODE[1:0] = 11 (12-bit result in the ADFLxDAT register in all
instances):
111 = 256x
110 = 128x
101 = 64x
100 = 32x
011 = 16x
010 = 8x
001 = 4x
000 = 2x
Bit 9 – IE Filter Common ADC Interrupt Enable bit
| Value | Description |
|---|---|
1 |
Common ADC interrupt will be generated when the filter result will be ready. |
0 |
Common ADC interrupt will not be generated for the filter. |
Bit 8 – RDY Oversampling Filter Data Ready Flag bit
This bit is cleared by hardware when the result is read from the ADFLxDAT register.
| Value | Description |
|---|---|
1 |
Data in the ADFLxDAT register are ready. |
0 |
The ADFLxDAT register has been read and new data in the ADFLxDAT register are not ready. |
Bits 4:0 – FLCHSEL[4:0] Oversampling Filter Input Channel Selection bits
| Value | Description |
|---|---|
11111-10110 |
Reserved |
10101 |
AN21 (Band gap 1.2V) |
10100 |
AN20 (Temperature sensor) |
10011 |
AN19 |
10010 |
AN18 |
10001 |
AN17 |
10000 |
AN16 |
01111 |
AN15 |
| . . . | |
00000 |
AN0 |
