shreyas_patel21
Full Member level 3
I am using pic18f46k22
my configurationbits settings are
OSCCONbits.IRCF0 =1; //HFINTOSC 16MHz with PLLEN
OSCCONbits.IRCF1 = 1;
OSCCONbits.IRCF2 = 1;
OSCTUNEbits.PLLEN = 1;
what is the Fosc(clock frequency) for this settings?
I think its 16Mhz settings but when I made calculation for timer the timer was working as 64Mhz clock
my configurationbits settings are
Code:
#pragma config FOSC = INTIO67, FCMEN = OFF,IESO = OFF,PLLCFG = OFF
#pragma config PWRTEN = ON, WDTEN = OFF,BOREN = OFF
#pragma config MCLRE = INTMCLR, HFOFST = ON
#pragma config LVP = OFF
#pragma config CP0=OFF, CP1=OFF,CP2=OFF, CP3=OFF, CPB=OFF, CPD=OFF
#pragma config WRTC=OFF, WRTB=OFF,WRTD=OFF
#pragma config EBTR0=OFF , EBTR1=OFF , EBTR2=OFF , EBTR3=OFF , EBTRB=OFF
OSCCONbits.IRCF0 =1; //HFINTOSC 16MHz with PLLEN
OSCCONbits.IRCF1 = 1;
OSCCONbits.IRCF2 = 1;
OSCTUNEbits.PLLEN = 1;
what is the Fosc(clock frequency) for this settings?
I think its 16Mhz settings but when I made calculation for timer the timer was working as 64Mhz clock
Last edited: