Do I have to use Table Reads & Writes to change the OSCSEN bit on a 18F452?


Results 1 to 6 of 6

Threaded View

  1. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Jessey,

    Yep. That's pretty much all there is to it.

    This enables osc switching in config word: _OSCS_ON_1H.

    T1CON.3 = 1 enables the Timer1 oscillator.

    OSCCON.0 = 1 switches from whatever external primary osc you're using to the one on Timer1.

    Switch to Timer1 osc: OSCCON.0 = 1
    Switch to main osc: OSCCON.0 = 0

    NOTE: Its not OSCCON0.0. It's OSCCON.0.
    Last edited by Bruce; - 13th February 2006 at 00:38.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Doubt with interrupt on change
    By lugo.p in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th March 2010, 15:22
  3. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

Members who have read this thread : 0

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