Device for classifying tachyarrhythmia that obtains pre-defined values, monitors atrial intervals and compares lengths of each interval with pre-defined value IL, stores length of atrial interval if length is shorter than IL, in case X of most recent Y number of atrial intervals have length shorter than IL, evaluates most recent <=N atrial intervals with length < IL and performs test for stored lengths via criteria, classifies atrial tachyarrhythmia as stable if all tested lengths pass >=1 criteria, and controls a cardiac device depending on the classification. Atrial intervals are first evaluated by using the "X-out-of-Y" criterion and subsequently checked for stability after an atrial tachyarrhythmia is detected using "X-out-of Y" criterion. For stability check, only intervals found shorter than the interval limit are used. Check is based on interval-to-interval comparison rather than as generally practiced, comparisons of individual intervals with the minimum or average of all intervals.