AtomSoft Well-Known Member Sep 25, 2008 #1 Hey another issue . I know i have a bunch of em lol This one is confusing. I looked through the PIC18 Config Set help file and it says its there so im assuming its the header file with the error or something. Here is my code: Code: #include <p18f2525.h> #include <stdio.h> #include <delays.h> #pragma config WDT = OFF, XINST = OFF, OSC = INTIO67 void main(void){ OSCCON = 0x72; //8MHz clock while(!OSCCONbits.IOFS); //wait for osc stable while(1){ } } The issue is it says: "main.c:5:Error [1224] configuration setting 'OSC' not recognized" Im on my way to check microchip to see if i can find info but if anyone could shed some light ill be grateful. Last edited: Sep 25, 2008
Hey another issue . I know i have a bunch of em lol This one is confusing. I looked through the PIC18 Config Set help file and it says its there so im assuming its the header file with the error or something. Here is my code: Code: #include <p18f2525.h> #include <stdio.h> #include <delays.h> #pragma config WDT = OFF, XINST = OFF, OSC = INTIO67 void main(void){ OSCCON = 0x72; //8MHz clock while(!OSCCONbits.IOFS); //wait for osc stable while(1){ } } The issue is it says: "main.c:5:Error [1224] configuration setting 'OSC' not recognized" Im on my way to check microchip to see if i can find info but if anyone could shed some light ill be grateful.
ericgibbs Well-Known Member Most Helpful Member Sep 25, 2008 #2 hi atom, Where did you get the INTIO67 from, I can only find INTIO1 or 2 Last edited: Sep 25, 2008
AtomSoft Well-Known Member Sep 25, 2008 #3 ericgibbs said: hi atom, Where did you get the INTIO67 from, I can only find INTIO1 or 2 Click to expand... I found the problem it was i had a typo in the selected device in mplab so silly. The Code: Oscillator Selection: OSC = LP OSC = XT OSC = HS OSC = RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO6 EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO6 RC-OSC2 as RA6 OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7 OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7 Thats from the "PIC 18 Config Set". In the help menu. Last edited: Sep 25, 2008
ericgibbs said: hi atom, Where did you get the INTIO67 from, I can only find INTIO1 or 2 Click to expand... I found the problem it was i had a typo in the selected device in mplab so silly. The Code: Oscillator Selection: OSC = LP OSC = XT OSC = HS OSC = RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO6 EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO6 RC-OSC2 as RA6 OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7 OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7 Thats from the "PIC 18 Config Set". In the help menu.