Low-Power Parameters
Microchip capacitive touch technology using the Hardware Capacitive Voltage Divider (HCVD) provides features that enable the design of low‑power touch sensors capable of waking the device from Sleep mode without CPU intervention. HCVD is available in 8-bit PIC® devices. This page provides details about the macros, typedefs, and Application Programming Interfaces (APIs) used to implement low‑power operation.
Low-Power Macros
| Macro | Value | Range |
|---|---|---|
| MTOUCH_LOWPOWER_SENSORS | Number of sensors | |
| MTOUCH_LOWPOWER_SENSOR_LIST | List of sensors used | |
| MTOUCH_LOWPOWER_DETECT_THRESHOLD | Threshold to detect touch during low-power operation | |
| MTOUCH_LOWPOWER_SCAN_INTERVAL | The interval between consecutive scans performed exclusively by the low-power sensor, during which no other sensors are scanned | |
| MTOUCH_LOWPOWER_INACTIVE_TIMEOUT | The duration during which the sensor remains inactive before transitioning into low-power mode | |
| MTOUCH_LOWPOWER_BASELINEUPDATE_TIME | The duration after which the baseline is updated if the specified interval has been exceeded. | |
MTOUCH_LOWPOWER_SCAN_RELOAD | (65535-((MTOUCH_LOWPOWER_SCAN_INTERVAL*1000.0)/MTOUCH_SCAN_TIMER_TICK)) | 0-65535 |
MTOUCH_LOWPOWER_INACTIVE_TIMEOUT_CYCLE | (MTOUCH_LOWPOWER_INACTIVE_TIMEOUT/MTOUCH_SCAN_INTERVAL) | 0-65535 |
MTOUCH_LOWPOWER_BASELINEUPDATE_CYCLE | (MTOUCH_LOWPOWER_BASELINEUPDATE_TIME/MTOUCH_LOWPOWER_SCAN_INTERVAL) | 0-65535 |