Shop OBEX P1 Docs P2 Docs Learn Events
Should this happend ? — Parallax Forums

Should this happend ?

BTXBTX Posts: 674
edited 2008-05-14 02:12 in Propeller 1
Hi all.

I've waste many time, looking why some of my code wont work.
Until I discovered this:

ie. you have:

    _clkmode = xtal1 + pll16x                           
    _xinfreq = 5_000_000
   
PUB Main | i
dira[noparse][[/noparse]20]:=1

repeat
  !outa[noparse][[/noparse]20]
  waitcnt(clkfreq + cnt)



If you have some line open in the PCB, of the XTAL pins, propeller IDE will compile it, load it in RAM/EEPROM and execute ....but the code wont work.
Should not there be a way to detect this ?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.

Alberto.

Comments

  • bambinobambino Posts: 789
    edited 2008-05-14 01:39
    BTX, Have you tried it using RC_Fast?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-14 01:49
    There's no way to test for this other than to load a program into the Propeller that uses the PLL. If the download process works, then the Propeller basically is working (using the built-in RCFAST clock). If the PLL program doesn't work, then the PLL is broken.

    There are no signal paths on the chip that would allow for testing the PLL while running under the RCFAST clock.
    ·
  • BTXBTX Posts: 674
    edited 2008-05-14 02:12
    Thanks guys..
    I tnought that could be avoided....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Regards.

    Alberto.
Sign In or Register to comment.