English
Language : 

C8051F970-A-GM Datasheet, PDF (136/454 Pages) Silicon Laboratories – Low Power Capacitive Sensing MCU with up to 32 kB of Flash
C8051F97x
18.12. CS0 Pin Monitor
The CS0 module provides accurate conversions in all operating modes of the CPU, peripherals and I/O ports. Pin
monitoring circuits are provided to eliminate possible interference from high-current output pin switching. The CS0
Pin Monitor register (CS0PM) controls the operation of these pin monitors.
Conversions in the CS0 module are immune to any change on digital inputs and immune to most output switching.
Even high-speed serial data transmission will not affect CS0 operation as long as the output load is limited. Output
changes that switch large loads such as LEDs and heavily-loaded communications lines can affect conversion
accuracy. For this reason, the CS0 module includes pin monitoring circuits that will, if enabled, automatically adjust
conversion timing if necessary to eliminate any effect from high-current output pin switching.
The pin monitor enable bit should be set for any output signal that is expected to drive a large load.
Example: The SMBus in a system is heavily loaded with multiple slaves and a long PCB route. Set the SMBus pin
monitor enable, SMBPM = 1.
Example: Timer2 controls an LED on Port 1, pin 3 to provide variable dimming. Set the Port SFR write monitor
enable, PIOPM = 1.
Example: The SPI bus is used to communicate to a nearby host. The pin monitor is not needed because the output
is not heavily loaded, SPIPM remains = 0, the default reset state.
Pin monitors should not be enabled unless they are required. The pin monitor works by repeating any portion of a
conversion that may have been corrupted by a change on an output pin. Setting pin monitor enables bits will slow
CS0 conversions.
The frequency of CS0 retry operations can be limited by setting the CSPMMD bits. In the default (reset) state, all
converter retry requests will be performed. This is the recommended setting for all applications. The number of
retries per conversion can be limited to either two or four retries by changing CSPMMD. Limiting the number of
retries per conversion ensures that even in circumstances where extremely frequent high-power output switching
occurs, conversions will be completed, though there may be some loss of accuracy due to switching noise.
Activity of the pin monitor circuit can be detected by reading the Pin Monitor Event bit, CS0PME, in register
CS0CN. This bit will be set if any CS0 converter retries have occurred. It remains set until cleared by software or a
device reset.
Notes on pin monitor operation:
When the system clock is active in the system, the pin monitor feature requires a system clock frequency of
5.5 MHz or higher to function correctly.
When using CS0 as a wake-up source with pin monitoring enabled, the minimum active mode system
clock frequency that can be used is 1.8 MHz. A CS0 wake-up event in a system with an active mode clock
frequency below 1.8 MHz will cause CS0 to start another conversion instead of remaining stopped when
the system wakes from its low power state.
136
Rev 1.0