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

PIC16F1828 Internal OSC up to 32MHZ

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



Joined: 17 Jan 2012
Posts: 2

View user's profile Send private message

PIC16F1828 Internal OSC up to 32MHZ
PostPosted: Tue Jan 17, 2012 11:47 pm     Reply with quote

Hi Everyone,
How to speed up to 32MHZ use Internal Oscillator in CCS Compiler ?
CCS Version is 4.128.
temtronic



Joined: 01 Jul 2010
Posts: 9229
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Jan 18, 2012 5:51 am     Reply with quote

First step would be to post your small 'test' program here so we can see how you setup the PIC.

Second, when the project is open, press F11, to access the CCS C onscreen help files. Leave it open, it's a super handy 'onscreen' reference.

Third, look at some of the examples that CCS kindly supplies in the 'examples' folders.

Fourth, look at the 'header' file for your PIC to see what 'configurations' are possible.

Fifth and most important, download and read the datasheet. Consult the section on 'oscillator configurations'. There is a GREAT figure showing the 'flow' of clock signals. By looking at this and some easy reading it will show you what is required.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 19, 2012 4:18 pm     Reply with quote

This program should blink an LED at 1 Hz on pin C0.
Code:

#include <16F1828.H>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=32M)

//==========================================
void main()
{

while(1)
  {
   output_toggle(PIN_C0);
   delay_ms(500);
  }

}
nike&rose



Joined: 17 Jan 2012
Posts: 2

View user's profile Send private message

Re: PIC16F1828 Internal OSC up to 32MHZ
PostPosted: Thu Jan 19, 2012 6:21 pm     Reply with quote

[spam]&rose wrote:
Hi Everyone,
How to speed up to 32MHZ use Internal Oscillator in CCS Compiler ?
CCS Version is 4.128.



Very Thanks for temtronic and PCM programmer your reply.
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