added SPI master mode setup for PIC24