1 Xtals and 2 propellers
Zap-o
Posts: 452
I was wondering if I could use 1 xtal and run 2 props off of it. Is there a down side to this? I am trying to save board space and cut cost a little.
Comments
1) You can't directly drive the 2nd Prop from the crystal pins of the 1st Prop. The likelihood is that, if you attempt to attach anything else to the crystal pins, it will stop oscillating.
2) You have to have a program in the 1st Propeller that specifically sets up one of the cog counters to produce the clock you want on one of the I/O pins. If the 1st Propeller reboots for any reason, the 2nd Prop will stop working until some cog starts up its cog counter to supply a clock. If you're running a terminal emulator or other "runs forever once started" sort of program on Prop #1, this need isn't really a problem.
You could probably use an oscillator to drive multiple Props, they' not expensive but they'd still cost more than 2 crystals.
edit -
Mike's suggestion of using a cog and io pin to generate the 2nd clock is fine; seems like a waste of resources, but if you end up with an unused cog and pin then what the heck.· Just remember the 2nd Prop requires the 1st to be running.
Post Edited (Agent420) : 8/18/2009 3:18:56 PM GMT
Edit: You can also make an oscillator with a crystal, 2 resistors, 2 capacitors·and two inverter gates which can drive the two props
Post Edited (dMajo) : 8/18/2009 3:38:24 PM GMT
And I guess I have to ask can I drive more than one extra prop chip in this way ???? use as many output pins for clocks as I Want to drive other prop chips?
dMajo does that circuit show 4 outputs?? or 2 do you know the values for outputting a clock of 5,Meg also if you don't mind can you state which IC chip to use?
Oh dMajo I should explain I can not see your hi res photo in case you have schematic values in there.
Post Edited (mikediv) : 8/18/2009 5:17:58 PM GMT
It is still a build option, P20 is brought out very near xinput, and can be jumpered instead of a crystal - but for now that is not an "officially supported" way of running Morpheus.
Theoretically, you could output up to 16 different clock frequencies to drive other propellers using the counters on all eight props, more if you use:
zero long 0
ones long $FFFFFFFF
then for the ones that don't need higher than 5MHz:
loop mov outa,ones
nop
mov outa,zero
jmp loop
In one cog will give you as many 5MHz signals as you want.
Ofcourse one Prop pin driving a hex inverter will drive six props...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+dual Prop SBC w/ 512KB kit $119.95, 2MB memory IO board kit $89.95, both kits $189.95
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
You can output as many different clocks as you have available cog counters and I/O pins. Each cog has two independent cog counters and there are 8 cogs.
dMajo's circuit shows 4 outputs using a hex inverter like the CD4069. C1 and C2 depend on the crystal you're using. They're made for specific capacitor values, typically 20pf or 32pf or sometimes lower.
Here's an application note: www.fairchildsemi.com/an/AN/AN-340.pdf
I have seen the attachment is not visible, but I can view it by clicking on it. the hires example have one output: it can drive up to 6/8 devices without problem. the hires1 is an expanded example showed once to mctrivia as he needs to drive 32 props at that time. basically have a look on the eg. TI website serch single/dual up to six unbufferred inverter gates IC: they have some specifically designed for oscillator pourposes. tomorrow I will have a look for you
BTW: with 30mA (prop pin) you can drive much more than one prop this way. of course you need separate pins if you need different frequency for each prop. Until you use power of 2 values (and do not introduce jitter) in counter registers the accuracy should be the same as the one of the main prop crystal (if I am wrong someone correct me please)
I'm sure these solutions are possible, but I wonder just how limiting space and money is to consider alternatives?· I might look into one Prop driving the other, but more than that and I think a 50 cent crystal might be the easiest / cheapest solution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sentient Sativa - The AI operating system with twice the cognition of KISS at half the price.
one of this will do the job:
Cheers
Now I have also this units CY22150KFC/CY22393FXC: when start again on this project I need to try if this programable clock generators are suitable for this design and accurate enough for prop video/vga purposes
I thought also to connect the 5MHz crystal to the cpld but then I need a way to multiply it by 32 (now x2 is a delay line and a xor). Maybe this circuit cascaded many times with calibrated delay lines to preserve the 50% duty cicle? I can not afford to a final divide by 2 because than I need to start with a x64 and I run out of the cpld max frequency. Any ideas on it from the community? (EDIT: target devices Altera MAX II or Xilinx Coolrunner II both max freq 200MHz and without PLL)
Post Edited (dMajo) : 8/19/2009 10:34:35 AM GMT
But I've also done thing just because, so whaddevar ;-)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hope this helps.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Is the slaved Prop able to generate color composite video without any trouble?
-Phil
Wish I could answer your question either way, yes or no. Sorry. I suppose if I had the time to try that there would be a way to check it out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· Propeller Object Exchange (last Publications / Updates)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
I am bread boarding a 2 prop circuit and I am going to try both methods ,"drive one prop with clock and use the prop ship to generate clock frequencies to drive the other prop chip " and since it was mentioned I am going to try the composite output to see if ti works. I also plan on trying dMajo thank you sir for all the info as well as the chip parts. Not to change the subject but I would love to see a topic on constructing a multi prop proto board with some software examples the hardware seems easy enough but once done what can we do with it besides having lots of I/O
BTW, I've replaced my lab CRT TV monitor with a cheap flat screen TV that can do both NTSC and VGA. I've found that it's much less forgiving of minor timing discrepancies than he old set, producing "zipper" artifacts (a.k.a. the "creepy crawlies") where none existed before. What's interesting, though, is that, by lying a little about _xinfreq, I can pretty much eliminate them.
-Phil
I can only think that this could happen because of the three serial pll (one in the first prop, one in the second master clock and the third in the counter-video hardware). Maybe in such apps can help to provide the second prop directly with a 80M clock avoiding so many cascaded jitters? Nedd to try, actually just a consideration.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· Propeller Object Exchange (last Publications / Updates)
I wonder if the chroma crawl was always there but through focus problems there were blissfully hidden. The LCD will light up extra pixels on discete columns and make it look worse.
The crawl can never be got rid of, just hidden as best as possible with careful choice of subcarrier/horizontal frequencies, 1135/4 x Fh +25Hz for pal. This gives an eight field repition and the appearance of one complete crawl from top to bottom of frame once every 4 seconds. OK for moving pics, visiable on the green/magenta lurch in the centre of colour bars
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
What might work better is to generate a 10MHz clock and only use PLL8x in the second prop - dividing the second prop's PLL output by two might get rid of some of the jitters. If you try this, make sure you use NCO mode on Prop1's counters.
When I have some time I will try this again... the first time I did it I was fairly new to the counters, but with the Morpheus XGA and SVGA bitmap drivers, I've become a lot more familiar with them [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheus & Mem+dual Prop SBC w/ 512KB kit $119.95, 2MB memory IO board kit $89.95, both kits $189.95
www.mikronauts.com - my site 6.250MHz custom Crystals for running Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· Propeller Object Exchange (last Publications / Updates)
Divide by 2, phase noise improves by 10*log(1/2) = -3 dB
Multiply by 2, phase noise degrades by 10*log(2) = +3 dB
In the real world bad practices in division can reduce jitter less than expected or actually increase jitter. Micrel, for example www.micrel.com makes some nice high-speed low jitter dividers (good luck trying to actually buy their components through).
Just for fun, here's an online phase noise to jitter calculator for you:
www.jittertime.com/resources/pncalc.shtml
Yikes! Stuff like this off the top of my head - time to get a life =|
Post Edited (Drone) : 8/23/2009 11:46:06 AM GMT