Thank you Rob, for great help.
On Sep 22, 4:46 pm, Rob Hamerling <[email protected]> wrote: > Hi Kutsal > > On 10/09/22 14:59, kbaser wrote: > > > I checked the 18f26k20.jal file for fuse_def OSC, but it seems PLL is > > only valid for HS. > > Yes and no: > - With the configuration bits you can activate PLL only for a HS > crystal > - When you use fuse_def OSC INTOSC_NOCLKOUT you can enable PLL > in software (in your program) by setting the PLLEN bit in OSCTUNE > > > How can I run 26k20 @64Mhz with internal osc ? > > By reading the datasheet I think it should be with: > > pragma fuse_def OSC INTOSC_NOCLKOUT -- (or INTOSC_CLKOUT) > > OSCCON_IRCF = 0b111 -- 16 MHz > OSCCON_SCS = 0b00 -- primary clock > OSCTUNE_INTSRC = TRUE -- select HFINTOSC > OSCTUNE_PLLEN = TRUE -- 4 * PLL -> 64 MHz > > > Do I need to set OSCCON_IRCF and/or other configuration bits? > > Yes, see above. > > Success, Rob. > > -- > R. Hamerling, Netherlands ---http://www.robh.nl -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
