why would my ac go from hot to cold hot to cold on 2005 Kia Spectra

had a diagonostic code PO700 don't know if that has to do with the ac or not

Asked by for the 2005 Kia Spectra
Mine has started getting hot if I turn the temp up a bit because it is too cold. It won't get cold again after I try to lower the temp. I have to turn it off and wait, after awhile turn it back on and it gets cold again. 2005 Kia Spectra 150,000 miles on it.