external clock


Closed Thread
Results 1 to 5 of 5

Thread: external clock

  1. #1
    Join Date
    Sep 2016
    Posts
    5

    Default external clock

    Hello, i am new to programming and am using a pic18f25k22 im trying to set it up to use an external 8mHz oscillator but from looking at the datasheet i am confused about how i do this any help would be appreciated thanks connor



  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,388


    Did you find this post helpful? Yes | No

    Default Re: external clock

    im trying to set it up to use an external 8mHz oscillator
    IS that an really an oscillator or do you mean a xtal or a resonator, they all have different requirements
    more info is needed and what have you tried ?
    Warning I'm not a teacher

  3. #3
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: external clock

    If you insist on using an external oscillator/resonator/crystal there are some examples of how to hook it up in the datasheet on page 33.

    However, most people would be glad to use the internal frequency selectable oscillator. Saves pins, parts and cost.

    As above, tell us what you've tried and most will steer you in the right direction.

  4. #4
    Join Date
    Sep 2016
    Posts
    5


    Did you find this post helpful? Yes | No

    Default Re: external clock

    think ive managed to do it now using the following line

    #pragma config FOSC = HSMP

    im new to pic programming and struggling to set the pic up from scratch so the i/o pins are outputs ect

    i am using an 8mHz xtal i will be using the i/o pins as outputs to mulitiplex a 7 segment display

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: external clock

    If i'm not mistaken thats C, so I guess you're on the wrong board.
    George

Similar Threads

  1. External clock on 16f819 problem.
    By tasmod in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 27th January 2012, 17:09
  2. Shiftin with external Clock howto ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 21st September 2011, 16:45
  3. Data Out From External Clock
    By Quin in forum Serial
    Replies: 2
    Last Post: - 25th October 2008, 09:11
  4. external clock / internal clock
    By grounded in forum General
    Replies: 4
    Last Post: - 31st May 2008, 17:44
  5. External clock
    By Firegod in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2007, 00:53

Members who have read this thread : 1

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