A medical device includes a sensor for sensing for an MRI gradient
magnetic field and a microprocessor for responding to the detected
gradient magnetic field by switching from a first electrical signal
processing mode to a second electrical signal processing mode, such that
electrical signals induced by the gradient magnetic field and an
associated RF burst are not counted as cardiac events.