English
Language : 

C8051F980-C-GM Datasheet, PDF (105/325 Pages) Silicon Laboratories – Ultra Low Power, 8-2 kB Flash, Capacitive Sensing MCU
C8051F99x-C8051F98x
8.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 8.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 con-
serviced after 1 version completes if value in
conversion com- CS0DH:CS0DL is greater than
pletes
CS0THH:CS0THL
CS0MX unchanged.
N Y CS0INT Interrupt Interrupt serviced after M con-
serviced after M versions 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 con- If greater-than comparator detects conver-
serviced after 1 version completes if value in
sion value is greater than
conversion com- CS0DH:CS0DL is greater than
CS0THH:CS0THL, CS0MX is left
pletes
CS0THH:CS0THL;
unchanged; otherwise, CS0MX updates to
Auto-Scan stopped
the next channel (CS0MX + 1) and wraps
back to CS0SS after passing CS0SE.
Y Y CS0INT Interrupt Interrupt serviced after M con- If greater-than comparator detects conver-
serviced after M versions complete if value in
sion value is greater than
conversions com- CS0DH:CS0DL (post accumu-
CS0THH:CS0THL, CS0MX is left
plete
late and divide) is greater than unchanged; otherwise, CS0MX updates to
CS0THH:CS0THL; Auto-Scan the next channel (CS0MX + 1) and wraps
stopped
back to CS0SS after passing CS0SE.
Note: M = Accumulator setting (1x, 4x, 8x, 16x, 32x, 64x).
Rev. 1.2
105