Simple program hangs up when I add Xfreq and clkmode
Potato
Posts: 18
The simple program:
'' File RP_Servo1.spin
CON
_xinfreq = 5_000_000
_clkmode = xtal1+pll16x
PUB LedON 'method declaration
dira :=1 'set P4 as output pin
outa :=1 'turn on LED
repeat 'endless loop
When I add the three lines:
CON
_xinfreq = 5_000_000
_clkmode = xtal1+pll16x
the Propeller seems to just not work, ie will not execute and turn on the led.
If I comment out _xfreq and _clkmode the program runs and turns on the led.
Any ideas?
'' File RP_Servo1.spin
CON
_xinfreq = 5_000_000
_clkmode = xtal1+pll16x
PUB LedON 'method declaration
dira :=1 'set P4 as output pin
outa :=1 'turn on LED
repeat 'endless loop
When I add the three lines:
CON
_xinfreq = 5_000_000
_clkmode = xtal1+pll16x
the Propeller seems to just not work, ie will not execute and turn on the led.
If I comment out _xfreq and _clkmode the program runs and turns on the led.
Any ideas?
Comments
-Phil
I think the bracketed "4" disappeared and caused the font to change size.
-Phil
So, if you are sure that the crystal works, this might be the reason.
It sounds suspicious, but I didn't want to bring that up before I knew more about his configuration. Hopefully, it's something more benign.
-Phil
When you put me on the trail of the PLL, I changed the PLL setup to PLL8X and the code works.
Somehow the sloppy wiring of the breadboard prevents the PLL16X from working.
I took the same code and ran it on a Parallax demo board and it works fine.
Thanks to all who answered.
Potato