This is a malfunction of the idle control system. Keep in mind that if there is a short in this system that it is VERY likely that the computer will also be damaged. It is not uncommon to have to replace an IAC along with a computer...Anyways, here are instructions for finding out the cause of this problem on your 3.0 V6 Accord.
1. Start the engine. Hold the engine at 3,000 rpm with no load (in Park or neutral) until the radiator fan comes on, then let it idle.
2. Check the engine speed at idle with no-load conditions: headlights, blower fan, rear defogger, radiator fan, and air conditioner are not operating. Is it 700 ±50 rpm ?
YES-Intermittent failure, system is OK at this time.
NO-If the idle speed is less than 650 rpm , go to step 3; if it's 750 rpm or higher, go to step 4.
3. Disconnect the 3P connector from the IAC valve. Dose the engine speed increase or fluctuate? YES-Adjust the (base) idle speed. If it's impossible, clean the ports in the throttle body. NO-Replace the IAC valve.
4. Turn the ignition switch OFF .
5. Remove the intake air duct from the throttle bod.
6. Start the engine and let it idle
7. Put your finger on the lower port (A) in the throttle body. Does the engine speed drop?
YES-Adjust the idle speed. If it's impossible, replace the IAC valve.
NO-Check for vacuum leaks, make sure the throttle valve is completely closed, and repair as necessary.