SPI Loopback value received is half of transmitted value
You have set PPRE bits and SPRE bits in SSPI3CON1 register to 1:1, This is from the  Page 9 of the reference manual


  Do not set the primary and secondary prescalers to the value of 1:1
  at the same time.