Question asked by mohamed.soubhi on Jul 7, 2015
Latest reply on Jul 27, 2017 by fengling

Hi all,

By using ac leadoff according to these settings

/******************************************************************************/

/* Leads off Control Register                                                 */

/******************************************************************************/

#define CFG_LOFFCTL_RAPH          (0ul << 21)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_LAPH          (0ul << 23)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_CEPH          (0ul << 18)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_LLPH          (0ul << 22)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_V1PH          (0ul << 20)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_V2PH          (0ul << 19)  /*   AC Leads Off Phase: 0 = in phase, 1 = 180° out of phase */

#define CFG_LOFFCTL_RAACLOEN      (1ul << 15)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_LAACLOEN      (1ul << 17)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_CEACLOEN      (1ul << 12)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_LLACLOEN      (1ul << 16)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_V1ACLOEN      (1ul << 14)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_V2ACLOEN      (0ul << 13)  /*   Individual electrode AC Leads off enable. AC Leads off enables are

the OR of ACSEL and the individual AC Leads off Channel enables.

0 = AC Leads off disabled, 1 = AC Leads off enabled */

#define CFG_LOFFCTL_ACCURREN      (3ul << 7 )  /*   Set Current level for AC leads off (only active for ACSEL = 1).

00 = 12.5nA rms, 01  =  25nA rms,

10  =  50nA rms, 11  =  100nA rms */

#define CFG_LOFFCTL_DCCURRENT     ((0ul )<< 2)  /*   Set Current level for DC leads off (only active for ACSEL = 0)

000 = 0nA, 001  =  10nA, 010  =  20nA, 011  =  30nA,

100  =  40nA, 101  =  50nA, 110  =  60nA, 111  =  70nA */

#define CFG_LOFFCTL_ACSEL         (1ul << 1 )  /*   DC or AC (out of band) Leads Off Detection. If LOFFEN = 0, this bit

is don’t care. If LOFFEN = 1, 0 = DC Leads Off Detection enabled.

(Individual AC leads off may be enabled through bits 12-17),

1  = DC Leads off Detection disabled. AC Leads Off Detection enabled

(all electrodes except CE electrode). */

#define CFG_LOFFCTL_LOFFEN        (1ul << 0 )  /*   Enable Leads Off Detection:

/************************************************************************************************************************************************************************/

the detection behaves strangely

when LL removed the adas flag as (LL & RA & C1) removed

when RA removed the adas flag as (RA & LA & C1) removed

when LA removed the adas flag as (LA & LL & C1) removed

when C1 removed the adas flag as ( C1) removed

when RL removed the adas flag as NO DETECTION

as datasheet RL is not detected in the AC leadoff mode