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
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.