PIC18(L)F2X/4XK22 config 64MHz clock ?

(instructions, reset, WDT, specifications...) PIC17Cxx, PIC18Fxxx

PIC18(L)F2X/4XK22 config 64MHz clock ?

Postby eeboxCHIP » Tue Feb 07, 2023 5:12 pm

64 MHz performance available using PLL using C.

1. Please show code for using 64 MHz performance with MPLAB® X Integrated Development Environment (IDE) for PIC18F46K22.

2. List of NON RUN TIME config bits ? Registers bits that cannot be code modified in Main() ?

Thank you all.
eeboxCHIP
 
Posts: 2
Joined: Tue Feb 07, 2023 4:49 pm

Re: PIC18(L)F2X/4XK22 config 64MHz clock ?

Postby AussieSusan » Wed Feb 08, 2023 6:20 am

The answers are all in the datasheet.
Figure 2-1 shows how the oscillator can be configured. HFINTOSC outputs 16MHz. Set the INTOSC divider to 1:1 to you get the 16MHz out. Set the input to the 4x PLL to be the IMTOSC signal and select the 'Primary Clock' for the CPU.
Section 24.1 talks about the config bits and table 24-1 plus the notes indicate what can be read and written and when. Section 24.2 describes each of the CONFIG registers in more detail. Also see the function of the WRTC bit.
Susan
AussieSusan
Verified identity
 
Posts: 173
Joined: Mon Jun 16, 2014 4:45 am
PIC experience: Experienced Hobbyist


Return to 16-Bit Core

Who is online

Users browsing this forum: No registered users and 10 guests

cron