During programming, the board is powered via a serial link, RS232, and programmed by the use of a Microchip Real Ice programmer. Both are plugged into a lapdog.
I know it is an input, but SCLK has been seen stuck high or low.
One of the first things that the code does, after setting ports etc...