I'm having problems with a digital potentiometer. I'm not sure what it is, but I can't get the potentiometer to decrease and increase the resistance right. The resistance keeps jumping around, sometimes randomly. Sometimes it will start decreasing and then it will increase and then decrease and back and forth again and again. I really don’t know what’s wrong with it. Anyone have any ideas? Could it be that I need a debouncing circuit? But I don’t think it matters since I’m using a Function Generator or a microprocessor to create the pulses. Is there something else that I need? Thanks in advance for any help.