Figure 4—I lumped the four input circuits into a single view. JP1 enables the sharing of the PIC’s B and C I/O ports or the assignment of the PORTB pins to IRQs. JP6 is simply a pull-up or pull-down selector.