English
Language : 

C8051F70X_0910 Datasheet, PDF (75/290 Pages) Silicon Laboratories – Mixed Signal ISP Flash MCU Family
C8051F70x/71x
greater-than comparator event to occur. It is not necessary to have CS0 comparator interrupts enabled in
order to wake a device from suspend with a greater-than event.
For a summary of behavior with different CS0 comparator, auto-scan, and auto accumulator settings,
please see Table 13.1.
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 CS0ACU1:0 bits (CS0CF1:0). The accumulator can accumulate 1
sample, 4 samples, 8 samples, or 16 samples. After the defined number of samples have been accumu-
lated, the result is converted to a 16-bit value by dividing the 20-bit accumulator by either 1, 4, 8, or 16
(depending on the CS0ACU[1: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)
Rev. 0.3
75