SPI communication using pic microcontroller, PIC18F452 in master and slave mode with programming examples in Mplab xc8 compiler