17.4.11 Filter (Secondary Accumulator)

The secondary accumulator is implemented on the last two channels of each ADC as shown in Table 17-6.

Table 17-6. Channels with Implemented Secondary Accumulators
ADC NumberChannel NumberSecondary Register
16AD1CH6ACC
7AD1CH7ACC
26AD2CH6ACC
7AD2CH7ACC
36AD3CH6ACC
7AD3CH7ACC
46AD4CH6ACC
7AD4CH7ACC
514AD5CH14ACC
15AD5CH15ACC

The secondary accumulator ADnCHxACC sums the output of the primary accumulator ADnCHxDATA. The secondary accumulator is enabled when the ACCRO bit (ADnCHxCON2[31]) is set. If the ACCRO bit = ‘1’, the ADnCHxDATA and ADnCHxACC accumulators are not cleared; instead, they will roll over as the data are accumulated over many multisample operations. The accumulators function as a Second Order Cascaded-Integrator-Comb filter (CIC). Some of the CIC operations (differentiation functions) need to be performed by the application software as shown in Figure 17-3.

Figure 17-3. Second Order CIC Filter