Shop OBEX P1 Docs P2 Docs Learn Events
Any issues with 10MHz xtal + PLL8x? — Parallax Forums

Any issues with 10MHz xtal + PLL8x?

Bill HenningBill Henning Posts: 6,445
edited 2009-05-16 03:18 in Propeller 1
I built another propeller board, and I'm getting some strange results... could it be due to using a 10MHz xtal and PLL8x? I thought I remembered the Hydra using 10MHz/PLL8x..

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers

Comments

  • mctriviamctrivia Posts: 3,772
    edited 2009-05-15 03:38
    I believe the PLL circuit runs at 16x all the time and taps off to get the slower speed. making a 10MHz crystal to fast for the prop to run.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My new unsecure propmod both 1x1 and full size arriving soon.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-05-15 03:50
    The Hydra and the Spin Stamp both use 10MHz crystals and PLL8X. I believe the PLL circuit is good up to 160MHz which is why this scheme works. The rest of the system clock circuitry is only good up to about 100MHz and that depends on operating temperature and supply voltage. There's a graph on the Propeller datasheet with this information.
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-05-15 04:30
    Thanks guys. I switched back to a 5MHz xtal for now.
    Mike Green said...
    The Hydra and the Spin Stamp both use 10MHz crystals and PLL8X. I believe the PLL circuit is good up to 160MHz which is why this scheme works. The rest of the system clock circuitry is only good up to about 100MHz and that depends on operating temperature and supply voltage. There's a graph on the Propeller datasheet with this information.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • MagIO2MagIO2 Posts: 2,243
    edited 2009-05-15 05:48
    Could you give more details about the problems you have?

    I run my breadboard with 10MHz and did not have any problems yet - besides not being able to run the turbulence demo or from time to time forget to adjust the constants of ObEx code correctly ;o)
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-05-15 13:31
    My SPI code for talking to the Winbond flash chips was misbehaving - it was missing seeing the "write completed" status in response to a status command. Weird. I am continuing to investigate today; my best guess is that I damaged the propeller on that board by briefly (accidentally) running it at 160MHz.
    MagIO2 said...
    Could you give more details about the problems you have?

    I run my breadboard with 10MHz and did not have any problems yet - besides not being able to run the turbulence demo or from time to time forget to adjust the constants of ObEx code correctly ;o)
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • SapiehaSapieha Posts: 2,964
    edited 2009-05-15 15:51
    Hi Bill Henning.

    I run one USB ProtoBoard with 15MHz x 8 and communicate with ViewPort very stable.
    And have many times started it with x16 with no problems to damage PropChip.
    one problem that become with RUN Propeller with 10MHz and biger is to bad capacitor nearest Propeller chip.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-05-15 18:59
    Hi Sapieha,

    Thanks! I was able to reproduce the SPI problem on an older hand-wired prototype which worked fine before, so it is probably a software issue.
    Sapieha said...
    Hi Bill Henning.

    I run one USB ProtoBoard with 15MHz x 8 and communicate with ViewPort very stable.
    And have many times started it with x16 with no problems to damage PropChip.
    one problem that become with RUN Propeller with 10MHz and biger is to bad capacitor nearest Propeller chip.
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • simonlsimonl Posts: 866
    edited 2009-05-15 20:12
    @Bill: I too use a 10MHz crystal - and have inadvertently run at 160MHz (for a short while) without problem. I have, however, found that I need the following settings for it to be reliable:
        _clkmode = [b]xtal2[/b] + pll8x                           
        _xinfreq = 10_000_000                                'Note Clock Speed for your setup!!
    
    



    Note the "xtal2" - I think it's down to the type of crystal used (?)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    “Before you criticize someone, you should walk a mile in their shoes. That way when you criticize them, you are a mile away from them and you have their shoes.” - Jack Handey.
  • Bill HenningBill Henning Posts: 6,445
    edited 2009-05-15 21:33
    Thanks, I will try that next time. Right now I want back to a 5MHz xtal.
    simonl said...
    @Bill: I too use a 10MHz crystal - and have inadvertently run at 160MHz (for a short while) without problem. I have, however, found that I need the following settings for it to be reliable:
        _clkmode = [b]xtal2[/b] + pll8x                           
        _xinfreq = 10_000_000                                'Note Clock Speed for your setup!!
    
    



    Note the "xtal2" - I think it's down to the type of crystal used (?)
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com - a new blog about microcontrollers
  • RaymanRayman Posts: 14,827
    edited 2009-05-15 22:44
    I played around a lot with the Oled96Prop...

    It also uses a 10MHz crystal.· It works fine with one cog at PLL16.· But, as soon as you try to do more cogs, it hangs.· Works just fine at PLL8 with·multiple cogs.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-05-16 01:31
    I have designed a product that uses the 10MHz. crystal and that product through testing so far has been working well. I use the setting that Simon pointed out. I have two more projects (one with PCBs ordered and another in the middle of design) that uses the 10MHz crystal as well. I use the 10MHz. crystal because I like the SMD packages I found and in brief research for small SMD crystal packages 10MHz is easier to find than 5MHz.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • hover1hover1 Posts: 1,929
    edited 2009-05-16 03:18
    Rayman said...

    I played around a lot with the Oled96Prop...

    It also uses a 10MHz crystal.· It works fine with one cog at PLL16.· But, as soon as you try to do more cogs, it hangs.· Works just fine at PLL8 with·multiple cogs.

    Ray,

    This very good to know. Up till now I have not used more than one cog on my uOLED96Prop with the 10MHZ xtal. I have bought 2 more from Dontronics that have the 8 MHZ xtal, so·they sould be OK.

    Thanks for the heads up!



    Jim
Sign In or Register to comment.