Check Interrupt Flag for pic16f877A

Status
Not open for further replies.

brucewayne

Newbie level 3
Joined
Jun 5, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
Hello, I need help with assembly language to check if INTIF is set or clear including initialisation of the variables.
If it is set, it needs to be cleared or reset.

Thank you.
 

Something like this should work:

Code:
banksel   INTCON
btfss     INTCON, INTF
goto      NotRaised       ;Flag is not raised, so go to a label called NotRaised
bcf       INTCON, INTF
goto      Raised             ;Flag is raised, so go to a label called Raised. INTF has been cleared

What exactly do you mean by initialization of variables?

Hope this helps.
Tahmid.
 

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…