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.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top