Which is the instruction to set on a PIC16F628 or PIC16F628A to use the internal 4MHz oscillator?
Which is the instruction to set on a PIC16F628 or PIC16F628A to use the internal 4MHz oscillator?
This was in the similar threads listed below:
http://www.picbasic.co.uk/forum/showthread.php?t=8901
Robert
No, I'n Sorry but I can't understand what to do.
I just want to set internal clock to 4Mhz
Use the configuration word _INTRC_OSC_NOCLKOUT (or _INTRC_OSC_CLKOUT if you want the clock signal on the PIC pins).
Ioannis
For example in Pic16f819 I have to set
@ DEVICE INTRC_OSC
DEFINE OSC 4
OSCCON = $60
to use the internal 4Mhz clock
How can I do this on Pic16f628 or Pic16F628A?
If you check the data sheet regarding the internal oscillator, you will confirm that there is no option for other frequencies than 4MHz.
So set what I posted above and also DEFINE OSC 4 if you want (PBP considers this as default) and you are OK.
Ioannis
Ok thank you and Sorry for my misunderstanding
Bookmarks