CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

18F46k22 internal osc help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
aasanchez



Joined: 17 May 2013
Posts: 8

View user's profile Send private message

18F46k22 internal osc help
PostPosted: Wed Jan 29, 2014 9:04 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Wed Jan 29, 2014 9:36 am     Reply with quote

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: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jan 29, 2014 2:23 pm     Reply with quote

here's a link( I hope..)

http://www.ccsinfo.com/forum/viewtopic.php?t=51760&start=15

scroll down a bit for my reply( 1Hz LED...) and you'll see what I use.

hth
jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group