INT1 is on RB1
INT2 is on RB2
And both of those INT's only trigger on one edge, not both.
What you want is RBC_INT.
Which will give interrupts on any change of RB4-7.
INT1 is on RB1
INT2 is on RB2
And both of those INT's only trigger on one edge, not both.
What you want is RBC_INT.
Which will give interrupts on any change of RB4-7.
DT
Thanks Darrel, that definitely helps clear things in my head. I kept merging the two types of interrupts in my mind for some reason, which through me off when trying to understand the data sheet.
Unfortunately, it looks like the interrupt will not allow me to do what I was hoping for after all. I have an 8 pin micro that monitors signal from two sources and whenever there is a change on either pin it passes the signal along a third pin to a 40 pin chip. I was hoping to get rid of the 8 pin chip and use interrupts to take the two signals with IOC and pass them out a third pin which was tied to my original serial pin and use serin2 to get the data as before. It appeared to work with 1200 and 2400 baud, but when I went to anything faster the data became unusable. The interrupt must just be too slow to do everything needed before missing bits.
Thanks for the help though,
David
Since there's nothing in the ISR that uses PBP's SYSTEM variables, change the TYPE of interrupt to ASM for faster execution.
DT
Tried the asm version, also increased clock speed form 40 to 64 MHz. I was able to get some data at 4800, but not reliable. Thanks for helping though
David
Bookmarks