Fake RTC 32768Hz (32kHz) crystal oscillators ? Or special setup for them to work?

Thread Starter

q12x

Joined Sep 25, 2015
2,245
Hope this helps.
Yes it does and thank you. Good lecture.
I did learn a lot with this little project I have here.

Some oscillator circuits will oscillate without the quartz crystal. Adding the quartz crystal will lock the oscillator into the crystal's resonance frequency.
This is exactly what Im counting on, for the self-oscilating driver without the crystal. I really hope it is stabilized by the crystal when is inserted in the cct. But Ill have to test it somehow...I have some ideas.

The loading capacitance is very critical for proper resonance.
Ive read about this issue as well. And Im absolutly sure what I have there is pure luck that is working right now since I have absolutly no means of observing how good the resonance is. How calibrated is. I just hope for the "good enough".
Im glad I push it so far. Im still in doubt if the cct I have is good. When I will divide 2^15 I will get my 1second. Then I will be able to say if this is good or bad, after that reading.
Thanks for your excelent answers. Very good.
 

MisterBill2

Joined Jan 23, 2018
28,687
First of all, none of us here are illiterate, and so profanity is not welcome at all!
If you have an oscillator capable of being tuned to that 32 KHZ frequency, and an AC voltmeter capable of measuring a voltage at that frequency, you can set the output to one volt and then connect the oscillator, the crystal, and the meter in series. When the oscillator is at the crystal frequency the voltmeter will either peak or dip. Then you can know that the crystal is OK but your oscillator circuit is not
But it seems like eventually you did get it to oscillate without that suggestion.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,245
Aaaah... I tried a couple more circuits and all failed. Even the one that it worked before, it failed as well and no sign of working of any kind.
Im starting to think outside the box, in the sense I might start to acquire ESD - electrostatic on my hands with the cold and dry atmosphere that is like this for 2-3 weeks. Maybe I indeed destroyed with my ESD, if not all, but at least the ones I tested the most and fingered them all the time... Also the IC's... they seem to work for simple tests. Also the crystals give signs they are working at random times. So if one of these components were totally broken, nothing might work, not even randomly.
- One good thing is that I boiled down the problem - on every circuit I build so far, the only problem is auto-oscilation of the crystal driver !!!! I can not make it auto-oscilate. Sometimes I managed to see it work because I kind of influenced the cct with my 50Hz in my body - moving my hand over the circuit and seeing the counter moving, or even making it auto-oscilate by some strange reason, but when I restarted the cct, it didnt work at all. So, it is extremly instable what I have here. I changed the resistor values, cap values, I even included variable capacitors (of unknown values) scrapped, and I tried probably 10 circuits all different and none worked - consistently.
- I believe my current osciloscope can see the oscilations if they are present. I finally understood the role of the flipflop gate in the output of the oscilator circuit - it is getting any kind of spiky signal the circuit might create, and transform it into a square wave decent enough for the counter and osciloscope to read it. I leave a 4027 FF on the board for a few days and understood its role in all this time.
- I even made a circuit with a transistor (from the pink picture) on a separate board that I had to solder all the components, and not insert into the breadboard holes. That didnt work either. I had the idea the breadboard is influencing this very sensible circuit... its too sensible for the breadboard.. although I seen it working in a few random times so, im 50-50 about breadboard to be the cause.
- I want to believe that my FNRISI osc (that will arive), will be able to read any small fluctuations in the crystal driver, and even poke inside the driver and see inside it what is happening... if it will not influence it of course... I will set the probe on x10 or even x100; it is my hope it will work as I imagine.
- I start to believe the auto-oscilating cct is a very fine adjusted cct. I am probably too brutal with it. Is another suspicion. Although I think Im very delicate in all that I did so far...
- I might miss something very important and I cant see it at all.
This is my experience with this oscilator circuit for 2-3 weeks probably...
Any ideas,impressions,guesses,theories ... are welcomed.
Thank you.
the circuit inside DL4YHF for Crystal Counter 4Mhz-48MHz
circuit inside DL4YHF for Crystal Counter 4Mhz-48MHz.jpgmodel_1.jpg
 
Last edited:

MisterBill2

Joined Jan 23, 2018
28,687
I have always wondered why folks connect the output to the feedback point in a Colpits oscillator circuit. Tapping into a critical part of the loop just does not seem like the best choice, because it affects the feedback and to some extent the frequency. Tapping the collector, or the drain of an FET, seems like s better choice.
Of course, if the oscillator has excessive feedback, done to assure instant starting, then probably the active device is being driven into cutoff, which will deliver a signal with more harmonic content.
For this particular discussion, the low frequency crystals are a bit different and do require circuits that differ from those used with crystals in the megahertz ranges. And some of the differences are very important.
Just because an individual has declared himself an expert does not insure against some errors on that person's part. Not naming names, but many may know who I mean.
 

MrChips

