nRF5 SDK v13.0.0
Macros
Capacitive sensor low-level module configuration

Macros

#define NRF_DRV_CSENSE_ENABLED
 Enable the capacitive touch sensor driver. More...
 
#define USE_COMP
 Use the comparator to implement the capacitive sensor driver. More...
 
#define TIMER0_FOR_CSENSE
 First TIMER instance used by the driver (not used on nRF51). More...
 
#define TIMER1_FOR_CSENSE
 Second TIMER instance used by the driver (not used on nRF51). More...
 
#define MEASUREMENT_PERIOD
 Single measurement period. More...
 

Detailed Description

Macro Definition Documentation

#define MEASUREMENT_PERIOD

Single measurement period.

Time of a single measurement can be calculated as T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ). I_SOURCE, VUP, and VDOWN are values used to initialize COMP and C is the capacitance of the used pad.

Note
This is an NRF_CONFIG macro.
#define NRF_DRV_CSENSE_ENABLED

Enable the capacitive touch sensor driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define TIMER0_FOR_CSENSE

First TIMER instance used by the driver (not used on nRF51).

Note
This is an NRF_CONFIG macro.
#define TIMER1_FOR_CSENSE

Second TIMER instance used by the driver (not used on nRF51).

Note
This is an NRF_CONFIG macro.
#define USE_COMP

Use the comparator to implement the capacitive sensor driver.

Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated