This invention has as an objective the universal matching of individual patient-pacemaker-implant electrode interface conditions to follow dynamic changes occurring in use, from pacemaker to pacemaker and from patient to patient to control the pacing pulse energy in operation most efficiently to prolong battery life. Information from the implanted stimulation electrode is analyzed to discriminate the energy level of pulses effective and ineffective to stimulate a heartbeat for at least two different stimulation pulse characteristics. This analyzed information is automatically processed in logic circuits to conform with the requirements of particular pacemaker adjustments to develop an optimized energy pacing pulse with adequate safety margin. Programming and logic equipment can be in the pacemaker, but additional energy saving with those calculations takes place when it is external to the pacemaker and bidirectional communication of information takes place with the pacemaker. Periodic automatic programming can take place in implanted pacemaker installations for continuous long term monitoring and control to obtain the optimum battery life and adequate safety standards.