Hi MaryMc, the SPI protocol not said:
PIC < ------------------------- > ADE7758
RB0 (SDI) --------------------------- 24 (DOUT)
RB1 (SCK) ------------------------- 23 (SCLK)
RC7 (SDO) ------------------------- 22 (DIN)
RA5 (SS) --------------------------- 21 (CS)
The conection between the pins of the yasin is incorrect?