Post Go back to editing

MAX30003 lead detection

Category: Hardware
Product Number: MAX30003
Good afternoon, 
 
We are developing an application based on the max30003 and we've been looking to be able to know when the leads are ON (with the ultra low power lead on detection) to start the ecg sampling, and also when the leads are off (with the dc lead off detection) to stop the ecg.
We're trying to only have the ecg sampling only when the leads are placed on the body. So, sensor initializes with ulp interrupt enabled, once the ulp on is detected we start the ecg and enable dc lead off interrupt, and once that detected we stop the ecg and enable back the ulp on.
After many tries, it seems that the above is only possible when the openN and openP on the MUX register are set to 1, with means disconnecting the ecg from the AFE channel.
We don't even use the calibration here.
 
Question:
Is the above scenario possible? I mean detecting when the leads are ON and OFF! if so, could you please provide the pseudo code for that with the registers settings.
 
Thank you,
Abdelali