I was going up a steep hill when i had to accelerate to pass a semi that was going to turn into my lane [trucker didn't bother to signal] when I pushed down on pedal the trans didn't seem like it had a clue, kept trying to up shift then down shift. The engine lost power for a second and then the check engine lite came on. I exited road and checked all fluids and examined motor as much as I could see. There didn't appear to be any signs of trouble, so I decided to return home rather than continue to where I was going. The lite went out after 30 minutes and stayed out for the remainder of my drive 230 miles. I also thought that I heard a backfire when this happened but am not sure as too much was happening and the noise from stereo and semi was loud. I don't know if any damage was done [can't detect any] but if anyone has had similar problem I would love to hear about it.