SCPS268A September 2017 – February 2022 TIC10024-Q1
PRODUCTION DATA
When monitoring the switch input status, a detection filter can be configured by setting the DET_FILTER bits in the CONFIG register to generate Switch Status Change (SSC) interrupt only if the same input status (w.r.t the threshold) is sampled consecutively. This detection filter can be useful to debounce inputs during a switch toggle event. Four different filtering schemes are available:
The default value of switch status is stored internally after the 1st detection cycle, even if detection filter (by configure the DET_FILTER in the CONFIG register) is used. An example is illustrated below with the assumption that DET_FILTER in register CONFIG is set to 11 (SSC interrupt is generated if the input crosses the threshold and the status is stable w.r.t. the threshold for at least 4 consecutive detection cycles). Assume switch status change is detected in the 3rd detection cycle and stays the same for the next 3 cycles.
DETECTION CYCLE | 1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|---|
Event |
| — | Switch status change detected | — | — |
|
The detection filter counter is reset to 0 when the TRIGGER bit in the CONFIG register is de-asserted to logic 0. Upon device reset, the default setting for the detection filter is set to generating an SSC interrupt at every threshold crossing.