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.

How to write an ISR in Microc

Status
Not open for further replies.

zeshan

Junior Member level 2
Joined
Nov 7, 2009
Messages
21
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
pakistan
Activity points
1,408
Hello every body!

can any one help me n tel how can i write an ISR in MICRO C in C language i m using Pic 16f877A...i dont know how to write or how to cal it.if somebody has any code example plzzzzzz give me
Thanx
 

Check Mikro C manual page 36.
The manual can be found here **broken link removed**
 

    zeshan

    Points: 2
    Helpful Answer Positive Rating
Thanx

please tel me if i want to enable External Interrupt at pin 33 (i think pic 16f877a supports only one) what shoul i writ in INTCON register? n if i want to have two external interrupts what should i do Then? please tel.you have really helped me :)
 

pin 33 is the RB0/INT,yes this is an external interrupt.if you want to enable this, set the bit INTE = 1 of your INTCON register.also RB4-RB7 of your PORTB can also act as an external interrupt. you can use it by setting RBIE of your INTCON register to 1. you can check if an interrupt happened by reading your INTF and RBIF bits in your INTCON register. i hope this helps. :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top