You don't set configuration words like that (and it can only do 4MHz or 8MHz). It is set by the __CONFIG as you already have. I am not sure of the syntax - for the XC8 it would be #pragma config IOSCFS = 8MHZ. You should be able to find it from your compiler help.
I am sorry the comment is a typo, I am trying to set the internal oscillator at 8 MHz. So should I set my internal oscillator frequency in the __CONFIG statement ?
Hi,
Thanks for the reply. I tried the following code to see clock output waveform in a CRO, but I am not able to.
How do I enable CLKOUT high ? Is it by default set high also I am getting a MCLRE and INT OSC contention error.
Can you please guide me here, have been tryin to get this for a while
Thank you