Are informations are welcome.
From yours discussions and from datasheet I understand:
- in Config , _FOSC_INTOSC set osc to internal ; default speed is set to 500KHz
- OSCCON or DEFINE OSC set speed