Thanks for that idea. I'll try it
I'm still concerned that the pic is not running at 32mhz yet? My config must be wrong somewhere :?
Thanks for that idea. I'll try it
I'm still concerned that the pic is not running at 32mhz yet? My config must be wrong somewhere :?
I run an 18F2620 at 32MHZ with the internal OSC. Here is my config.
replace (percent) with %Code:OSCCON=(percent)01110000 ' SET TO 8 MHZ internal oscillator OSCTUNE=(percent)11000000 ' TURN ON PLL X4 FREQ NOW 32MHZ
Shawn
Shawn
Can you post this part of you config as well please?
Code:#CONFIG __CONFIG _CONFIG1H, _OSC_INTIO67_1H & _FCMEN_OFF_1H & _IESO_OFF_1H __CONFIG _CONFIG2L, _PWRT_OFF_2L & _BOREN_OFF_2L __CONFIG _CONFIG2H, _WDT_OFF_2H __CONFIG _CONFIG3H, _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_OFF_3H __CONFIG _CONFIG4L, _STVREN_OFF_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L #ENDCONFIG
Sorry, I don't put my configs in the code like that. I set them with PICFLASH when I program my pics. What you have looks correct to me though.
Shawn
Pic now seems to be running at 32mhz and able to keep up, so problem may be solved. Thanks for the ideas.
Just the oscon and osctune to your values.
Bookmarks