If your settings are the same at home, and it is loading & using config word settings in your .hex file, then i would have to suspect something in your circuit since your code posted as-is above works just fine.