Shop OBEX P1 Docs P2 Docs Learn Events
Is my crystal bad? — Parallax Forums

Is my crystal bad?

Matthew HMatthew H Posts: 23
edited 2008-07-14 01:28 in Propeller 1
I just started working with a new Proto Board today and had some problems programing it. I can download to both RAM and EEPROM but there is a problem because the programs don't seem to work unless I don't use the external crystal.

I am pretty shore of this because this works:
CON
  LED = 7          
Pub Main
  dira[noparse][[/noparse]LED]~~
  Outa[noparse][[/noparse]LED]~~
  repeat
    !outa[noparse][[/noparse]LED]
    waitcnt(cnt + 3_000_000) 




and this dose not:

CON
  _CLKMODE = XTAL1             
  _XINFREQ = 5_000_000         
   LED = 7   
Pub Main
  dira[noparse][[/noparse]LED]~~
  Outa[noparse][[/noparse]LED]~~
  repeat
    !outa[noparse][[/noparse]LED]
    waitcnt(cnt + 3_000_000) 




I am fairly new to using the propeller so I may be just making a simple mistake. Please let me know what you think is wrong.

Matthew

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-07-13 20:42
    Try this..

       _clkmode  = xtal1 + pll16x
       _xinfreq  = 5_000_000
    
    




    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card? - PropDOS
    Need a part? Got spare electronics? - The Electronics Exchange
  • Matthew HMatthew H Posts: 23
    edited 2008-07-13 20:49
    Thanks OBC, but that dose not seem to work either.

    Matthew
  • LeonLeon Posts: 7,620
    edited 2008-07-13 21:02
    Check the connections between the crystal and the Propeller. It's rare for crystals to fail but bad solder joints are quite common.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • Matthew HMatthew H Posts: 23
    edited 2008-07-13 22:18
    When I check the connections with my multimeter, it showed they were good so I turned the board back on and the LED started blinking much faster. So I downloaded the program again and it works!

    Thanks for the help, Matthew
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2008-07-14 01:28
    I believe the protoboard crystals are in a socket. They may come lose during shipping and transport and handling. Perhaps while checking your connections it was pushed in. You did the right thing with the program to troubleshoot this. Good job!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.

    www.brilldea.com·- Prop Blade, LED Painter, RGB LEDs, uOLED-IOC
    www.sxmicro.com - a blog·exploring the SX micro
    www.tdswieter.com
Sign In or Register to comment.