I am new to using clocks for microcontrollers, and wanted to verify what I had planed for the XS1-L1. This is exactly what I am planning:
http://search.digikey.com/scripts/DkSea ... 04M5XCT-ND
Will this work, with CLK connected to the CLK pin of the XMOS chip? Could someone explain what is going on in this? I would like to understand it rather than just using it. The unbuffered inverter used is this:Question on Clock circuit
-
- Respected Member
- Posts: 395
- Joined: Tue May 18, 2010 12:25 am
Question on Clock circuit
You do not have the required permissions to view the files attached to this post.
-
- Respected Member
- Posts: 363
- Joined: Thu Dec 10, 2009 10:17 pm
Thats a basic cirucit used to drive crystals on all sorts of stuff. The crystal is basically a LC tank circuit that resonates at a certain frequency. So when you turn it on first it picks up noise and starts wiggling its output to put some energy in to the LC circuit. One its osculating the inverter just keeps it going by switching the output pin and keeping the crystal osculating and that pin is also the frequency output
There is also a similar inverter circuit that uses a resistor and cap to generate a frequency.
There is also a similar inverter circuit that uses a resistor and cap to generate a frequency.
-
- Respected Member
- Posts: 395
- Joined: Tue May 18, 2010 12:25 am
Crystal datasheets list a load capacitance, is this what the two caps connecting from the crystal to ground should be? If it says 18pf, should these two be 18pf?
-
- Respected Member
- Posts: 363
- Joined: Thu Dec 10, 2009 10:17 pm
Well those depend on the parasitic capacitances. But generally sticking something between 10 and 20 pF is fine.It also works no problem if you leave the caps out.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
You'd be better off buying a suitable oscillator module.
-
- Respected Member
- Posts: 395
- Joined: Tue May 18, 2010 12:25 am
I think I am going to try this with this crystal:
http://search.digikey.com/scripts/DkSea ... -9871-1-ND
and 33pf capacitors to ground.
What does the output on the clk pin look like? I have a 20mhz analog scope, so I may or may not be able to look at it.
http://search.digikey.com/scripts/DkSea ... -9871-1-ND
and 33pf capacitors to ground.
What does the output on the clk pin look like? I have a 20mhz analog scope, so I may or may not be able to look at it.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
Why are you so keen on building your own oscillator?
-
- Respected Member
- Posts: 395
- Joined: Tue May 18, 2010 12:25 am
Can you provide a link to an oscillator? All the modules I find are rather expensive.
If those are better to use, why do the xmos dev kits and the xtag use crystals?
Im not set on using one specific thing, as long as it is small and cheap. I need a L2 (Maybe two L1 depending on the soldering issue) to fit on a 50mmx30mm pcb.
If those are better to use, why do the xmos dev kits and the xtag use crystals?
Im not set on using one specific thing, as long as it is small and cheap. I need a L2 (Maybe two L1 depending on the soldering issue) to fit on a 50mmx30mm pcb.
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
Most of the XMOS boards use oscillator modules, AFAIK. They are quite cheap and very small..
-
- Respected Member
- Posts: 395
- Joined: Tue May 18, 2010 12:25 am
Oh, ok. I was under the impression that oscillators are the same as crystals. Thank you!