Pls How can I make 16F877A use 15MHz Xtal


Closed Thread
Results 1 to 31 of 31

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ozzie1st View Post
    My understanding is that to use 15 MHz crystal i need to include
    DEFINE OSC 15
    at the top of my pic basic pro codes
    and that I needed to edit the 16F877A.INC file on my C: drive and replace XT_OSC with HS_OSC.
    I have done this. Is there anything I am not doing? Thanks
    XT vs. HS. Check the datasheets
    You have to reconfigure your PIC to run the 15mhz oscillator.

    And check your PBP manual for the correct use of:
    DEFINE OSC 15

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Skimask is hinting that you read section 7.1 of the manual (and pay particular attention to the table)

    ... and I think he wants 15MHz, not 15mHz .... 1,000,000,000X difference
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    Skimask is hinting that you read section 7.1 of the manual (and pay particular attention to the table)

    ... and I think he wants 15MHz, not 15mHz .... 1,000,000,000X difference
    Good call. At least I didn't say 15uhz...or 15phz...or 15fhz and keep going...and going...and going...

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


    Did you find this post helpful? Yes | No

    Default ? ? ? ? ? !

    Quote Originally Posted by paul borgmeier View Post
    Skimask is hinting that you read section 7.1 of the manual (and pay particular attention to the table)

    ... and I think he wants 15MHz, not 15mHz .... 1,000,000,000X difference
    Hi Paul,
    _ D'oh I think I missed something here, mHz != MHz by a billion times, What the heck is mHz if not megahertz? Please forgive my American ignorance of this little part of the Metric system but they didn't teach that in school in those days.
    Thanks
    JS
    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.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi Paul,
    _ D'oh I think I missed something here, mHz != MHz by a billion times, What the heck is mHz if not megahertz? Please forgive my American ignorance of this little part of the Metric system but they didn't teach that in school in those days.
    Thanks
    JS
    Unwritten rules I think...Probably hinting that:
    mhz = milli hertz
    Mhz = mega hertz
    kinda like
    bps = bits per second, while
    Bps = could be taken as BYTES per second

    I would take it that way if I didn't have anything else to base it on...meaning if I didn't know we were talking about megahertz I might think we might've been talking about milli hertz...

  6. #6
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Hi Joe,

    I was being more of a smart @$$ than anything else - I knew exactly what was implied by mhz. However, the m versus M thing is what I was taught in school and is the accepted standard for abbreviations

    http://en.wikipedia.org/wiki/Milli

    I should have kept my 10^9 comment to myself and instead said "thanks skimask for helping so many people learn to fish instead of just giving them the fish!" You have been getting a lot of "thanks" from these fishermen (or should I say fisherpeople) as of late.

    Ozzie, did you get your PIC to run at 15MHz?
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    I was being more of a smart @$$ than anything else - I knew exactly what was implied by mhz. However, the m versus M thing is what I was taught in school and is the accepted standard for abbreviations
    I knew what ya meant and what you were getting at. Sometimes, it's obvious, sometimes not. I know I've been tripped up by the 'bps' vs 'BPS' thing more than once. And I spent the best 4 years of my life in 6th grade!

    (grumpy ol' man)
    Back in my day...we didn't have 'METERS' and 'GRAMS'...we had 'a long ways' and 'heavier than hell'...and (slams hand on table) 'WE LIKED IT THAT WAY'...

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I knew what ya meant and what you were getting at. Sometimes, it's obvious, sometimes not. I know I've been tripped up by the 'bps' vs 'BPS' thing more than once. And I spent the best 4 years of my life in 6th grade!

    (grumpy ol' man)
    Back in my day...we didn't have 'METERS' and 'GRAMS'...we had 'a long ways' and 'heavier than hell'...and (slams hand on table) 'WE LIKED IT THAT WAY'...
    Back in my day they called it CPS and didn't worry about less than 1 whole cycle.
    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.

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking RTFM ... ha,ha,ha ... I REALLY LOVE !!!

    Quote Originally Posted by skimask View Post
    XT vs. HS. Check the datasheets
    You have to reconfigure your PIC to run the 15mhz oscillator.

    And check your PBP manual for the correct use of:
    DEFINE OSC 15

    geeeee !!! What a wonderful forum is has become these days ...

    after all these years, I didn't know there was a DEFINE OSC 15 ...

    12 or 16 only available ... too bad !!! ( Manual p. 170 ... )

    but ... PBPIC libs can be modified, of course !!! ... or time related functions re-calculated ... isn't it ???

    Alain

    PS: Sorry Ozzie, but it will be VERY difficult to run off-the-list frequencies with straight PBP ... try 16 Mhz !!! it will be so much simpler ...

    May be some ones here could explain you how to modify the PbPlib files ... to run a True 15 Mhz Xtal !!!

    I'd really love to read them too ... humour.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. 16F877A with 20MHz XTAL not working?
    By ustredna in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th August 2011, 15:04
  2. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 17:25
  3. Clock connection to DS1802 from 16F877A
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd January 2006, 18:52

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