Conditions for Setting the DTC
WARNING: This page is about a different car, the 2004 Pontiac Vibe. However, it is still accessible from the selected car via links, so may be relevant.
The TP sensor input to the PCM is less than 0.1 volts for at least 5 seconds.