+ Reply to Thread
Results 1 to 5 of 5
Thread: 16F1827 - Slow Clock
-
- 22nd June 2018, 01:41 #1
16F1827 - Slow Clock
Apparently there is something I do not see. And is 3.30 am...
The following settings make the PIC run at 1/4 the speed it is supposed to.
Code:#config __config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_ON & _CPD_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF __config _CONFIG2, _WRT_OFF & _PLLEN_ON & _LVP_OFF & _STVREN_OFF ;& _BORV_25 #endconfig DEFINE OSC 32
Where am I wrong?
Ioannis
-
- 22nd June 2018, 02:41 #2
Re: 16F1827 - Slow Clock
osccon=$70
or
& _PLLEN_OFF
osccon=$F0
also
it takes a little time for pll to stabilise
while !oscstat.6 : wend ;wait for pll readyLast edited by richard; - 22nd June 2018 at 02:44.
This is more entertaining than Free to Air TV
-
- 22nd June 2018, 02:54 #3
Re: 16F1827 - Slow Clock
Hmm, I did OSCCON=$F0 but at the same time & _PLLEN_ON.
Does it matter?
Ioannis
-
- 22nd June 2018, 03:00 #4
Re: 16F1827 - Slow Clock
you would think not , but I have been using mplabx/mcc mostly lately and for some chips it does indeed matter it seems.
soft selecting pll always works so that's what i'm used to doing ,This is more entertaining than Free to Air TV
-
- 22nd June 2018, 03:24 #5
Similar Threads
-
Misbehaving HPWM on 16F1827
By J. Mark Wolf in forum mel PIC BASIC ProReplies: 7Last Post: - 20th January 2012, 01:32 -
16F1827 Errata
By Ioannis in forum GeneralReplies: 0Last Post: - 23rd March 2011, 22:42 -
16F1827 setup
By Macgman2000 in forum mel PIC BASIC ProReplies: 25Last Post: - 10th March 2011, 00:04 -
16F1827 ASM Interrupt
By abbtech in forum mel PIC BASIC ProReplies: 4Last Post: - 16th February 2011, 07:47 -
16F1827 voltage issue
By Macgman2000 in forum mel PIC BASIC ProReplies: 7Last Post: - 28th January 2011, 13:42
Bookmarks