Driving 7 seg using TMR1 interupt of 16f877A

Status
Not open for further replies.

prasad70

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…