this change not resolved the problem...
I guess this is wrong.
20 MHz Crystal is HS and not HS_PLL. HS_PLL has to be used when you are using say 4 MHz or 8 MHz Crystal with 4x PLL.Code:#pragma config FOSC = HSPLL_HS