Prob osc with PIC16f876 20 sp


Closed Thread
Results 1 to 5 of 5
  1. #1
    kris's Avatar
    kris Guest

    Unhappy Prob osc with PIC16f876 20 sp

    Hello,

    I use a pic 16f876 20sp with oscillator 20 mhz and 2 capacitors 33 pf and
    my prog is:

    Define osc 20

    loop: PORTB.0=0
    Pause 500
    PORTB.0=1
    Pause 500
    Goto loop
    End

    Why my prog doesn't work? I don't understand because the same prog with pic 16f876 4sp with oscillator 4 mhz and 2 capacitors 33 pf works ( lineless
    Define osc 20)
    If you know with probleme please help me!

    Thank you Kris

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    33pF seems high at 20MHz... remove the Caps and see if it works then.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Are you setting oscillator selection bits in config word for HS?

    A 20MHz crystal requires a higher drive level output on osc2. Make sure you
    set config word for HS instead of XT.
    Regards,

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

  4. #4
    kris's Avatar
    kris Guest


    Did you find this post helpful? Yes | No

    Default Thanks melanie

    I changed my caps by 10 pF and my pic work correctly.

    I have another question, How you choose yours caps ?
    thank you

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    If I told you Kris, everybody would start doing it...

    Aw, all right, just between you and me - I read the PIC Datasheet!

Similar Threads

  1. INT2 anomaly in DT_INTS-18??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2010, 20:07
  2. Setting up a 12F683 to run at 20 Mhz
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 3rd March 2009, 02:46
  3. capture/repeat data ?
    By Sam in forum Serial
    Replies: 44
    Last Post: - 27th November 2006, 03:19
  4. A little DTMF help
    By Travin77 in forum mel PIC BASIC Pro
    Replies: 48
    Last Post: - 30th May 2006, 01:31
  5. reducing the ADC time, pic877a with 20 MHZ osc
    By toalan in forum Off Topic
    Replies: 0
    Last Post: - 23rd February 2005, 17:58

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