Hello everyone.
I'm wondering how the configuration bits work..
One of the website I visit has tutorial that does something like this:
__config 0x3D18 ;sets the configuration settings
;(oscillator type etc.)
I convered this to binary: 11110100011000
The datasheet lists 3 configuration bits for the oscillator.
FOSC0-2
I'm thinking this is the last part of that binary. If this is the case then the config line in the tutorial would have the chip use INTRC, the internal clock.
This is what i want for my first program. (Note: I dont have my PIC or Programmer yet)
My question is simply.. Am I at all correct?
Also, I'm using "PicFlash" to program my PIC and there is something it calls
ID locations. What are these and do they have any relevance to this?
and If i'm correct about the configuration bits. Should I set my oscillator in PicFlash to RC?
Thanks guys.
I'm wondering how the configuration bits work..
One of the website I visit has tutorial that does something like this:
__config 0x3D18 ;sets the configuration settings
;(oscillator type etc.)
I convered this to binary: 11110100011000
The datasheet lists 3 configuration bits for the oscillator.
FOSC0-2
I'm thinking this is the last part of that binary. If this is the case then the config line in the tutorial would have the chip use INTRC, the internal clock.
This is what i want for my first program. (Note: I dont have my PIC or Programmer yet)
My question is simply.. Am I at all correct?
Also, I'm using "PicFlash" to program my PIC and there is something it calls
ID locations. What are these and do they have any relevance to this?
and If i'm correct about the configuration bits. Should I set my oscillator in PicFlash to RC?
Thanks guys.