Is it a drive by wire or standard cable actuated throttle. Most times, the IAC will not throw a code. It's a good place to start. As for the pinging, it could be a timing issue in the PCM that may require a reflash, a lean condition from low fuel pressure or a vacuum leak, too much EGR flow leaning out the mixture, etc.