I don't know about HSEROUT, but you mix Oshonsoft softwareHi,
Previously we have succesfully got 2x PICs to 'talk' to each other via SSPBUF, now I'm trying to get PIC1 to READ a peripheral's REGISTERS, via SSPBUF, but so far haven't succeded.
I'm starting to get mixed up, but can someone try this OSH SPI program in their simulator and see if it get's past HSEROUT please?
C
SPI functions and HW SPI.
You need first to setup the HW SPI.
To read from a register, write the register address then write a zero byte and SSPBUF should have the data from that address.