Joined Oct 2, 2009
35,331
I tested this circuit on a breadboard.

1701012647343.png

XTAL = 32768kHz
Rf = 10MΩ
Rs = 330kΩ
Ca = 27pF
Cb = 27pF

INV = MC14069 hex inverter, does not self-oscillate with no XTAL.
INV = MC14584 Schmittt trigger inverter, self-oscillates with no XTAL

Both circuits work with XTAL installed.
You can probe the gate output directly but not at the XTAL pins.
Add another inverter gate at the output to act as a buffer. Use a x10 probe on the oscilloscope.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,245
INV = MC14069 hex inverter, does not self-oscillate with no XTAL.
INV = MC14584 Schmittt trigger inverter, self-oscillates with no XTAL
I tried ANY Schmittt trigger gate, either inverter, NAND, all the cct's auto-oscilate. I am not absolutly sure if the fv is correct though... maybe is outputting the Gate oscilations instead of the Xtal !
Do measure with your osciloscope the output ... add a FF in the output to buffer and also to square the waveform. Or another inverter... all Im interested is if the fv is as the crystals you insert to test. Use diferent Xtal values - for testing purposes.

INV = MC14069 hex inverter, does not self-oscillate with no XTAL.
But with Xtal is auto-oscillating? How consistent?
 

MrChips

Joined Oct 2, 2009
35,331
1) Use CMOS gates only.
2) Schmitt trigger inverters will oscillate because of the negative feedback resistor Rs and fast switching characteristics.
The frequency is no where close to the desired frequency. The XTAL added will lock in at the XTAL resonant frequency.
3) Non-Schmitt trigger CMOS gates will not self-oscillate because the inverter is biased in the linear region. It becomes an inverting linear amplifier. It is used to excite and amplify the XTAL resonant frequency.
4) Low frequency crystals have different characteristics from high frequency crystals. Use 32kHz XTAL only.
5) The 32kHz XTAL locks in at the nominal frequency. It oscillates at a consistently stable frequency.
 

dl324

Joined Mar 30, 2015
18,527
I tried ANY Schmittt trigger gate, either inverter, NAND, all the cct's auto-oscilate.
That's because the circuit is an oscillator. From Nat Semi AN-118:
1701019687121.png
The R and C on the output just load the oscillator. When you add the crystal, you want the oscillator to lock onto the crystal frequency. Capacitor values can be critical.
 

Attachments

MisterBill2

Joined Jan 23, 2018
28,687
I have struggled with that sort of oscillator scheme using a CD4060, which claims to be intended for that application. Regular color burst crystals seldom seem to work, or it they oscillate it is not near the 3.579545 Mc it should be. So I appreciate the explanation, not sure how it applies to the DC4060, though.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,245
the AN-118 pdf file
I had this AN-118 pdf file saved already and I didnt read it in time. I did now so thank you for reminding it to me.
I also have this other one AN-340 with some extra explanations and circuits.
What your sugested AN-118 file --does Not mention-- is linking a Schmitt Trigger Oscillator with a Xtal. What is really showing is an RC Schmitt Trigger Oscillator but not a Xtal Schmitt Trigger Oscillator. Get my point?
The most important thing is telling, is using a 3 gate CMOS inverters and very specifically, not using the popular 2 gates CMOS inverters. This is very interesting information.
Also, if you pay attention, the ONLY Xtal circuit in the entire file, is the last one:
1701075145749.png
All the other ones are only RC in combination with CMOS inverters.
These are my observations and what I understood after reading the file.
When you add the crystal, you want the oscillator to lock onto the crystal frequency. Capacitor values can be critical.
That is a problem with the "rough" components and values I have here, and also no sensible or proper reading devices.
For this reason, I buy FNIRSI osciloscope ! I want a profesional one for a very long time... and now the time had come. I hope I made a good decision... Im still full of doubt.

A slight update:
Im waiting some specific components right now, to solve this mystery:
1701004394976.png

the CD4069 CMOS hex inverter is probably the few CMOS ICs I have... most I have are LS ! My idea is to make 4069 datasheet recomanded cct for Xtal and I expect it to fLLucking work. If not with the 32kHz then for sure with the 4MHz-40MHz ranges. And consistent and without bullshit like I have right now.
1701004519658.png

I am a bit skeptical and afraid of CMOS because their TERIRRIBBLLE ESD-electrostatic protection, damaging them [until] they are inserted in the cct. I hope these 4069 will be ok. I see they have HBM 500V which should be fine I guess... we'll see.
1701004888871.png


And then these 2
1701004465126.png

Those are SMD 32kHz crystals - diferent package ! And hopefully diferent results than these ones I have now.
This is my plan so far... see if you can think on another things to try until all these are ariving.
 
Last edited:

dl324

