SPI I/O extension using a PIC16F1516