English
Language : 

C8051F80X_14 Datasheet, PDF (74/251 Pages) Silicon Laboratories – Mixed Signal ISP Flash MCU Family
C8051F80x-83x
13.5. 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 con-
verted to a 16-bit value by dividing the 22-bit accumulator by either 1, 4, 8, 16, 32, or 64 (depending on the
CS0ACU[2:0] setting) and copied to the CS0DH:CS0DL SFRs.
Table 13.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- 16-bit accumulator is greater
plete
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, CMUX0 is left
pletes
CS0THH:CS0THL;
unchanged; otherwise, CMUX0 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- 16-bit accumulator is greater
CS0THH:CS0THL, CS0MX is left
plete
than CS0THH:CS0THL; Auto- unchanged; otherwise, CS0MX updates to
Scan stopped
the next channel (CS0MX + 1) and wraps
back to CS0SS after passing CS0SE
M = Accumulator setting (1x, 4x, 8x, 16x, 32x, 64x)
74
Rev. 1.0