Patent attributes
An intracardiac ventricular pacemaker having a motion sensor is configured to produce a motion signal including an atrial systolic event and a ventricular diastolic event indicating a passive ventricular filling phase, set a detection threshold to a first amplitude during an expected time interval of the ventricular diastolic event and to a second amplitude lower than the first amplitude after an expected time interval of the ventricular diastolic event. The pacemaker is configured to detect the atrial systolic event in response to the motion signal crossing the detection threshold and set an atrioventricular pacing interval in response to detecting the atrial systolic event.