- Tue Dec 03, 2013 1:41 am
#166159
I'm trying to build a RTC clock driver for a CPLD board using a 32.768kHz tuning fork and a Pierce Oscillator, but I'm having trouble getting the component values to work out right, and I'm currently not getting any oscillation out of it. I don't have access to an oscilloscope right now, so I can't see what's going on on the clock signal line in detail, but it seems to be holding at a logic high, so to start out, I just want to figure out if I even chose reasonable values for the various components of the circuit, because after doing the math, several of the components I ended up with seem kind of extreme to me. I've looked at several references, but this document has been the best at laying out the component selection. The inverter I'm using is the TI SN74LVC1GX04, and the crystal is rated for a load capacitance of 6pF. According to the inverter's datasheet, the input capacitance is 7pF max. So the external load capacitors are calculated by the formula:
Next up, RF is pretty straightforward. From everything I'm read, the value is not critical, and the document I linked suggests 10-15Mohm for 32.768kHz. 10Mohm is the biggest I have on hand, so I'm going with that.
Finally, RS is calculated by the formula:
Am I just going crazy, or did I miss something in the math somewhere?
Code: Select all
so for my 6pF crystal, and assuming a stray capacitance of 2pF, I get -(C1 + Cin)(C2 + Cout) -
Cload = | ---------------------- | + Cstray
- C1 + Cin + C2 + Cout -
Code: Select all
with C1 = C2, that works out to exactly 1pF... which seems really low, compared to the ~20-30pF I typically see suggested. -(C1 + 7pF)(C2 + 7pF) -
6pF = | --------------------- | + 2pF
- C1 + 7pF + C2 + 7pF -
Next up, RF is pretty straightforward. From everything I'm read, the value is not critical, and the document I linked suggests 10-15Mohm for 32.768kHz. 10Mohm is the biggest I have on hand, so I'm going with that.
Finally, RS is calculated by the formula:
Code: Select all
so 1
------------
2(pi)(f)(C2)
Code: Select all
which comes out to ~4.857Mohm... which seems awfully high, considering that earlier in that document, they talk about tuning fork crystals needing "large" values for RS >10K, so if 10K is "large" then 500x that is... well... REALLY large. 1
--------------------
2(pi)(32.768kHz)(1pF)
Am I just going crazy, or did I miss something in the math somewhere?