16F631 and crystal problems


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Location
    Southern California
    Posts
    86


    Did you find this post helpful? Yes | No

    Smile Re: 16F631 and crystal problems

    Thanks everyone. The problem was osc instead of OSC. The comparators are disabled on this chip by default, at least according to my 2006 preliminary datasheet I have, though I'll download the current version just to make sure nothing has changed. Can someone explain what
    Code:
    DEFINE osc 10
    would do, or is it just ignored? I've never intentionally used a DEFINE with anything other than a reserved word. Does it behave similar to
    Code:
    osc CON 10
    Thanks again for the help. I'm very glad it was under the something obvious category.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16F631 and crystal problems

    Yup, they are off by default, that is why I said, "a good idea". One line of code to be sure.

    DEFINE OSC XX 'Tells PBP the speed the chip is running at so it can calculate timing functions such as PAUSE.
    Dave
    Always wear safety glasses while programming.

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