Hi and welcome on the forum,
did you tried with Shiftin/Shiftout or with the MSSP module?

please, when you post a question, give us all details you have such as your code, schematic, compiler version, device programmer, etc etc.