Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Pic46k22 hangs on interrupt

Status
Not open for further replies.

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...........
 

Post your code. Maybe wdt is resetting.

Have disabled WDT in conffiguration settings... wdt is not playing any role..if i enable wdt it will reset the whole screen again..i cant reset the whole screen...want the pic not to hang at all while running
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top