English
Language : 

C8051F970-A-GM Datasheet, PDF (135/454 Pages) Silicon Laboratories – Low Power Capacitive Sensing MCU with up to 32 kB of Flash
C8051F97x
18.11. CS0 Conversion Accumulator
CS0 can be configured to accumulate multiple conversions on an input channel. The number of samples to be
accumulated is configured using the CS0ACU2:0 bits (CS0CF2:0). The accumulator can accumulate 1, 4, 8, 16,
32, or 64 samples. After the defined number of samples have been accumulated, the result is divided by either 1, 4,
8, 16, 32, or 64 (depending on the CS0ACU[2:0] setting) and copied to the CS0DH:CS0DL SFRs.
Table 18.1. Operation with Auto-Scan and Accumulate
CS0 Conversion
Complete Interrupt
Behavior
CS0 Greater Than Interrupt
Behavior
CS0MX Behavior
N N CS0INT Interrupt Interrupt serviced after 1 conver-
serviced after 1 con- sion completes if value in
version completes CS0DH:CS0DL is greater than
CS0THH:CS0THL
CS0MX unchanged.
N Y CS0INT Interrupt Interrupt serviced after M conver-
serviced after M
sions complete if value in
conversions com- CS0DH:CS0DL (post accumu-
plete
late and divide) is greater than
CS0THH:CS0THL
CS0MX unchanged.
Y N CS0INT Interrupt Interrupt serviced after conver- If greater-than comparator detects conversion
serviced after 1 con- sion completes if value in
value is greater than CS0THH:CS0THL,
version completes CS0DH:CS0DL is greater than CS0MX is left unchanged; otherwise, CS0MX
CS0THH:CS0THL;
updates to the next channel (CS0MX + 1) and
Auto-Scan stopped
wraps back to CS0SS after passing CS0SE.
Y Y CS0INT Interrupt Interrupt serviced after M conver- If greater-than comparator detects conversion
serviced after M
sions complete if value in
value is greater than CS0THH:CS0THL,
conversions com- CS0DH:CS0DL (post accumu- CS0MX is left unchanged; otherwise, CS0MX
plete
late and divide) is greater than updates to the next channel (CS0MX + 1) and
CS0THH:CS0THL; Auto-Scan wraps back to CS0SS after passing CS0SE.
stopped
Note: M = Accumulator setting (1x, 4x, 8x, 16x, 32x, 64x).
Rev 1.0
135