Re: Config & Oscon settings 16F1825
Try this
Code:
#CONFIG
__CONFIG _CONFIG1, _FCMEN_OFF & _IESO_OFF & _FOSC_INTOSC & _PLLEN_OFF & _WDTE_SWDTEN & _MCLRE_OFF & _CP_OFF & _BOREN_OFF & _PWRTE_OFF
__CONFIG _CONFIG2, _LVP_OFF
#ENDCONFIG
OSCCON = 1000
' x------- SPLLEN: don't care when _PLLEN_OFF in config fuse
' -1111--- Internal clock = 16MHz
' -----x-- Unimplemented
' ------00 System Clock Source = Determined by Config Word
DEFINE OSC 16 ' Tell PBP we use a 16MHz Clock
MPASM is case sensitive, IF the config are not in capital you'll receive some Symbol not previously defined error message.
EDIT: Yup, there should indeed have a percent sign ... Looks like the new vBulletin have new "Features"
Above the above OSCCON should be
OSCCON = % 01111000
without the space between percent signe and the first 0
Last edited by mister_e; - 16th September 2011 at 20:29.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks