Adjusting the Throttle Position Switch (TPS) may take care of the problem, if the problem persists the TPS may need to be replaced.
There is a Nissan bulletin for the following models:
1995-1996 Nissan Maxima
1995-1997 Nissan Sentra/200SX
1996-1997 Nissan Truck
1995-1997 Nissan Altima
1996-1997 Nissan Pathfinder
1995-1996 Nissan 240SX
1996-1997 Nissan Quest
Nissan Factory Service Bulletin OBDII Code P0510
Check the 'Possible Causes' listed above. Visually inspect the related wiring harness and connectors. Check for damaged components and look for broken, bent, pushed out, or corroded connector pins.
The cost to diagnose the P0510 Nissan code is 1.0 hour of labor. The diagnosis time and labor rates at auto repair shops vary depending on the location, make and model of the vehicle, and even the engine type. Most auto repair shops charge between $75 and $150 per hour.
Malfunction is detected when battery voltage from the closed throttle position switch is sent to ECM with the throttle valve opened.
Need more information on how to fix the P0510 Nissan code? Get Access to Factory Service Manuals
Get the P0510 Nissan code diagnosed by a professional: Find a repair shop in your area