Hi, I have a pic16f1847a and I am running it on 4*aa batteries using a voltage divider. The pic drives a stepper motor driver L293DD. This works fine.
I also have 3 buttons which use weak internal pull-ups on the pic inputs. These work fine when the pic is powered from a pickit3. When powered from the batteries and voltage divider the weak pull-ups make the input high and when a button is pressed, the input is bought low. The problem is that the button presses are not recognised in the interrupt when battery powered but they are when pickit3 powered.
Any ideas on how to resolve this?
One soluthion would be to use a 3.3v voltage regulator as Im rather sure it is power related but to keep production costs down I would like to stick to the voltage divider if possible.
I also have 3 buttons which use weak internal pull-ups on the pic inputs. These work fine when the pic is powered from a pickit3. When powered from the batteries and voltage divider the weak pull-ups make the input high and when a button is pressed, the input is bought low. The problem is that the button presses are not recognised in the interrupt when battery powered but they are when pickit3 powered.
Any ideas on how to resolve this?
One soluthion would be to use a 3.3v voltage regulator as Im rather sure it is power related but to keep production costs down I would like to stick to the voltage divider if possible.