Struggling with an appropriate title, but my question is this. I've designed a board with 2 x Atmega324PB's on it. The purpose of the board is to provide 64 inputs (32 pins on each chip) using PCINT, with connectivity on the TWI ports.
The issue I have is how to program them, as the pins for JTAG are assigned as inputs and there are only 4 free pins, none of which are assigned for JTAG or ISP.
My thoughts were to have a jumper on the board that if closed would programmatically disable the inputs/PCINT's on the pins I need for JTAG.
Is that a reasonable option? I would then be able to debug the system with the exception of the disabled pins.