garg29
Advanced Member level 1
- Joined
- Nov 17, 2004
- Messages
- 443
- Helped
- 25
- Reputation
- 50
- Reaction score
- 10
- Trophy points
- 1,298
- Activity points
- 3,593
Dear all,
I have developed a code for measuring time diffrence between two pulses from C.T.
I have used int0 and int1 interuupts for zero crossing detection.When interrupt on int0 occures the timer starts and when interrupt on int1 occurs ,the timer stops and then the value of time diffrence is calculated.
Problem is that my controller(PIC 46k22) hangs and GLCD(128 x 64) screen gets distorted very frequently.
when i dont use interrupts in my code the controller works well.
Why is that the interrupt is causing the controller to hang ???????????
Please help...........
I have developed a code for measuring time diffrence between two pulses from C.T.
I have used int0 and int1 interuupts for zero crossing detection.When interrupt on int0 occures the timer starts and when interrupt on int1 occurs ,the timer stops and then the value of time diffrence is calculated.
Problem is that my controller(PIC 46k22) hangs and GLCD(128 x 64) screen gets distorted very frequently.
when i dont use interrupts in my code the controller works well.
Why is that the interrupt is causing the controller to hang ???????????
Please help...........