Conditions for Setting the DTC
WARNING: This page is about a different car, the 2007 Cadillac DTS. However, it is still accessible from the selected car via links, so may be relevant.
The Park/Neutral switch circuit voltage is low, 0 volts, for .01 seconds while the TCM is reporting the gear selector is in Reverse or any forward range.