Low-Power Parameters

Last modified by Microchip on 2026/03/23 15:11

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

MacroValueRange
MTOUCH_LOWPOWER_SENSORSNumber of sensors 
MTOUCH_LOWPOWER_SENSOR_LISTList of sensors used 
MTOUCH_LOWPOWER_DETECT_THRESHOLDThreshold 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_TIMEOUTThe duration during which the sensor remains inactive before transitioning into low-power mode 
MTOUCH_LOWPOWER_BASELINEUPDATE_TIMEThe 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