An active implantable medical device including circuits for calculating an atrio ventricular delay (AVD) period. The device is able to detect the atrial and ventricular events calculate an AVD and to start the AVD on detection of a spontaneous or paced atrial event. The device is able to deliver a low energy ventricular stimulation pulse at the expiration of the AVD in the absence of a detected spontaneous ventricular event. To calculate the AVD, the device uses an acceleration sensor to deliver an endocardiac acceleration (EA) signal representative of the movements produced by the contractions of the atrial cavity and analyzes the EA signal to identify and isolate in the EA signal a component corresponding to the fourth peak of endocardiac acceleration (PEA4) associated to the atrial activity, and to calculate the AVD based on a parameter of this component.