PDA

View Full Version : Should this happend ?



BTX
05-14-2008, 08:17 AM
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[20]:=1

repeat
!outa[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.

bambino
05-14-2008, 08:39 AM
BTX, Have you tried it using RC_Fast?

Mike Green
05-14-2008, 08:49 AM
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.

BTX
05-14-2008, 09:12 AM
Thanks guys..
I tnought that could be avoided....

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

Alberto.