Define Osc Not Working


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116

    Default Define Osc Not Working

    Hi all,

    Has anyone else had trouble with clock speed?

    No matter what i define the oscilator as PBP seems to think its 4MHz. Yes HS is set in mplab, when blowing the chip. I need a 20MHz osc to get the speed & resolution I need, but then cant use serout. 12000 (5 * 2400) baud does not exist. I have version 2.33 of PBP.
    Regards

    Bob...
    Last edited by BobEdge; - 21st February 2005 at 10:47.

  2. #2
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Cool

    Have found the cause of the problem, or rather have found a cure, still not sure what the problem is.

    In micro code studio uncheck "Microchip MPASM" in the assembler options window.

    Not sure whats assembling the code now but it works...

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hi Bob,

    When you uncheck the MPASM box, it automatically reverts to PM as the assembler. This is the assembler that comes with PBP

    MPASM is case sensitive, PM is not. So when using MPASM "Osc" needs to be all caps.

    Define OSC 20

    HTH,
       Darrel
    DT

  4. #4
    Join Date
    Feb 2005
    Location
    Holmfirth England
    Posts
    116


    Did you find this post helpful? Yes | No

    Default

    Oh i see. Thats handy to know, since my old copy of PM assembler may not work with more modern chips. Thank you Darrel....

    Regards

    Bob...

Similar Threads

  1. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 17:42
  2. PIC16F877A analog problem
    By DeViLa_Q8 in forum mel PIC BASIC
    Replies: 0
    Last Post: - 30th July 2009, 20:19
  3. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13
  4. confused problem with interrupt in a working program
    By illuminator4 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th November 2008, 17:01
  5. Replies: 8
    Last Post: - 17th September 2006, 17:46

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