I'm no expert, but I thought ATP was used during the Calvin cycle (which is dependent on the process of photosynthesis), where carbon dioxide and water are converted into organic compounds.

Hm?