My RS1800 used to do exactly this when I had a superchip plugged in. I gave up on it in the end and pulled it out. Might be worth checking you've not got a chip, possibly with a dodgy connection.
The other thing could be a clogged idle speed control valve.