PortB Interrupt on change?
Andrew Warren email (remove spam text)
Xaq <MITVMA.MIT.EDU> wrote: PICLIST
Don't know how you missed this in your reading...
PIC16C7X Data Sheet, section 5.2 ("PORTB and TRISB Registers"):
"Four of PORTB's pins, RB<7:4>, 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 input pins (of RB7-RB4) are compared with the old value
latched on the last read of PORTB. The "mismatch" outputs of
RB7-RB4 are OR'ed together to generate the RBIF interrupt (flag
latched in INTCON<0>."
Andrew Warren - ix.netcom.comfastfwd
Fast Forward Engineering, Vista, California
See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the