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