A method and system for regulating the operation of a cardiac pacemaker or defibrillator are disclosed. A processor receives signals of both an implanted hemodynamic sensor and intracardiac electrograms and digitizes them. The digitized signal of the hemodynamic sensor is used to prevent inappropriate cardiac stimulation and erroneous cardiac detection. The hemodynamic signal is also used to define arrhythmias.