I use its larger sibling (16f1828), and have it set something like this for 16Mhz
Code:
@ __CONFIG _CONFIG1, _FCMEN_OFF & _FOSC_INTOSC & _WDTE_OFF & _MCLRE_OFF & _CP_OFF & _IESO_OFF & _BOREN_OFF & _PWRTE_OFF & _LVP_OFF
@ __CONFIG _CONFIG2, _LVP_OFF
DEFINE OSC 16
Osccon = 111010 'sets the internal oscillator to 16Mhz
Re the PLL...it confused me too, I haven't got access to the config settings I used (I certainly had it working at 32Mhz at one stage) , but the jists seems to be if you haven't got any refereence to PLLEN_ON in you config, then bit 7 of the Osccon register turns on the PLL
Edit: I don't know what's going on thereshould be a percentage sign and a leading 0 at the front of that Osccon entry...they are both disappearing when I click 'post reply'
Bookmarks