View previous topic :: View next topic |
Author |
Message |
haqamar
Joined: 26 Dec 2011 Posts: 3
|
16f883 config fuses problem |
Posted: Wed Jan 25, 2012 1:39 pm |
|
|
Unable to set the fuses properly for 16f883 in ccs ver 4.110. Is this correct format ?
Code: |
#include <16f883.h>
#fuses HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTECT, NOPUT
#use delay(oscillator=20M)
|
After compilation I see EC_IO instead of external HS oscillator...
plzz help |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19541
|
|
Posted: Wed Jan 25, 2012 3:37 pm |
|
|
Code: |
#include <16f883.h>
#fuses HS, NOWDT, NOLVP, NOBROWNOUT, NOPROTECT, NOPUT
#use delay(clock=20M)
|
The keywords 'crystal', and 'oscillator' in use delay, override the fuse selection, instead using the crystal or internal oscillator respectively.
Don't put extra spaces between the 'use' and the 'delay' on some compiler versions this will cause problems.
Best Wishes |
|
|
haqamar
Joined: 26 Dec 2011 Posts: 3
|
|
Posted: Wed Jan 25, 2012 4:11 pm |
|
|
thanx for pointing 'clock' |
|
|
|