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.

[SOLVED] PIC18F4520 INTERRUPT not working

Status
Not open for further replies.

doucheful80

Junior Member level 1
Joined
Dec 14, 2011
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,414
Hi, im using PIC18F4520 in my project, and im using interrupt in timer0 (0.52s) to ensure that the cycle is repeated in an exact number of cycle everytime in each complete loop.

It seems to branch out to address 8h in MPLAB SIM, but it does NOT branch out when i burn the prog in PIC. (school image burner). I even try a simple program and it confirms that it does not branch out. I check the configuration bits to make sure its same in the MPLAB SIM and burner LAB-tool (Burner program)..P/S interrupt work in PIC16f873a , another program i need to make the whole system work..

Does anyone know what is the problem here, i think anyone who successfully program an interrupt on PIC18F4520 can help.. THANKS a bunch!!
 

surely double - triple check the configuration fuses : there must be one that disturb the interrupt flag...
 
hi, what u mean by configuration fuses..do u mean XINST, LVP, SBOREN, WDT enable all these..yes i checked them..double checked it with the datasheet as well..only thing i can do is enable and disable one by one..but i dont think that would help or is the problem..
 

Are you sure that your PIC is actually doing anything? It may just be sitting there doing nothing for some reason other than the interrupt not working but you wouldn't know because there are no external signs other than the PIC not lighting up the LED that you have told it to in the interurpt service routine.

Pete
 
@kripton2035 - currently trying another method already on my pic..but how come if the same configuration bits setting is same in the MPLABSIM, it have different result in reality?

@pete - its doing something because out of the interrupt is 2 light alternating on and off..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top