Shop OBEX P1 Docs P2 Docs Learn Events
10Mhz xtal _clkmode question — Parallax Forums

10Mhz xtal _clkmode question

BitsBits Posts: 414
edited 2012-07-13 16:49 in Propeller 1
Is this right? I am using a 10Mhz xtal.
CON
  _clkmode        = xtal1 + pll8x
  _xinfreq        = 10_000_000

Comments

  • hover1hover1 Posts: 1,929
    edited 2012-07-12 09:23
    Bits wrote: »
    Is this right? I am using a 10Mhz xtal.
    CON
      _clkmode        = xtal1 + pll8x
      _xinfreq        = 10_000_000
    
    

    Yes,

    That is correct for 80Mhz operation.

    Jim
  • pik33pik33 Posts: 2,397
    edited 2012-07-12 09:27
    I think yes, this is right.

    I use this combination of constants:

    _clkmode=xtal1+pll8x
    _clkfreq = 80_000_000
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-07-12 09:30
    Bits, yes, your configuration is correct.

    -Phil
  • BitsBits Posts: 414
    edited 2012-07-12 09:44
    Thank you.

    I am getting strange behavior when using full duplex object. From past projects this seemed to point to the wrong xtal settings being used.

    Ill keep looking into it. Thanks again.
  • shimniokshimniok Posts: 177
    edited 2012-07-13 07:24
    Just a thought... perhaps there's a bit of error in the bit rate due to different clock speed?

    http://www.wormfood.net/avrbaudcalc.php/
  • BitsBits Posts: 414
    edited 2012-07-13 14:06
    shimniok wrote: »
    Just a thought... perhaps there's a bit of error in the bit rate due to different clock speed?

    http://www.wormfood.net/avrbaudcalc.php/

    There should not be. Once I set the speed in the object the overall system speed should remain 80Mhz.

    In fact I found the problem, bad solder joint on xtal.
  • cavelambcavelamb Posts: 720
    edited 2012-07-13 16:49
    So it's running correctly now?
Sign In or Register to comment.