Use interrupt-on-change. It interrupts on both edges of the input signal.
Choose a PIC that allows individual pins on PortB to be enabled for the
interrupt. The 16F887-series can do this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum