Will the Prop run fine with a 5Mhz resonator instead of 5Mhz crystal?
RobotWorkshop
Posts: 2,307
In all the examples i've seen using the Propeller chip I see that most people are using a 5Mhz crystal to run the prop. The only excepion was the module from DLP design that fed in 6Mhz instead. Has anyone tried using a 5Mhz resonator instead? If so, how well did it work? Just curious as to what all the options are.
Robert
Robert
Comments
I must have missed the note about the resonator. I'll probably stick with the crystal!
Now though, hearing that the prop does run ok with a 6Mhz crystal (96Mhz clock) that does bring up the question as to what other speed combinations are generally used and known to work. Has anyone here tried playing with this thing to see if it will run even faster. A while back there was a thread in the SX forum about successful overclocking of that chip. I'm sure someone is tring it with the prop and it would be cool to hear the results.
Robert
Post Edited (RobotWorkshop) : 2/8/2007 8:19:45 PM GMT
400_000_000 Hz· that's right 400 MHz
The prop I was testing it on must be a really good one (I doubt parallax would keep us in the dark if all props could do this).
PS: I did this with a 50 MHz SX resonator and PLL8X
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
NerdMaster
For
Life
By any chance did you let it run for a while (minutes) and note if it ran warmer than usual? (Time to get out the digital thermometer)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
h.a.s. designn
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Post Edited (Chip Gracey (Parallax)) : 2/8/2007 8:37:32 PM GMT
So, at the moment it sounds like there are at least three common (safe and sound) speed combinations in use for the crystal and multiplier:
5Mhz x PLLx16 = 80Mhz (Propeller DEMO & PropStick)
6Mhz x PLLx16 = 96Mhz (DLP prop module)
10Mhz x PLLx8 = 80Mhz (Hydra)
Any others?
I have 3 prop chips, I can try the others if anyone's interested... or doubts that most would run at this speed.
Pat
Post Edited (DogP) : 2/8/2007 8:47:33 PM GMT
Sounds like you just squeaked under the limits above. If you don't have any heat related problems and it stable let us know! It would be nice to build a small spreadsheet with all the known working combinations....
I think the list should be broken into two sections. The first would be all the speed combinations that fall completely within the specified limits of the Propeller chip. These would then be considered safe and valid to use for anyone planning on using the propeller in any kind of comercial design or industrial application.
The second half of the speadsheet can be for others that like to tinker with the Propeller and may have their own one off projects where a failure could be tolerated (no loss of life) but in most cases should work just fine.
Thoughts?
Pat
I know digital/logic but this sudden foray out of the chip and into the analogue world is a bit confusing at first.
I need a bit more than "just get a 5meg crystal and hook it up". For instance I just found from this thread that there is a farad measurement of crystals as well as the frequency.
Also will a 4.9xxMHz crystal run things that are timed for a 5Mhz?
There's a lot I don't know and I have tried to find out by reading the fine manual and google and stuff.
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I stand on the shoulders of giants
"Note that 80 MHz is the maximum internal speed, so don't get the idea that you can drop a 20 MHz crystal onto the Propeller and wind it up to 320 MHz – this is not going to work."
Sounds like it will work but its not going to run the program code any faster???
Most of the crystals in the range of interest (2-20MHz) are specified either for series resonance or for a parallel load capacitance of 12-32pf. You want the parallel load type. If you look on page 29 of the Propeller Manual, you'll see that there are 3 choices for an external crystal or resonator based primarily on the load capacitance. Pick the choice closest to your actual crystal specification, but keep in mind that these are small capacitance values and the length of the wires connecting the crystal to the Propeller's pins may add additional capacitance. Most 5-6MHz crystals work just fine with the XTAL1 setting. The main thing is to place the crystal as close as possible to the Propeller with short leads.
The _xinfreq constant declaration defines the actual crystal frequency assumed by a program. If you use the _clkfreq declaration instead to set the system clock frequency, the compiler will compute the other (_xinfreq) based on the _clkmode value set in your program. If you specify _xinfreq based on the actual frequency stamped on the crystal, programs should accommodate to the change. Demo programs and I/O drivers written by Parallax (and pretty much everything contributed so far) are written to adjust based on the supplied (or compiler computed) system clock frequency.
-Phil
I wouldn't be too sure about that one either. I was unable to do serial communciations when my Propeller was running off it's RCFAST internal resonator. What would happen is that the lower (earlier) bits would come through, but the higher bits would be garbled. I don't know if the ceramic resonators are as sloppy as the RCFAST resonator, but asynchronous serial does require precision timing. Suppose, for the sake of argument, that 10 bits are actually transmitted down the wire each time (8 bits, parity, maybe a start or stop bit too). If the clock is off by just 1%, the first bit will be sampled 1% off of center, the second will be 2% off center, then 3%, and so forth. The errors add up. If your resonator is off by just 5%, by the 10th bit that adds up to 50% of a bit period, and if you are trying to sample the center of a bit, going one-half bit period off to either side means you miss the bit entirely!
'Sorry for the ambiguity. By "resonator", I meant ceramic resonator — not the internal RC oscillator. The BASIC Stamps accommodate serial I/O just fine with their ceramic resonators. But, as you point out, an RC oscillator just won't cut it for serial I/O, unless there's a way to calibrate it.
-Phil
Almost got all the bits I need.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I stand on the shoulders of giants