>From the 16f84 sheet i get: ---- Four of PORTBâs pins, RB7:RB4, have an interrupt on change feature. Only pins configured as inputs can cause this interrupt to occur (i.e., any RB7:RB4 pin configured as an output is excluded from the interrupt on change comparison). The pins value in input mode are compared with the old value latched on the last read of PORTB. The ãmismatchä outputs of the pins are ORâed together to generate the RB port change interrupt. ---- (p23) Stefan Sayer Mark Peterson wrote: > > If RBIE, the RB port change interrupt bit in the INTCON register, is set to > 1, will a change on any RB bit result in an interrupt? I'm wondering if an > interrupt is generated only if a change is detected on an RB bit that has > been designated as in input, or, will an interrupt also be generated if a > an RB bit that has been designated as an output changes state as a result > of the PIC program itself writing something to it. > > Thanks.