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.

Driving 7 seg using TMR1 interupt of 16f877A

Status
Not open for further replies.

prasad70

Member level 3
Member level 3
Joined
Mar 24, 2011
Messages
67
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,690
Can some one help me on following problem.
TMR1 was configured to get interupt at every 2ms . Program runs for few cycles and interupt flag is not cleared after that even though BCF PIR1, TMR1IF command is executed.
 

I did simulation on MPLAB and display and i could see that interupt flag is not cleared even though program jum to ISR. I tested the circuit and same could be observed. Just after few seconds only one digit out of 3 was working. Can some one explain the reason that can cause to prevent clearing interupt flags bu using BCF f, flag_bit
 
have u tried to disable interrupts you involved? the first statement in ISR Routine Must disable the specified interrupts
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top