Without ICD connected Program Doesn't Function Correctly
Posted: Thu Apr 17, 2008 11:31 am
I am having troubles with getting my program to function correctly. The program works perfectly fine when the ICD programmer is connected in circuit (the debugger is not being used so that's not the problem), it doesn't even have to be on in fact. As long as the programmer is connected to the mod cable the program functions correctly regardless of whether the programmer is connected to the computer or not. When I remove the connection for in circuit programming with the programmer the PIC still powers up and works fine for a little bit but there is some sort of glitch that makes it restart.
More specifically this is what happens with the program:
the program starts off by calling a function to get input from the user via a potentiometer dial which translates to a numerical value which is displayed on a 2 digit 7-segment LED. The user presses a pushbutton to read in the displayed value into a specified variable which will be used later in the program. The program does this 4 more times with different variables. When the function returns (it is a void function because global variables were used) it should move on and turn on a pump and switch some solenoid valves on. When the ICD is connected, the function returns these variables and the program runs fine. When the ICD is not connected for whatever reason the program resets itself and starts over again. I imagine it has something to do with the capacitance or inductance of the programmer but I don't know much about electronics, just enough to get by with creating the circuit. If anyone has an idea of what I can do to allow my PIC to run correctly by itself please let me know. Thanks
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum