An enzyme of the lyase class that catalyzes the formation of cyclic amp and pyrophosphate from ATP. EC 4.6.1.1.