View previous topic :: View next topic |
Author |
Message |
nike&rose
Joined: 17 Jan 2012 Posts: 2
|
PIC16F1828 Internal OSC up to 32MHZ |
Posted: Tue Jan 17, 2012 11:47 pm |
|
|
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
|
|
Posted: Wed Jan 18, 2012 5:51 am |
|
|
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
|
|
Posted: Thu Jan 19, 2012 4:18 pm |
|
|
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
|
Re: PIC16F1828 Internal OSC up to 32MHZ |
Posted: Thu Jan 19, 2012 6:21 pm |
|
|
[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. |
|
|
|