Hello everybody,
After being annoyed at the PIC I'm using for my robot only having one external interrupt (apart from IOC, which seems awkward and I couldn't get it to work), I cam up with a 'cheat' idea for an extra two external interrupts set both timers to take their clock input from the TXCKI pins, and set both timers to 255 (11111111). On a pulse to the pin, they overflow, generating an interrupt. You'd just have to re-set them to 255 in the ISR.
Does this sound feasible (I haven't tested it yet), and are there any other cheats like this for getting more external interrupts out of an MCU?
Thanks,
Barnaby
After being annoyed at the PIC I'm using for my robot only having one external interrupt (apart from IOC, which seems awkward and I couldn't get it to work), I cam up with a 'cheat' idea for an extra two external interrupts set both timers to take their clock input from the TXCKI pins, and set both timers to 255 (11111111). On a pulse to the pin, they overflow, generating an interrupt. You'd just have to re-set them to 255 in the ISR.
Does this sound feasible (I haven't tested it yet), and are there any other cheats like this for getting more external interrupts out of an MCU?
Thanks,
Barnaby