How to calc max debug rate?


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156

    Default How to calc max debug rate?

    I'd like to know how to determine the maximum DEBUG baudrate using a PIC18F2420 running on an INTERNAL 8 MHz oscillator? Can someone help me out here?

  2. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You can run debug at 38400 using 8 mhz, but I don't know the calculation.

    Walter
    http://www.scalerobotics.com

  3. #3
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I was hoping for 57600, but knew it would be close. I never know until I try, but can't do that until tomorrow. I just dont have the space on this board for an external xtal/osc.

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Turn on the PLL to get a 32MHz clock?

  5. #5
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I've been reading that the clock frequency is not as stable and may need to be tuned over time. In this application, it's going to be pretty inaccessable and I need to be able to trust that the serial port will work reliably over time, so I've pretty much decided against the PLL.

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


    Did you find this post helpful? Yes | No

    Default

    I've been reading that the clock frequency is not as stable and may need to be tuned over time.
    You are using the internal already, so PLLing will not change that.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    I see now that you are right! I remembered that, but thought that it was PLL related NOT the entire internal osc block. The memory is the second thing to go. Guess I'll do some temperature tests this week.
    Last edited by circuitpro; - 27th September 2010 at 07:27.

  8. #8
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    scalerobotics
    You can run debug at 38400 using 8 mhz, but I don't know the calculation.

    Walter

    What calculation? It's just:

    OSC 8
    DEFINE DEBUG_BAUD 38400

    Dave Purola,
    N8NTA

  9. #9
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dave View Post
    What calculation? It's just:

    OSC 8
    DEFINE DEBUG_BAUD 38400
    Yes it is. But I was talking about "How to calc max debug rate?" I do not have that calculation. From what I have read Debug is smaller and faster than Serial, but I don't see any speed tables for debug anywhere.
    http://www.scalerobotics.com

  10. #10
    Join Date
    Dec 2008
    Location
    Los Angeles, CA
    Posts
    156


    Did you find this post helpful? Yes | No

    Wink

    Just for the record, it would be nice to have a table, formula, or rule-of-thumb to follow so you can know if debug will work at a particular baud rate without having to build the design first.

Members who have read this thread : 1

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