18F2520 clock speed ?


Closed Thread
Results 1 to 25 of 25

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    John

    Get up off your butt and do a forum search for DEFINE OSC (a secret phrase known only to everyone that programs with MeLabs PICBASIC who happens to have read the product manual) that I mentioned back in post number #4 in this thread. Not got the manual? Then go onto the manufacturers website (this forum has got a dozen pointers to it) where you can locate the product manual and look up DEFINE OSC. You do remember who makes your compiler don't you? No? (there's a highlighted clue in this paragraph and Google comes free with every internet connection). In case you missed it - DEFINE OSC is the answer to your problem. Once you've got the manual, go look in the section I pointed you to (again back in Post #4). Don't say that you've had "useless information" when you were told the answer a few hours after posting your question.

    Geeze, teach a guy to fish and he'll spend all day in a boat with a crate of beer.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post

    Geeze, teach a guy to fish and he'll spend all day in a boat with a crate of beer.
    That's why I'm learnin' to fish
    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.

  3. #3
    Join Date
    Dec 2007
    Location
    Toronto, Ontario
    Posts
    23


    Did you find this post helpful? Yes | No

    Talking

    MEL,

    Your right, you did explain in post #4 that using DEFINE OSC was needed to adjust all required timings. You then said "There's also a whole section entitled "How fast is fast enough?" (section 7.1 in my manual). "
    To which I asked "where do I find your book ?"

    How the hell should I know that you have some connection to Melabs.
    Honestly, I don't really care who you are affiliated with, I was just trying to get this circuit working. As it turns out, the board is fully functional and has been since the first post, I had already figured out that it would work with a 4Mhz xtal.
    I did try the define osc before my first post, I had deleted it from my code because it didn't work. That is what lead to Post #3, which I described how the xtal fuse settings vastly affected the timing, again looking for a constructive reply !

    Thanks

  4. #4
    Join Date
    May 2008
    Location
    Florida
    Posts
    64


    Did you find this post helpful? Yes | No

    Default

    "where do I find your book ?" = Melanie's manual
    Melanie's manual = MicroEngineering Labs, Inc. PICBASIC PROtm Compilier manual



    In my copy

    Section 7.1 is on page 171, look down the page about 3/4 of the ways. Sentence begins "However..."


    You should be able to find the answers to your questions there.

    The PBP Manual is also known as: the Manual, the ugly green book, the bible, etc. around these parts.

    That explains my problems with any xtal other than 4mhz. I will check into my PBP manual for info about DEFINE OSC, but will that allow the use of other osc frequencies ?
    If you had checked the PBP manual you would not have asked that question or needed to for that matter.
    Last edited by manwolf; - 21st August 2008 at 01:50.

  5. #5
    Join Date
    Dec 2007
    Location
    Toronto, Ontario
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Yes I had cheched the manual, just didn't know or cared who wrote it. I don't run and post a question here or anywhere unless I just can't figure something out. I will read anything I can get my hands on, online or otherwise, until I find the solution. Granted, I'm no expert, so this process can take some time, but usually I will succeed. I DID refer to the manual, don't need a forum to tell me to look there first. As I said, I had also ALREADY tried using DEFINE OSC 10Mhz, it did not work. The output baud timing was way off. I also wasn't sure about what config fuses to set with the U2 programmer regarding the xtal. The original crystal is a SMT type, 10 Mhz. I tried all different fuse settings, which of course affected the timing, but none gave the proper result at the pic output. So I installed a SMT 4Mhz xtal and, you guessed it-works great.

  6. #6
    Join Date
    Dec 2007
    Location
    Toronto, Ontario
    Posts
    23


    Did you find this post helpful? Yes | No

    Wink

    one more thing....

    "where do I find your book ?" = Melanie's manual
    Melanie's manual = MicroEngineering Labs, Inc. PICBASIC PROtm Compilier manual
    .....ok, thanks for that manwolf...

    And from Mel's profile,
    "Occupation:
    I DO NOT work for MeLabs or Crownhill. Both those companies however continue to get my vote. "
    Now I am curious, did you write this manual, or is that an urban legend 'around these parts'.
    ?
    your PBP pal,

    John

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Gixxer View Post
    one more thing....
    "where do I find your book ?" = Melanie's manual
    Melanie's manual = MicroEngineering Labs, Inc. PICBASIC PROtm Compilier manual
    .....ok, thanks for that manwolf...
    And from Mel's profile,
    "Occupation:
    I DO NOT work for MeLabs or Crownhill. Both those companies however continue to get my vote. "
    Now I am curious, did you write this manual, or is that an urban legend 'around these parts'.
    ?
    your PBP pal,
    John
    Melanie's manual <> PicBasicPro Compiler manual...however...
    Melanie's REFERENCE manual used way back when Melanie didn't know anything about PicBasicPro may have been the PicBasicPro Compiler manual, written by microEngineering Labs, Inc (at least that's what I've assumed all along). Can't remember the name of the person(s) that are responsible for the upkeep/updating of the core of PicBasicPro itself off hand though...

Similar Threads

  1. Clock Speed
    By Del Tapparo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th November 2007, 02:06
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. clock speed
    By Armando Herjim in forum General
    Replies: 1
    Last Post: - 30th November 2006, 12:25
  5. Faster Clock Speed for Shiftin/out?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th December 2005, 02:15

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