Joined Mar 30, 2015
18,527
Also, if you pay attention, the ONLY Xtal circuit in the entire file, is the last one:
I posted the application note in response to your observation that Schmitt inverters oscillated without the crystal. They do that because without the crystal, it's an oscillator with some loading.
I am a bit skeptical and afraid of CMOS because their TERIRRIBBLLE ESD-electrostatic protection, damaging them [until] they are inserted in the cct. I hope these 4069 will be ok. I see they have HBM 500V which should be fine I guess... we'll see.
Input protection can handle more than 500V, but you can generate significantly higher voltages. If you see/feel a spark, the voltage is likely thousands of volts. Devices can be damaged even after they've been inserted in a circuit. Some conservative designs include resistors in series with inputs (usually ones that are exposed on edge connections) as additional protection.

A grounding strap should minimize the potential for ESD damage. ESD mats can also help, even if not grounded. The key is to keep all pins of a device at the same potential. When I'm handling components away from my work bench, where earth ground isn't conveniently available, I'll connect my grounding strap to the ESD mat.

For decades, I just grounded myself before handling components, even when I was working with MOS device prototypes that had no ESD protection. Now I'm more likely to use a grounding strap if I'm handling more than a few devices.

Even if you're careful, you're eventually going to damage devices. In the past few years, I've damaged several 2N7000. None of them died outright, which was my misfortune. They all exhibited high leakage which took some time to troubleshoot.

CMOS devices that have been damaged, but not destroyed, by ESD are your misfortune. They're ticking timebombs.
 
Last edited:

dl324

Joined Mar 30, 2015
18,527
Aaaaaaaaan here it is in all its glory !
Congrats!

If you want better long term accuracy, you could power it from line voltage and use the 50Hz to generate your 1 second pulses. Then make a missing pulse detector (555 timer datasheet probably has the circuit) and switch to your crystal oscillator only when line power isn't available.

I did this with a digital clock I breadboarded in the late 1970's. I used a 5x7 matrix of discrete LEDs (only wired the ones I needed for numbers). I even designed the decoder circuit using 74xx SSI IC's. It was all just a learning exercise because I had only been out of school for a year or so and was still learning my trade.
 

Thread Starter

q12x

Joined Sep 25, 2015
2,245
Congrats!
thanks
a lot of unwanted lessons with this project ... I did had this idea about using the 50Hz from the mains myself some very long time ago, but .... I never try it and to be sincere Im not completely sure how to fish the fv from the mains and input it safely into a 5V IC like the 555. I guess.... with a voltage divider to get a 5V + a resistor after that to bring down the current as well...
I believe this cct will do it... but remains to calculate those values:
1701635540718.png
 

MrChips

Joined Oct 2, 2009
35,331
thanks
a lot of unwanted lessons with this project ... I did had this idea about using the 50Hz from the mains myself some very long time ago, but .... I never try it and to be sincere Im not completely sure how to fish the fv from the mains and input it safely into a 5V IC like the 555. I guess.... with a voltage divider to get a 5V + a resistor after that to bring down the current as well...
Use an optocoupler.
 

MisterBill2

Joined Jan 23, 2018
28,687
There was, perhaps 30years ago, an IC that would deliver one pulseper second using a color burst crystal for the time base. I actually used them to provide the time base for a counter that was part of an automotive product development project.
 

MrChips

Joined Oct 2, 2009
35,331
There was, perhaps 30years ago, an IC that would deliver one pulseper second using a color burst crystal for the time base. I actually used them to provide the time base for a counter that was part of an automotive product development project.
You might be thinking of the MM5369. This generates 60Hz from a 3.579545MHz color burst crystal.
The AC LINE frequency is even better for 24hr time keeping because the electricity utility generates an accurate number of cycles over 24 hours.
 

MisterBill2

Joined Jan 23, 2018
28,687
You might be thinking of the MM5369. This generates 60Hz from a 3.579545MHz color burst crystal.
The AC LINE frequency is even better for 24hr time keeping because the electricity utility generates an accurate number of cycles over 24 hours.
The AC line is not available in most automotive vehicle environments, or in portable battery powered applications. That is where the crystal plus divider is useful.
 

djsfantasi

Joined Apr 11, 2010
9,237
thanks
a lot of unwanted lessons with this project ... I did had this idea about using the 50Hz from the mains myself some very long time ago, but .... I never try it and to be sincere Im not completely sure how to fish the fv from the mains and input it safely into a 5V IC like the 555. I guess.... with a voltage divider to get a 5V + a resistor after that to bring down the current as well...
I believe this cct will do it... but remains to calculate those values:
I used a 6.3VAC transformer into a voltage divider for the 60Hz reference into a 7400 TTL series divider to get my 1Hz clock reference. I also used the same transformer with a 5.1V Zener diode for the TTL power supply. I was at Georgia Tech studying Applied Mathematics and was tutored in my electronics hobby by my EE friends.
 
Thread starter Similar threads Forum Replies Date
ronsimpson General Electronics Chat 5
schmitt trigger Off-Topic 2
Top