intterupt to specific part of program possible?
Posted: Mon Feb 22, 2010 2:33 pm
Hello,
I have write a program which simulates the flashlight from a car.
When i press the switch to stop the flashlight the lights doesn't stop direct.
I want the lights stopped direct when a switch is turned off.
Is it possible with an intterupt (B4 - B7) to jump to an specific part (or line) of the program?
I have tried to reset the program, with an interrupt, with the following C-code but then it looks like the program hangs in the interrupt:
//perform a reset
pclath = 0;
pcl = 0;
Can someone please help me?
I have write a program which simulates the flashlight from a car.
When i press the switch to stop the flashlight the lights doesn't stop direct.
I want the lights stopped direct when a switch is turned off.
Is it possible with an intterupt (B4 - B7) to jump to an specific part (or line) of the program?
I have tried to reset the program, with an interrupt, with the following C-code but then it looks like the program hangs in the interrupt:
//perform a reset
pclath = 0;
pcl = 0;
Can someone please help me?