38.7.14 Filter Control

Table 38-21. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: FLTCTRL
Offset: 0x0C0
Reset: 0x00000000
Property: RW

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
   FLTCHNID[3:0] FLTEN 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 76543210 
    DATA16ENFMODEOVRSAM[2:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bits 13:10 – FLTCHNID[3:0] Channel ID

Identifies which input channel, k , is to be filtered by the Digital Filter.

Note:
  1. This bit is Enabled Protected. (Writes are ignored when CTRLA.ENABLE = 1) returns a bus error.

Bit 8 – FLTEN Filter Enable

When set, this bit enables the Digital Filter to filter the output data generated by the ADC. The input channel to be filtered is determined by FLTCHNID.

Note:
  1. This bit is Enabled Protected: (Writes are ignored when CTRLA.ENABLE = 1) returns a bus error.

Bit 4 – DATA16EN 16bit Averaging Mode

Note:
  1. This bit is Enabled Protected: (Writes are ignored when CTRLA.ENABLE = 1) returns a bus error.

This bit is significant only if FMODE = 1 (Averaging Mode) and CHNCFG2.FRACTk= 1 (Fractional Output Mode, where k = FLTCHNID[3:0] is the chosen input for filtering) as follows:

ValueDescription
0Only the first 12 bits are significant, followed by 4 zeros.
1All 16 bits of the filter output data are significant

Bit 3 – FMODE Filter Mode

Note:
  1. This bit is Enabled Protected: (Writes are ignored when CTRLA.ENABLE = 1) returns a bus error.
ValueDescription
0Filtering in Oversampling Mode (power-up default)
1Filtering in Averaging Mode

Bits 2:0 – OVRSAM[2:0] Oversampling Ratio

Note:
  1. This bit is Enabled Protected: (Writes are ignored when CTRLA.ENABLE = 1) returns a bus error.

Determines the number of samples generated in the burst mode used for computing one single filter output value.

The OVRSAM encoding depends on the FMODE setting as follows:

If FMODE = 1 (Oversampling Mode) then OVRSAM is encoded as follows:

ValueDescripton
0004 samples, shift sum 1-bit to right, output data is 13-bits
00116 samples, shift sum 2-bits to right, output data is 14-bits
01064 samples, shift sum 3-bits to right, output data is 15-bits
011256 samples, shift sum 4-bits to right, output data is 16-bits
1002 samples, shift sum 0-bits to right, output data is in 12.1 format
1018 samples, shift sum 1-bit to right, output data is in 13.1 format
11032 samples, shift sum 2-bits to right, output data is in 14.1 format
111128 samples, shift sum 3-bits to right, output data is in 15.1 format

If FMODE=0 (Averaging Mode), then OVRSAM is encoded as follows:

ValueDescripton
0002 samples to be averaged
0014 samples to be averaged
0108 samples to be averaged
01116 samples to be averaged
10032 samples to be averaged
10164 samples to be averaged
110128 samples to be averaged
111256 samples to be averaged
ValueNameDescription
04_SAMPLES(If FMODE is 0) 4 samples (shift sum 1 bit to right, output data is 13-bits) / (If FMODE is 1) 2 samples to be averaged
116_SAMPLES(If FMODE is 0) 16 samples (shift sum 2 bits to right, output data is 14-bits) / (If FMODE is 1) 4 samples to be averaged
264_SAMPLES(If FMODE is 0) 64 samples (shift sum 3 bits to right, output data is 15-bits) / (If FMODE is 1) 8 samples to be averaged
3256_SAMPLES(If FMODE is 0) 256 samples (shift sum 4 bits to right, output data is 16-bits) / (If FMODE is 1) 16 samples to be averaged
42_SAMPLES(If FMODE is 0) 2 samples (shift sum 0 bits to right, output data is 12.1 format) / (If FMODE is 1) 32 samples to be averaged
58_SAMPLES(If FMODE is 0) 8 samples (shift sum 1 bit to right, output data is 13.1 format) / (If FMODE is 1) 64 samples to be averaged
632_SAMPLES(If FMODE is 0) 32 samples (shift sum 2 bits to right, output data is 14.1 format) / (If FMODE is 1) 128 samples to be averaged
7128_SAMPLES(If FMODE is 0) 128 samples (shift sum 3 bits to right, output data is 15.1 format) / (If FMODE is 1) 256 samples to be averaged