I own a PIC18F4550 and I need to make him a slave in the SPI model, but I'm not understanding the SSPBUF register. According to the datasheet, it is a Serial Receive / Transmit Buffer Register (SSPBUF). But how do I know he's with the information or sending information through it? I do programming in C ont the MPLAB x.
http://ww1.microchip.com/downloads/en/DeviceDoc/39632e.pdf