PIC16f1936 get reset while running
I'm using pic16f1936 Controller MPLAB c18 IDE version 8.90 and high tech compiler. I'm using this controller for touch key sensing purpose(8 touch input and 8 corresponding Outputs). I was used the source code which was given by microchip.
I have three problems in this controller. One is while running its automatically gets reset.
Second one is sometime i tried to touch one key and corresponding output gets ON but at the same time some other key output also turns ON. then some time some inputs keys are not sensed and they gets works after resetting the controller.
Third one is sometime some touch inputs never gets works(respective outputs never turn ON/OFF). I debugged the controller and corresponding key oscillator count gives 0.
I don't know why its happening. Please help me to solve this issue.
Thanks & Regards,