View previous topic :: View next topic |
Author |
Message |
aasanchez
Joined: 17 May 2013 Posts: 8
|
18F46k22 internal osc help |
Posted: Wed Jan 29, 2014 9:04 am |
|
|
Greetings, I'm trying to set the internal oscillator in a 18f46k22 16Mhz, but I try but I could not, the code which gives me the wizard just not achievement to make the microcontroller to work, someone could give me a small example? |
|
|
mdemuth
Joined: 16 Apr 2007 Posts: 71 Location: Stuttgart, Germany
|
|
Posted: Wed Jan 29, 2014 9:36 am |
|
|
For me worked with the 18F45k22 and V4.124:
....
#fuses INTRC_IO,WDT256,NOPROTECT,BROWNOUT,MCLR, BORV29,PUT
#use delay(clock=16000000)
....
setup_oscillator (OSC_16MHZ);
...
I did not use any wizard. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9247 Location: Greensville,Ontario
|
|
|
|