Micrathene
05-30-2010, 08:21 PM
Does anyone have ideas on how sensitve the prop is to crystal type and placement?
In a previous thread I asked questions about breadboaring up a basic prop kit, and that all worked well - but now I'm adding a crystal to it, because basically everything on the object exchange looks like it needs the standard 80MHz setup.
Using the standard ConstantBlinkRate LED demo, straight from the propeller education examples, and varying the clock setup between RCFAST/RCSLOW and the various PPL options, I have massively different results. Everything functions more or less as expected using the internal oscillators, and any innaccuracy in 1hz blinking is understandable due to the tolerances of the internal oscillators. What confused me is that when using the external crystal put through a 4x PLL, the LED will come on...... and remain on for a few minutes, and then go off again, and repeat like that. The 8x multiplier makes this cycle take place more slowly (rather than more quickly, as you would expect) - and with the full 16x PLL - the LED never comes on. Despite the fact that the circuit works just as expected when the prop is operating on the internal oscillators. The crystal I used is normal 5MHz one from http://www.bitsbox.co.uk/crystals.html. I've read about load capacitance or whatever for the Prop, but sort of assumed it was not too too significat, and that it would only matter for overclocking or people who really cared - my logic was that if a specific type of crystal were necessary, it would have been more widely known.
Again, as a debugging aid, I tried to run a program which would put out some data over a serial port - I used the GPSFloatDemo from the object exchange for this (really awesome looking code by the way), but with the clock set to RCFAST - text came out over the serial port, but it was garbled. Can the prop not do accurate serial comms using the internal oscillators? But that can't work, as it's my understanding that the prop is in RCFAST mode to load spin off of the proptool.
Hopefully that made sense, and someone with greater knowledge of the arcane lore of high frequency crystals will be able to explain. As far as I know, my prop is properly decoupled with some small ceramic caps across both of the power pins (using the DIP40 version). The crystal is located as close as possible to the XI and XO ports of the prop (are crystals polarity sensitive when it comes to XI and XO)
Do these issues look solveable, or should I pack it in and buy a proper devboard? Trying to save a bit of money by breadboarding it out myself.
Specific issue, I know, but googling failed badly, and it is very frustratign to be so close to having everything working and ready to crank out some VGA, but failing at the last hurdle......
Thanks for reading!
In a previous thread I asked questions about breadboaring up a basic prop kit, and that all worked well - but now I'm adding a crystal to it, because basically everything on the object exchange looks like it needs the standard 80MHz setup.
Using the standard ConstantBlinkRate LED demo, straight from the propeller education examples, and varying the clock setup between RCFAST/RCSLOW and the various PPL options, I have massively different results. Everything functions more or less as expected using the internal oscillators, and any innaccuracy in 1hz blinking is understandable due to the tolerances of the internal oscillators. What confused me is that when using the external crystal put through a 4x PLL, the LED will come on...... and remain on for a few minutes, and then go off again, and repeat like that. The 8x multiplier makes this cycle take place more slowly (rather than more quickly, as you would expect) - and with the full 16x PLL - the LED never comes on. Despite the fact that the circuit works just as expected when the prop is operating on the internal oscillators. The crystal I used is normal 5MHz one from http://www.bitsbox.co.uk/crystals.html. I've read about load capacitance or whatever for the Prop, but sort of assumed it was not too too significat, and that it would only matter for overclocking or people who really cared - my logic was that if a specific type of crystal were necessary, it would have been more widely known.
Again, as a debugging aid, I tried to run a program which would put out some data over a serial port - I used the GPSFloatDemo from the object exchange for this (really awesome looking code by the way), but with the clock set to RCFAST - text came out over the serial port, but it was garbled. Can the prop not do accurate serial comms using the internal oscillators? But that can't work, as it's my understanding that the prop is in RCFAST mode to load spin off of the proptool.
Hopefully that made sense, and someone with greater knowledge of the arcane lore of high frequency crystals will be able to explain. As far as I know, my prop is properly decoupled with some small ceramic caps across both of the power pins (using the DIP40 version). The crystal is located as close as possible to the XI and XO ports of the prop (are crystals polarity sensitive when it comes to XI and XO)
Do these issues look solveable, or should I pack it in and buy a proper devboard? Trying to save a bit of money by breadboarding it out myself.
Specific issue, I know, but googling failed badly, and it is very frustratign to be so close to having everything working and ready to crank out some VGA, but failing at the last hurdle......
Thanks for reading!