PIC18F14K22 Oscillator question
Posted: Mon Oct 08, 2018 8:11 am
Hi,
Seems as Oscillator Config in Project Options not works as need.
My pic starts only after adding C code at the begin of chart.
OSCCON=0b01110110;
OSCCON2=0b00000010;
OSCTUNE=0b11000000;
It is starts at 16MHZ.
Now I need to use PLL to starts internal OSC at 64MHZ. I need to add to C code configuration register CONFIG1H=0b01011000
but compiler give error message
LCD_Enc_test.c: main()
4758: CONFIG1H=0b01011000;
^ (192) undefined identifier "CONFIG1H"
(908) exit status = 1
(908) exit status = 1
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
Can you advice to run PIC with internal oscillator at 64MHZ?
Thanks!
Seems as Oscillator Config in Project Options not works as need.
My pic starts only after adding C code at the begin of chart.
OSCCON=0b01110110;
OSCCON2=0b00000010;
OSCTUNE=0b11000000;
It is starts at 16MHZ.
Now I need to use PLL to starts internal OSC at 64MHZ. I need to add to C code configuration register CONFIG1H=0b01011000
but compiler give error message
LCD_Enc_test.c: main()
4758: CONFIG1H=0b01011000;
^ (192) undefined identifier "CONFIG1H"
(908) exit status = 1
(908) exit status = 1
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe reported error code 1
Can you advice to run PIC with internal oscillator at 64MHZ?
Thanks!