When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Code 21 sets if the throttle position sensor voltage exceeds 2.5 volts if:
engine running, air flow less than 15 Gm/sec, 3 seconds gone by, or, TPS output over 4.5 volts with ignition "on". Code 22 sets if the TPS voltage is less than 0.2 volts. You can read the TPS voltage with a scan tool, or with a voltmeter , ign on, engine not running. With the throttle closed, the TPS voltage should be less than 0.62 volts or the TPS needs adjustment. WOT should produce close to 5.0 volts. As you advance the throttle, the TPS voltage should also advance smoothly to maximum. If the TPS check ok, then you may have an intermittent with the three wires that go to the ECM from the TPS. Good Luck.