Crystal Type
hippy
Posts: 1,981
Starting from the position that I know absolutely nothing about crystal technology ... is there any particular type / characteristic of crystal that has to be used with the Propeller ?
Am I correct that just grabbing 'any old crystal' from a parts drawer isn't guaranteed to work ? That seems to have been my experience, but it was a bit hit and miss.
Using ProtoBoard, TV_Text and a separate cog updating a Hub variable count, "working" meaning a readable, incrementing display on screen -
At PLL16x, 'big can' 4.096MHz and 4.435572MHz worked, 3.579545MHz didn't, nor a 100MHz ( no PLL ).
Interestingly I got a 7.3728MHz to work at PLL16x but not well at PLL8x. With PLL8x the display was very shaky, barely readable, at PLL16x as perfect as the default 5MHz. That's the fastest I've had the Prop up to, 118MHz confirmed on relative timing to what I get at 5MHz+PLL16x, but I don't want to re-open the "how fast can a Prop run ?" debate, I'm more intrigued why it would work at 16x but not 8x.
Am I correct that just grabbing 'any old crystal' from a parts drawer isn't guaranteed to work ? That seems to have been my experience, but it was a bit hit and miss.
Using ProtoBoard, TV_Text and a separate cog updating a Hub variable count, "working" meaning a readable, incrementing display on screen -
At PLL16x, 'big can' 4.096MHz and 4.435572MHz worked, 3.579545MHz didn't, nor a 100MHz ( no PLL ).
Interestingly I got a 7.3728MHz to work at PLL16x but not well at PLL8x. With PLL8x the display was very shaky, barely readable, at PLL16x as perfect as the default 5MHz. That's the fastest I've had the Prop up to, 118MHz confirmed on relative timing to what I get at 5MHz+PLL16x, but I don't want to re-open the "how fast can a Prop run ?" debate, I'm more intrigued why it would work at 16x but not 8x.
Comments
With the 7.3728 MHz crystal, could you have given the crystal frequency wrong in the _XINFREQ statement? That could explain the "jitters". It's also a funny relationship with the color burst frequency. Sometimes that introduces jitter into the timing of the sync pulses and color burst frequency. The 16x PLL might give the video generation code enough speed to get around it while the 8x PLL would only give a clock around 60MHz.
As Mike says, it needs to be a parallel resonant fundamental frequency crystal.· But it's funny that you mention 7.3728 MHz... I have several of these myself, and have used them without any issues.· You do need·however to set the _XINFREQ statement if you want other timing dependant·applications to work correctly.· One thing though, the 7.3728 MHz is often used because it is Baud friendly allowing you to divide it down nicely for several standard Baud speeds.· That said, it may not·be as friendly with NTSC, PAL, or VGA signal·generation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Re-tested the 7.3728MHz and same results. Guess it must be some bad luck choice of frequency with respect to synching.
Unfortunately, while some are clearly marked, others seemt o use some magic code - Any idea where I can find what "X583K5MT" or "X683M63." etc mean ? No other marking, and Google isn't being particularly helpful.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
With the URL(below)You may find the Commonly used crystal frequencies list interesting:
en.wikipedia.org/wiki/Crystal_oscillator
7.3728 is on the list. It also backs up(not that he needed backing ) Beau statement.
i.e:
7.3728 UART clock (4
Easier said than done for us software types with no test equipment, then I remembered the Propeller has its own oscillator, and a PC sending serial is a good source of reasonably accurate timing, so voila ...
Plug a crystal in, send spaces at 9600 baud and the Propeller works out its own crystal frequency. The 3.xxMHz is working now ( poor contact last time maybe ). I suspect the ones which don't work are the wrong type or over 8MHz.
I wouldn't know even where to start on this one, but it sounds like a cool idea.
With all the talk of crystals does anyone happen to know of a good way to test them besides using the scope?
Robert
It looks to me that some 32kHz XTAL's are more expensive than 5MHz so it might ultimately be a pointless task but I think it's worth doing just for the sheer challenge of venturing into the unknown. Darn, another thing to add to my list if no one else takes up the challenge
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
So that looks simple enough to implement. I did read a comment about bandwidth and the Propeller may be too fast, in which case a bit-banged, in pin -> delay -> out pin inverter would dampen that down but could be a problem with an unknown system clock speed; that would be challenge, varying the throughput delay, if it were required.
The out pin could be used by another counter to do the actual elapsed time tick counting.
Anyone interested in taking up the challenge ? I don't have a scope so, while I'd be happy to try it, I'm not going to get far in tweaking R's and C's not being able to see what it's doing.
Can anyone see any potential problems with the above ideas before starting ? Any guesstimates on R and C value ?
Post Edited (hippy) : 4/21/2008 3:40:34 PM GMT
I've got some 32khz pulls in my drawer, and one still has the caps that came with it, but after that I'm lost.
If you are going to use a counter in feedback mode, to drive the crystal why would you need another counter? Just set FREQ to $00200000 and the counter will overflow once a second.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Anyway it seems to be working, sort of; not getting the expected values back and need to keep my finger on one of the cap legs to kick it into life.
How are your values different than expected?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Basically I'm going to have to put in the hands of someone with the tools to do the job.
Since fingers make such great Capacitors, not sure why nobody has started to sell them yet. I have a set of fingers that range from 1pf upto 10pf, then seem to run out of scope. Shall have to build a Prop based capacitor meter to measure my digits on.
Don't anyone try this technique at home, especially if poking around near a mains transformer!
Mike.
if I had a 32KHz crystal handy I'd try it myself.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