Medical apparatus includes a pacing generator, which has first active and
indifferent outputs and is configured to generate electrical pacing
pulses between the first active and indifferent outputs for pacing a
heart of a subject. A radio frequency (RF) generator has second active
and indifferent outputs and is configured to generate RF electrical
energy of a predetermined frequency between the second active and
indifferent outputs for application to the heart of the subject
simultaneously with the pacing pulses. A filter includes a first branch
connected between the first and second active outputs and a second branch
connected between the first and second indifferent outputs, each of the
first and second branches including one or more notch filters having a
high impedance in a vicinity of the frequency of the RF electrical
energy.