16F631 and crystal problems


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: 16F631 and crystal problems

    Quote Originally Posted by mister_e View Post
    True when it's AFTER the @ symbol or Within and ASM/ENDASM block, it doesn't apply it the current case.

    But yes, OSC reswerved word HAVE TO BE IN UPPERCASE
    Hi Steve,
    Ok so that's the Magic, before the @ it works, after it doesn't, got it . . . for now Getting pretty foggy behind these eyes . . .
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    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.

  3. #3
    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