https://deepbluembedded.com/spi-tutorial-with-pic-microcontrollers/
SPI Tutorial With PIC Microcontrollers | Serial Peripheral Interface