Oscillator setup


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    457


    Did you find this post helpful? Yes | No

    Default Re: Oscillator setup

    OSCCON bits 1-0:
    What is the difference between 1x=Internal oscillator block and 00=Primary oscillator?
    This can be confusing the way they word this.
    The 'primary oscillator' is the one selected by the 'config' setting.

  2. #2
    Join Date
    Jul 2024
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: Oscillator setup

    Greetings,

    HenrikOlsson and tumbleweed thank you so much for your help.

    I think I have a better understanding of these settings with your help.
    I also found this:
    8-bit PIC® MCU Clock Switching - Developer Help (microchip.com)

    I
    n there they also say

    Code:
    When the SCS bits = 00, the system clock is switched to the clock source selected by the Fosc bits in the Configuration Register. This can be the Internal Oscillator, External Crystal/Resonator, or External Clock.When the SCS bits = 01, the system clock is switched to the Secondary Oscillator which is an external 32.768 Khz crystal that controls the Timer1 Peripheral. The external clock crystal is an optional clock source that must be part of the Timer1 design circuit.
    When the SCS bits = 10 or 11, then the system clock is switched to the Internal Oscillator independent of the Fosc configuration bit settings. The IRCF bits of the OSCCON register will select the internal oscillator frequency.
    This makes me believe that, if we have the internal osc setup in the FOSC<2:0>, the result will be the same if I select any of the 2 options:

    "1x = Internal oscillator block" or "00 = Primary oscillator"

    Am I right?

Similar Threads

  1. PIC16F777 - setup
    By orjon1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd June 2011, 21:17
  2. Using PIC16F88 oscillator as oscillator for other ICs
    By Torael_7 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 30th March 2008, 13:58
  3. ADCIN setup help need
    By dangill in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th February 2008, 16:22
  4. LCD setup
    By ruijc in forum General
    Replies: 11
    Last Post: - 19th November 2007, 10:04
  5. How to setup Bootloader
    By koossa in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th January 2006, 20:52

Members who have read this thread : 4

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts