What's the real deal with IFBD?
![Zoot](https://forums.parallax.com/uploads/userpics/559/nW4UO23UEIWZ4.png)
I was troubleshooting a project that ran fine with internal 4MHZ osc, OK with 20MHZ, and failed with 50MHZ (likely culprit -- vicious noise on osc./supply circuitry from a motor H-bridge).
In working with different osc. layouts, settings, etc. I realized I had never contemplated IFBD. On all my own SX projects I usually put a 10K resistor between OSC1 and OSC2 and have no trouble at 20MHZ or 50MHZ.
But in reading over the datasheet, it would seem that if I do use the external resistor than I should use the IFBD device setting? Is that right? Does it really matter? I *never* see IFBD in posted code (that I can remember) in projects from JonnyMac and others.
Is this also why there is no external OSC1/OSC2 resistor on pre-fab boards like the SX Protoboard? Because the internal feedback resistor is presumed to be in use?
??
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
In working with different osc. layouts, settings, etc. I realized I had never contemplated IFBD. On all my own SX projects I usually put a 10K resistor between OSC1 and OSC2 and have no trouble at 20MHZ or 50MHZ.
But in reading over the datasheet, it would seem that if I do use the external resistor than I should use the IFBD device setting? Is that right? Does it really matter? I *never* see IFBD in posted code (that I can remember) in projects from JonnyMac and others.
Is this also why there is no external OSC1/OSC2 resistor on pre-fab boards like the SX Protoboard? Because the internal feedback resistor is presumed to be in use?
??
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Comments
·
A resistor placed between XO amd XI, in combination with the internal pin capacitance, forms a low-pass filter. This filter slows down the clock edges, which significantly reduces voltage-droop and ground bounce on the power supply rail and helps to reduce jitter.· At 50MHz (10nS pulses) there may be enough attenuation from the low-pass filter that is formed that the crystal does not have enough energy to continue oscillating.· It is possible for a crystal oscillator to operate without an external resistor or with the IFBD turned off, but the oscillator will not be as stable.
·
My guess is that parasitic board capacitance is your culprit more than the IFBD resistance (approximately 1 Meg) ... A 10k resistor seems a little low to me.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
- *if* I have an external resistor between OSC1 and OSC2 (I always do), *should* I turn off the internal resistor, or does it not matter?
- if 10k sounds low, what sounds good? And then why does Jon publish so many SX schematics with a 10K resistor there for 20MHZ or 50MHZ projects?
- but now that I read various docs more closely, it appears that the internal resistor, if enabled, is only applicable to the internal RC oscillator (i.e., you could use the internal RC clock, but still provide your own external fb resistor). So I think that answers that. Note that the SX-Key manual does not state this explicitly, but the SX28 datasheet, anyway, does.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Modesty becomes you, but, alas, you are
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
"- *if* I have an external resistor between OSC1 and OSC2 (I always do), *should* I turn off the internal resistor, or does it not matter?"
You effectively place a 1Meg resistor in Parallel with your external resistor by leaving the IFBD option turned "on".
As far as 10K or any other value... this largely depends on the IC that you use.· The frequency is also a factor (10MHz,20MHz, 50MHz, etc.) 10K may be just fine at 50MHz.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 9/4/2008 11:30:39 PM GMT
Is it
device ifbd
?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php