Mode switching algorithms have been developed to avoid tracking of atrial fibrillation (AF) or flutter (AFL) during DDD(R) pacing. Upon recognition of AF or AFL, the mode is switched to a nontracking, sensor driven mode. The Vitatron Diamond model 800 pacemaker does this on a beat-to-beat basis. Atrial events occurring within a "physiological range" (+/- 15 beats/min) calculated from a running average of the atrial rate are tracked. When atrial events are not tracked the escape interval is either determined by the sensor(s) or by a fallback algorithm thereby preventing large increases in V-V interval during mode switching. Loss of atrioventricular (AV) synchrony by atrial premature beats and after an episode of AF or AFL is prevented by atrial synchronization pulses (ASP), which are delivered after a safe interval (timed out from the sensed premature atrial event) has expired and before delivery of the next ventricular stimulus. We implanted 26 such devices in 18 men and 8 women with symptomatic second- or third-degree AV block and paroxysmal AF or AFL. Their ages ranged from 18-84 years (mean 60), and the follow-up ranged from 2-13 months (mean 8). During pacemaker check-up, exercise testing or 24-hour Holter monitoring one or more episodes of mode switching was documented in 8 patients. In these 8 patients a smooth transition (ventricular rate) from sinus rhythm to AF or AFL was documented on one or more occasions, without inappropriate increase in ventricular rate in the DDDR mode. None of the patients complained of palpitations.(ABSTRACT TRUNCATED AT 250 WORDS)