EEVblog 1614 - Circuit Design TIP: Crystal Oscillators

Ғылым және технология

You can easily replace any chip crystal circuit with a dedicated external crystal oscillator. Reducing your BOM count, and making your design easier, smaller, and potentially more robust.
Cyber City Circuits: / @cybercitycircuits
/ 1788651197055827992
Forum: www.eevblog.com/forum/blog/ee...
If you find my videos useful you may consider supporting the EEVblog on Patreon: / eevblog
Or with crypto:
BTC: 33BsprBQNBtHuVzVwDmqWkpDjYnCouwASM
ETH: 0x68114e40ff4dcdd384750500501e20acf3875f8c
BCH: 35n9KBPw9T7M3NGzpS3t4nUYEf9HbRmkm4
USDC: 0x68114e40ff4dcdd384750500501e20acf3875f8c
LTC: MJfK57ujxy55su4XicVGQc9wcEJf6mAoXF
Web Site: www.eevblog.com
Store: eevblog.store/
Other channels:
EEVblog2: / eevblog2
EEVdiscover: / eevdiscover
T-Shirts: teespring.com/stores/eevblog
#ElectronicsCreators

Пікірлер: 179

  • @Xaelloss
    @Xaelloss20 күн бұрын

    Suggestion to probe the crystal with a x1 probe reminded me of a story when a bloke had his ATMega 169 device RTC drift at least 1 hour per year with a precision 32 kHz crystal but when he probed it, he would see nothing wrong. Ultimately this was solved by adding some extra caps, against the actual datasheet. Turned out his oscilloscope probe would introduce just enough stray capacitance into the oscillator to stabilize and show correct frequency! Atmel would later confirm that to have been a hardware bug.

  • @EEVblog

    @EEVblog

    20 күн бұрын

    Learned that at my first job at 18yo. Classic.

  • @smayds

    @smayds

    20 күн бұрын

    Damned stray capacitance, absolute bane of the electronic engineer's existence!!

  • @pentachronic

    @pentachronic

    20 күн бұрын

    We used to add a trimmer cap on Xtals so that we could calibrate them. We needed high accuracy timers for logging events. We would time them in software and give the %error.

  • @NullReference119

    @NullReference119

    19 күн бұрын

    IIRC Paul Carlson, of Mr. Carlson's Lab, mentioned this in regards to the old school oscillator sections in radios before crystals were common. Those were often tuned using measured caps and might even use gimmicks (two pieces of wire twisted together for a bit of pf) for extremely fine tuning. I don't remember exactly what he said, but I do remember that you had to be extremely careful when coupling in a probe to align them because more often than not if you weren't aware of the issue you'd align the circuit to only work with the probe attached. OT: Dave does anyone do a version of a gimmick in circuit anymore? Or are they rightfully replaced with pots?

  • @michaelmoorrees3585

    @michaelmoorrees3585

    8 күн бұрын

    As a youngster, back in the late 1970s, experience this when testing TTL circuits. It wasn't working, but when probing it with the scope, it suddenly worked. In those cases, it was often a timing "race" problem.

  • @robpayne1956
    @robpayne195620 күн бұрын

    Any short cut advice from you Dave is absolutely wanted and needed by all of us amateur Hobbyists and any advice from you is something I need for sure and I'm confident I am not the only one. Thank you Dave for all your learned advice and please continue any of these little tutorials you can come up with. You have taken me from what the hell does a transistor do anyway to actually building something that actually works for what I intended however simple that may be. Thanks Dave for all you do.

  • @anuragmahajan5919

    @anuragmahajan5919

    16 күн бұрын

    I absolutely agree! They don't teach such stuff in grad school

  • @MishTheMash
    @MishTheMash20 күн бұрын

    This kind of video is like crack: Short, detail nuanced, classic Dave.

  • @EEVblog

    @EEVblog

    20 күн бұрын

    Should I charge by the gram?

  • @MishTheMash

    @MishTheMash

    20 күн бұрын

    @@EEVblog Magic Smoke dealer, just to keep above RBA interest rise.

  • @bryede

    @bryede

    17 күн бұрын

    However, if you're starting out with crystals, you're probably looking for how the load caps relate to the crystal capacitance. A lot of people just guess at it but it can throw your accuracy off.

  • @kti5682

    @kti5682

    17 күн бұрын

    ​@@bryedeYeah I just encountered a situation where I discovered an inexplicable frequency offset.

  • @_S13_
    @_S13_10 күн бұрын

    Yes these tips are really great! Keep them coming. Here is a free tip for you that might be interesting: How to convert any fixed voltage regulator with external feedback resistors in to an adjustable regulator that can be easily controlled with an MCU. Applies to switching regulators as well. You can do this by biasing the feedback pin with a DAC (or a filtered PWM + buffer from the MCU for example) and a resistor. The resistors sits in between the DAC and the feedback input of the regulator. It then becomes a fairly simple resistor network calculation together with the 2 existing feedback resistors, and thus you can calculate the output swing of your regulator.

  • @rockpadstudios
    @rockpadstudios20 күн бұрын

    I like the short circuit tips (not short circuits)

  • @fedimakni1200
    @fedimakni120020 күн бұрын

    We need more circuit design tip videos. 🎉🎉🎉

  • @mikeselectricstuff
    @mikeselectricstuff20 күн бұрын

    Important to remember that MCU sleep modes won't work properly with an external osc (you could manually disable an external osc in software, but fiddly as you'd need to switch between internal RC and external when sleeping and waking)

  • @todayonthebench

    @todayonthebench

    19 күн бұрын

    Yes, a lot of MCU are not going to go to sleep if feed by an external oscillator, a design oversight in my own opinion. It isn't hard to design an MCU capable of gating the clock from entering various resources during sleep mode. Effectively toggling these features off. And/or adding the ability for the clock distribution to divide down the clock to something sufficiently slow for idle operation. Same for switching over to internal RC oscillators during sleep. There is many ways to skin this cat, but it is a bit silly that a lot of MCUs can't really do any of this on their own.

  • @mikeselectricstuff

    @mikeselectricstuff

    18 күн бұрын

    @@todayonthebench You'd still need to power down the external osc, but might be nice if the MCU had an enable signal to do this automatically in sleep

  • @todayonthebench

    @todayonthebench

    17 күн бұрын

    @@mikeselectricstuff Having the ability to configure an IO pin for enabling an external oscillator would be a wonderful feature. I were though thinking more of the times one distributes the same system clock between multiple chips and still want to put the MCU to sleep while other stuff runs. However the above idea of enabling an external oscillator still would work, more or less just a gate needed, but could be nice to integrate that "gate" onto the MCU. (now technically the first clock pulse could be corrupt, so a synchronized delay to skip the first cycle would be ideal, something a simple D-latch almost could accomplish on its own, just need a tiny bit more logic.) But in the end. External oscillators/clocks and MCU sleep modes are rarely a trivial combination, even if relatively simple logic could make it a trivial task.

  • @crackwitz
    @crackwitz20 күн бұрын

    Short little circuit design tips? Much appreciated!

  • @todayonthebench
    @todayonthebench20 күн бұрын

    To answer the question of "Why are these so big?" The crystal physically vibrates, it is piezoelectric. Similar to a tuning fork, the oscillation frequency is dependent on two factors, physical dimensions and the speed of sound in the material. So lower frequency more or less inherently means larger crystal. But how can the crystal oscillator packages be so much smaller then? The crystal oscillator packages are smaller since they don't actually resonate at their output frequency. But rather at some multiple of said frequency. Halving a frequency is a simple D-latch away. And this is sometimes even done on a lot of chips relying on an external crystal. (A chip might only run at up to 10 MHz, but can use a 40 MHz crystal, or other external clock signal.)

  • @larzblast

    @larzblast

    19 күн бұрын

    The one thing that Dave didn't answer. Hahahah. Nice one!

  • @todayonthebench

    @todayonthebench

    19 күн бұрын

    @@larzblast Well, someone has to actual answer the question. Tangential answers aren't answers to the initial question, but are rather trivia that could be potentially useful.

  • @SpeccyMan

    @SpeccyMan

    19 күн бұрын

    Surely it is the crystal itself that vibrates. Not, as you put, the "crystal oscillator."

  • @todayonthebench

    @todayonthebench

    19 күн бұрын

    @@SpeccyMan True. Slight phrasing error there, but hopefully understandable.

  • @jcc4tube

    @jcc4tube

    19 күн бұрын

    What about 32.768 Khz watch crystals? They seem tiny compared to typical Mhz crystal cans but they are low frequency. Are they using some other vibration mode or something?

  • @_2N2222
    @_2N222220 күн бұрын

    Of course I like such design tips! Although I knew that it is typically possible to drive such an oscillator circuit with an external clock signal, I was not aware of the pitfall that the enable signal may short the X1 pin. I learned something.

  • @menash54
    @menash5411 күн бұрын

    Short design tip video are great! Hope to see more. I like the long, deep diving video too, but always have the time

  • @troutrou0
    @troutrou020 күн бұрын

    Yes Dave, I just love these little design tip video, hoping to see many more of them ! 🙂 Well that particular one I already knew about as it's often stated by the manufacturers themselves in their datasheet.. Generally speaking I like whatever video where you convey practical information to design stuff.. "Fundamental Fridays", "Top 5 Jelly bean XYZ", that kind of thing. Being a failed engineer, I never got a job in R&D and eventually changed career completely to work in aviation now, nothing to do with electronics anymore. So I have zero real world, professional experience in designing stuff. So to me the greatest added value of your channel is that people like me can benefit from real world, practical knowledge and experience from an actual design engineer, soak as much practical info as possible so as to somewhat compensate for my personal lack of experience. Obviously there is more to your channel than that. In my case it was your enthusiasm for electronics that revived my interest 12 years ago or something, which led me to build my first decent lab, acquire lots of gear and start living the passion fully at long last ! I am 46 now, and feel I enjoy at last what's been my passion since I was a boy. Never too late ! :-)

  • @horiamorariu
    @horiamorariu18 күн бұрын

    Very useful condensed material. Thanks Dave! And, for designers that actually need a crystal oscillator, remember that the value of the load capacitors is very important, if you want to achieve precision. A tip here (and I do not make any advertisement): use the latest version of Saturn PCB. It includes the Crystal Load Capacitors and PPM calculator. Cheers!

  • @derekloudon8731
    @derekloudon873116 күн бұрын

    These short videos are a very helpful refresher to us old farts.

  • @chizzt
    @chizzt20 күн бұрын

    Just a wee note. Microchip's PIC MCUs often offer the choice of FS or non FS crystal oscillator options. The FS stands for 'Full Swing' and gives you a rail to rail swing on the X1/X2 pins. In non FS mode the voltage on the pin goes up and down just enough to operate the Crystal. Advantages and disadvantages to each mode, in terms of current, dissapation, noise ,etc. You takes your choice.

  • @kevincozens6837
    @kevincozens683715 күн бұрын

    This is useful information for young players and reminders for the not so young. When dealing with X1 and X2 you must pay close attention to the datasheet. Some microprocessors or microcontrollers, for example, require the grounding of either X1 or X2 before you feed the other pin with a signal from an external oscillator. If one of X1 or X2 needs to be grounded you will see it in the datasheet.

  • @Darphi01
    @Darphi0119 күн бұрын

    Yes please Dave. I'd love to see circuit tips on your Chanel. Maybe also do a series for the young ones who are just starting out in electronics.

  • @BRUXXUS
    @BRUXXUS18 күн бұрын

    Oooh, I’ll echo what many others are saying in the comments- I love any of these kinds of videos where you share your knowledge and experience with us! Thanks!

  • @anuragmahajan5919
    @anuragmahajan591916 күн бұрын

    Thanks Dave, I always learn something new, recently I did face issues with crystal oscillators

  • @pupperozucca4994
    @pupperozucca499420 күн бұрын

    6 years in EE university and nobody thought me that. Thx Dave

  • @kensmith5694

    @kensmith5694

    20 күн бұрын

    BTW: If you need a frequency and half that frequency, you can get SOT23 sized inverting D flip-flops. It is smaller than a 2nd oscillator

  • @toxanbi

    @toxanbi

    20 күн бұрын

    Have you ever read a datasheet on any MCU? Almost any of them cover this option.

  • @pentachronic

    @pentachronic

    20 күн бұрын

    You weren’t paying attention. Almost every datasheet talks about using an Oscillator vs an Xtal. All an XTAL is is a high-Q resonant tank of a Colpitts oscillator. You need an amplifier output and an amplifier input. Ie one of the Xtal pins will be an input.

  • @pupperozucca4994

    @pupperozucca4994

    19 күн бұрын

    I was paying attention to my EE classes and they did not talk about X1 and X2. Probably because they knew they are in every MCU datasheet...

  • @pentachronic

    @pentachronic

    19 күн бұрын

    @@pupperozucca4994 Ok fair enough. I didn’t mean to be rude, my apologies if I was a bit snarky.

  • @georgegonzalez2476
    @georgegonzalez247619 күн бұрын

    Back in WW2, military radios came with a big box of crystals. Dozens of them, each one the size of a fig newton. So I'm a bit surprised to see modern people complaining about the "large" size of crystals nowadays. They're now like 1/500th the volume of a WW2 crystal. They got only slightly (HC-6) smaller during the CB craze. You had to buy a receive and XMIT crystal for each channel you wanted, that cost around $18 big US bucks back then! And we were reasonably happy.

  • @LazerLord10
    @LazerLord1020 күн бұрын

    I went down the rabbit hole on this when designing a board with a crystal for the first time. I ended up giving up and just going with the default value and hoping for the best. I think it ended up working fine.

  • @TheM4man
    @TheM4man19 күн бұрын

    Hot tip: meany MCU/SOC integrated oscillators like in the SiLabs EFR/EFMs have tunable internal caps - so you just tune in the frequency by adjusting a code. :)

  • @ChrisSmith-tc4df
    @ChrisSmith-tc4df20 күн бұрын

    MEMS oscillators are available in small, but easy to solder SOT surface mount packages from SiTime and Analog Devices with as few as 3 pins. They are also flexible enough that with a bypass capacitor and some creative soldering, one can even bodge one in on the pads where a problematic crystal was before. Some offer field programmability, so that one can just keep unprogrammed blanks on-hand and just program in the needed frequency just before soldering. They are little problem solvers sometimes.

  • @mikeselectricstuff

    @mikeselectricstuff

    20 күн бұрын

    But don't use them if you care about jitter - I found that using a MEMS osc on a W5500 ethernet chip caused 1% rx packet loss

  • @HwAoRrDk

    @HwAoRrDk

    20 күн бұрын

    And also some MEMS oscillators stop working when exposed to helium gas. Ask Apple about that one. 😉 (There was a story a few years ago about a hospital MRI technician who discovered their new iPhone died after leaving it in a room where some helium had been vented during servicing the MRI scanner.)

  • @ChrisSmith-tc4df

    @ChrisSmith-tc4df

    20 күн бұрын

    @@mikeselectricstuff Yeah, not all of them use a sufficiently high enough VCO frequency with an optimized divider strategy.

  • @ChrisSmith-tc4df

    @ChrisSmith-tc4df

    20 күн бұрын

    @@HwAoRrDk Definitely a cautionary tale for Clowns in Tech 🤪

  • @W3DRK

    @W3DRK

    19 күн бұрын

    The phase noise is real ​@@mikeselectricstuff

  • @volkerraum3494
    @volkerraum349419 күн бұрын

    You asked if we are interested in more electronics design tipps ? YES PLEASE (at least me) 🙂

  • @MalinDixon
    @MalinDixon19 күн бұрын

    Really good advice. It's so easy to use an oscillator and too many people try to design their own with a crystal and get into problems. Also, there are often designs with more than one crystal at one frequency where just one would do. For most crystals that aren't the 32.768 kHz "tuning fork" ones, the frequency in MHz is 1664 divided by the thickness in microns. That makes a 3.579545 MHz crystal nearly 0.5 mm thick. That may not sound a lot, but that sort of crystal (know as "AT cut") works best when it is much longer than its thickness. In an HC49/4 crystal, which is about 7 mm long, that means that the crystal has to be made thinner at the ends to make it work. There is also the risk that the crystal can oscillate at it's 3rd overtone, which would be about 10.5 MHz. Also the crystal in the low height HC49/4 has to be made as a narrow rectangle, not a circle or wide rectangle. In the narrow rectangle, the oscillations, which are minute physical movements, have to be near the edges, while in other shapes the oscillations are biggest in the centre and tail off towards the edges, so the edges aren't affecting the oscillation. For those reasons it makes a lot of sense for small crystals or oscillators to have a higher frequency oscillator, and to divide the frequency. That tiny packaged oscillator will probably have a 28.63 MHz crystal in it, which is divided by 8. That makes the crystal 58 µm thick, and if it's 2 mm long, it's around 40 times as long as it's thickness so that'll work better. It's not going to oscillate at the 3rd overtone which would be over 70 MHz as the amplifier won't have gain at that frequency. Two slight warnings. Some little oscillators don't have built-in decoupling capacitors, so I would suggest treating them like and IC and making sure that there's 10 nF or 100 nF across the power supply near to the oscillator. Secondly, the X2 output can be made with very low drive capability. A lot of oscillator circuits have a resistor between the output of the inverter and the crystal. That resistor can prevent unintended overtone oscillation, and mean that the crystal is driven with a more sinusoidal waveform. If that resistor is effectively built into the IC, then the drive capability will be worse if you're trying to drive any long wires.

  • @111chicane
    @111chicane20 күн бұрын

    Excellent educational video, typical for the early years of this channel. Love it! Keep it up, please!

  • @jvovnoboy
    @jvovnoboy19 күн бұрын

    Beware of jitter/phase noise specs! Most of the low cost oscillators have high jitter. Need to make sure that the receiving chip can handle that. It also can be more susceptible to supply ripple and noise

  • @00Skyfox
    @00Skyfox17 күн бұрын

    Always like circuit tips and fundamentals!

  • @ksbs2036
    @ksbs203618 күн бұрын

    Dave, I think these short design vblogs are great. It's nice having a range of articles to watch. Sometimes I have ten minutes to spare, other times I have a half hour. I get to choose from a buffet of excellence. Thanks

  • @nigeljohnson9820
    @nigeljohnson982017 күн бұрын

    A known fault on the early 80HC85 processor was a leakage current on the X1 crystal pin. The processor crystal oscillator was designed with its X1 input biased mid rail, with a small Schmitt hysteresis action around the mid voltage bias point. presumably to limit parasitic oscillation when driven with an external oscillator. Unfortunately the X1 suffered a leakage current that was sufficient to drive the oscillator outside the hysteresis window, this stopped the crystal from starting to oscillate. Sometimes switching the circuit off and on again provided a sufficient kick to allow the oscillator to start. Once started, the processor would run without a problem. The leakage current was temperature dependent, so diagnosing the fault took some time. The moral of the story is that PCB leakage currents can stop an oscillator from starting, if they get into the high impedance amplifier input. I have seen a guard ring track from the oscillator output used to protect such inputs from stray leakage currents. A problem that can be observed if the PCB is subject to dew point, where a film of condensation may form on the PCB, providing a path for such currents.

  • @DerIchBinDa
    @DerIchBinDa20 күн бұрын

    Funny this pops up, I am just in the process to see if I wanna use an Crystal or an Oscillator for rather space constrained project. Thx Dave! Any tips for us hobbyists is very welcome!

  • @echelonrank3927
    @echelonrank392719 күн бұрын

    for accuracy use a 33pF NP0 trimcap on X1 to adjust frequency

  • @steve42lawson
    @steve42lawson19 күн бұрын

    Heck yeah I like your quick design tips!! Thank you!

  • @simonhopkins3867
    @simonhopkins386720 күн бұрын

    I lost interest in my hobby electronics. But this got me thinking about it again. Keep them coming bud.

  • @nigeljohnson9820
    @nigeljohnson982017 күн бұрын

    Some of the 32768 Hz circuits use the tiny 1uW crystals. These require a series resistor in the external crystal circuit to stop the crystal from over dissipating. Such over drive results in the crystal failing after a period of operation as the crystal breaks due to stress. This type of failure can happen after days, weeks, or even months of apparent successful continuous operation. A tip that may help determine if a crystal is close to over dissipation is to slightly increase the supply current to the chip containing the crystal oscillator amplifier. The frequency of an overdriven will fall slightly under such conditions, while the frequency of an under driven crystal will rise slightly. To reduce emi from the metal case of a crystal, it was common practice to loop a wire over the crystal case with both its ends soldered to ground. A cheaper, less satisfactory solution was to physically solder the crystal can to the PCB ground plane. This was bad practice, as the heat of soldering had the effect of permanently changing the crystal frequency. There was a version of the HC18U case that had a third wire welded to the top of the crystal can. This could be bent over and soldered down to PCB 0 volts, to ground the can of the crystal. It is surprising how much RF energy can be detected with a high impedance oscilloscope probe from the can of an ungrounded crystal. That which is not revealed by an oscilloscope probe, can often be detected using a search coil connected to a spectrum analyser.

  • @sidharthap
    @sidharthap19 күн бұрын

    I've always loved all your design related content. I really miss it. U barely do n e thing like the power supply design videos. Do more please!!!

  • @theIpatix
    @theIpatix19 күн бұрын

    This reminds me that I once tried to get rid of noise on an old toy keyboard (musical), and my friend ended up swapping the crystal. We tried all kinds of configurations: We increased the load capacitance, we removed the capacitors entirely, and it just would not stop working. Well, we did not measure how stable the clock was, but I guess a bit of stray capacitance was enough to keep the crystal going!

  • @frankwalsh1379
    @frankwalsh137919 күн бұрын

    Thanks Dave! I’m a professional engineer and was always wondering why sometimes a ‘single ended’ resonator could be used on X1 pin !

  • @GNARGNARHEAD
    @GNARGNARHEAD20 күн бұрын

    I didn't know you did electronics content, neat

  • @kevincozens6837

    @kevincozens6837

    15 күн бұрын

    Welcome to channel. If you want to see more of Dave's electronics content look through his past videos for ones listed as Fundamental Fridays.

  • @mikedjames
    @mikedjames20 күн бұрын

    I spent time working on crystal oscillators. Some of are "quite analog"- they have AGC to facilitate startup (feeding energy rapidly into a high Q resonant system , you need to get a lot of energy in fast) such that they shut down if you overdrive them with an exterrnal clock.. so you also have to tell the chip you are using an external clock .. and these often needed drive on X2. One key figure is equivalent series resistance (lower means higher Q factor) cheapest crystals often have high ESR and the oscillator will not start reliably even if it runs when you disturb it by poking it with a scope probe. I once saw the aftermath in a factory where purchasing ignored ESR value bought a cheap crystal. The factory was closed, staff sacked, production ended, machines gone, row after row of pallet stacked with unsellable CDROM drives sitting there in the silent space... Also the cheapest crystals can be less accurately cut than a ceramic resonator- I have a Chinese USB logic analyzer that had a worse than 100ppm clock frequency error. As I was using it to time an AIS distress beacon where the accuracy needed was about 10ppm ..I had to buy a clock oscillator module from a reputable USA vendor to get it better.. the 10ppm oscillator ended up 3ppm accuracy in fact (could have bought a Temperature Compensated Crystal Oscillator module to do even better)

  • @MartinE63
    @MartinE6319 күн бұрын

    More of this please Dave. Sub 10 min videos are much appreciated.

  • @mikeselectricstuff
    @mikeselectricstuff20 күн бұрын

    Handy tip for setting cap value for external crystals - the amplitude on X1 and X2 should be similar for happiest operation ( use a x100 probe for low-power xtals like 32.768kHz watch xtals

  • @TriodeTetrode

    @TriodeTetrode

    19 күн бұрын

    Hello Mike. Reading your comment I remember now when I couldn't measure STM32 nucleo board 32.768 kHz crystal, but measuring 8 MHz crystal was fine. I was using 10x probe. I haven't seen any normal oscilloscope to have 100x probe, must have to buy extra. I also know that stray capacitance of the probes is like 16 pF. I was obviously overloading crystal circuit. Just wondering why lower frequency crystals are more sensitive to stray capacitance? Also instead of 100x probes can I use some op amp as buffer for measuring?

  • @echelonrank3927

    @echelonrank3927

    19 күн бұрын

    alternatively use a NP0 trim capacitor to set accurate frequency value like inside a classic quartz watch

  • @mikeselectricstuff

    @mikeselectricstuff

    18 күн бұрын

    @@TriodeTetrode For 32Khz you can make a crude x100 probe with a 90M resistor hung off the end of a x10 probe - not super accurate but good enough

  • @galinvayov
    @galinvayov20 күн бұрын

    I use two converters, SPI to two UART, in one of my devices. They of course require a crystal. Two separate is a waste. One is connected to a crystal, from its X2, I supply a clock to X1 of the second integrated circuit.

  • @CMTEQ
    @CMTEQ19 күн бұрын

    Great circuit design tip, I have used one of those smd crystal from LCSC before, they work quite well. Please bring more of these short design tip, they are very valuable. Thank you Dave.

  • @mikeissweet
    @mikeissweet20 күн бұрын

    Good tip indeed! Never put too much thought into it, usual just seeking out the application curcuit

  • @TheHuesSciTech
    @TheHuesSciTech19 күн бұрын

    Great video, I do this all the time out of sheer laziness! I appreciate the warnings in the video though about lines getting shorted out, and the comments section here is also educational for me.

  • @vamsichikati
    @vamsichikati20 күн бұрын

    Excellent tip. Was struggling hard to control time drift on my board for rtc application. Thank you

  • @SeanBZA
    @SeanBZA20 күн бұрын

    When doing the external clock remember the input needs to be via a resistor and small capacitor as well, so the internal bias is not upset. 1k and 100pf ceramic, right there by the input pins, will probably work, and also if you want the clock out use a buffer right there, as most of those clock drivers can barely drive a 100pf load, because of the tiny mosfets inside the chip that are doing the drive limiting on the crystal. So slap one of those tiny single gate inverters right next to the pin, and use that as buffer. Seen a lot of times the crystal gets lazy, and simply unsoldering it, turning it around and soldering back in gets it working again. You also get, for those places where you are constrained, a crystal with built in capacitors, though often enough you will probably want to use a SAW resonator in place of the crystal, 3 pins, and all the capacitors there already. Not as stable, but good enough for most clock generation, providing you do not want to have a real time clock off that signal.

  • @sinewave3323
    @sinewave332320 күн бұрын

    I love how you explains things! Its genius n comical! Thanks so much for making these videos! It helps me learn!

  • @frankmccann29
    @frankmccann2920 күн бұрын

    Glad I stopped in you made me remember something, thanks. 😊

  • @grahammuppet
    @grahammuppet19 күн бұрын

    Thank you, I always wondered how this was done

  • @Filip3146
    @Filip314620 күн бұрын

    I would put a bigger asterisk on this piece of advice, as also Dave hints at it. The safer bet is to just read the datasheet and look for the spec that tells you what an external clock should be (shape, amplitude, phase noise, etc.) and not try to connect a clock directly. "Working" is always a relative term with something like this depending on what your IC is. A Pierce oscillator has the load caps and crystal in its feedback path, so *to an extent* it doesn't care too much about power supply and layout. A clock source will do, and it will absolutely have poor performance if not powered correctly, and you still need to make sure you are not overdriving the clock input (which is also a concern with driving crystals - that is why you sometime see a series resistor also on the output of the inverter or a programmable power output for fancier chips). You might even need a separate LDO for an external oscillator so your BOM might actually increase significantly. Unless there is a separate datasheet note at least hinting to what the amplitude of an external clock should be, it might not be wise to design it in.

  • @Remowylliams
    @Remowylliams20 күн бұрын

    I do like short useful tips, provided they give enough info to make the viewer/user of said tip knowledgeable enough to use it effectively. It being sourced by Dave you can bet no worries on the latter score. Cheers.

  • @qutube100
    @qutube10019 күн бұрын

    Very interesting, circuit tips is the way to go boss short and sweet!

  • @tom_bull
    @tom_bull20 күн бұрын

    Yes! More of these, please.

  • @rudolphriedel541
    @rudolphriedel54120 күн бұрын

    I am using TG2520SMN oscillators in a circuit and these have "Clipped Sine" as output so these require a DC-cut capacitor at the output. And they need a by-pass capacitor. So my BOM count did not get reduced when switching from a crystal to an oscillator for a more precise frequency without the need to fiddle with the capacitors. And then there is that oscillators need a supply voltage which limits their use, the TG2520SMN for example needs VCC in the range of 1.7V to 3.63V.

  • @ralphj4012
    @ralphj401218 күн бұрын

    Some micro datasheets also specify the load capacitance range of the crystal. Use one even slightly outside of that range, even one stated to be the same frequency, and the micro will not start / run properly, irrespective of the value of the load capacitors.

  • @abitofabitofabit4404
    @abitofabitofabit440419 күн бұрын

    Another vote for a Tips & Traps for Young Players series!

  • @KeritechElectronics
    @KeritechElectronics20 күн бұрын

    Not to mention how fascinating these things are inside! It's like a teeny tiny tuning fork, as seen in the Open Circuits book by Eric Schlaepfer and Windell Oskay.

  • @Thomas72B
    @Thomas72B20 күн бұрын

    I like the short circuit tips

  • @jonathanwilhelm8891
    @jonathanwilhelm889119 күн бұрын

    Love it, more please

  • @ventusprime
    @ventusprime18 күн бұрын

    YES give dave give us more , if not this channel on the 2nd chanel

  • @MrAndrzejWu
    @MrAndrzejWu19 күн бұрын

    thank you

  • @leaveempty5320
    @leaveempty532018 күн бұрын

    Nice! Thanks!

  • @stevenbliss989
    @stevenbliss98919 күн бұрын

    Thank you, VERY USEFUL!!!!!!!!!!!

  • @rocketman221projects
    @rocketman221projects20 күн бұрын

    You can also get ceramic resonators in small SMD packages with built in load capacitors for applications where a 0.5% frequency tolerance is acceptable.

  • @AL6S00740
    @AL6S0074019 күн бұрын

    Yes more please !!

  • @HectorLopez-jw2ke
    @HectorLopez-jw2ke19 күн бұрын

    Genius. More tips

  • @ChrisJackson-js8rd
    @ChrisJackson-js8rd20 күн бұрын

    neat I definitely misunderstood the reason for the guard traces lol i like the short little circuit tip videos

  • @marcdraco2189
    @marcdraco2189Күн бұрын

    Dave, can you make a playlist of these little tips? Maybe even make just the bare bones? X1 = Clock in. X2 = ! Clock out. Boom shalaka!

  • @LawpickingLocksmith
    @LawpickingLocksmith20 күн бұрын

    Good one.

  • @Morbuto
    @Morbuto19 күн бұрын

    Something cool I discovered recently, some of the super-cheap chips from WCH (CH582 in particular) have digitally configurable load capacitors built in. Presumably to reduce BOM cost (and assembly) by fractions of a cent, but certainly convenient!

  • @Scrogan
    @Scrogan20 күн бұрын

    I’d like to see a video on DTMF, and also why anyone would use it in the current century.

  • @mickeyfilmer5551
    @mickeyfilmer555120 күн бұрын

    All tips are useful especially to us who have learnt electronics from the likes of you, Big Clive , electroboom and so on. I find any tip or tricks of the trade are most welcome- especially when it might mean the difference between success and the puff of blue smoke...! (That expensive puff of blue smoke as I have found to my cost!!)

  • @t1d100
    @t1d10020 күн бұрын

    Yes to brief circuit tips

  • @kensmith5694
    @kensmith569420 күн бұрын

    Trap for the new guys: You may find many oscillators of the same size in surface mount. Loot at the foot prints carefully. Nobody seems to agree with anybody about what the footprint of a SMD oscillator should be. You may need to make a slightly odd footprint is you want to have a 2nd source.

  • @owenimholte3835
    @owenimholte383520 күн бұрын

    Thanks Dave! I'm curious how to use a crystal oscillator in a "standalone" sort of way? For instance if I just want to create some oscillations, what do I do? Apply a DC voltage to x1? Apply an AC voltage to x1 and it tries to resonate or something like that?

  • @lizardkeeper100
    @lizardkeeper10020 күн бұрын

    I was just thinking about this subject today and how annoying I find crystals to work with I will need to look into oscillators

  • @pushpendrakhaira9337
    @pushpendrakhaira933719 күн бұрын

    a lowpass filter in the form of 330 ohm resistor maybe needed on one side. Or you can have 3.57 oscillate at 3x freq. common with 65c02 cpu because its fast.

  • @kendallshore5733
    @kendallshore573319 күн бұрын

    That's a ripper idea! I wonder if that'd work in situations where the microcontroller crystal drive circuit has died?

  • @cedricb2344
    @cedricb234414 күн бұрын

    a crystal/oscillator manufacturer told me to check datasheets of chips to verify if oscillators are compatible before choosing an oscillator instead of a crystal. For video for example it seems oscillators are not a valid choice.

  • @--------------hhhhh
    @--------------hhhhh19 күн бұрын

    noob question: does this mean that one could synchronize two identical audio DACs (finished products, each of them in its enclosure etc) by substituting the crystal of one of them for an external oscillator and then connecting XO to the second DAC XI? that audio DACs are synchronized is important in multichannel audio systems and most cheap consumer DACs don't have master clock inputs/outputs. thanks!

  • @EEVblog

    @EEVblog

    18 күн бұрын

    Yep, that should work.

  • @Sysshad
    @Sysshad12 күн бұрын

    @EEVblog Thanks Dave, i like your content but this was confusing for me: 06:24 "You do not need to use an external crystal and the load capacitors, you can replace it with some external crystal" Dont you mean a resonator here?

  • @blanchehermine
    @blanchehermine20 күн бұрын

    Some MCUs like STM32 have clock output capability, so you can output your 32768 Hz on the dedicated pin and probe it with oscilloscope without affecting the crystal frequency.

  • @button-puncher
    @button-puncher19 күн бұрын

    Thanks for the tip Dave. Could you use a differential probe to measure the crystal directly? Making sure to be very careful with the leads to minimize capacitance? I've got a Nixie clock kit with a 32kHz oscillator that keeps TERRIBLE time. Loses 5 minutes a week. I used a programmable oscillator to replace the crystal in a Korg DT-1 Pro guitar tuner. Made a 60Hz display for my generator that I could see from across the room. Governor will hunt at times causing it to ping pong back a forth.

  • @EEVblog

    @EEVblog

    18 күн бұрын

    Likely not diff probes are 1M impedance, that will upset the circuit. At a minimum use a x10 probe on X2.

  • @button-puncher

    @button-puncher

    18 күн бұрын

    @@EEVblog Thanks Dave. I appreciate it. I'll give that a shot.

  • @borayurt66
    @borayurt6620 күн бұрын

    Yes, please keep them coming. Short? I can take 20 minutes as short too.

  • @marcinp.8108
    @marcinp.810820 күн бұрын

    The guestion is: should it be inverter, buffer or two inverters in series? I see many different diagrams. Some diagrams shows single inverter, while numbers shows buffer... I know that double inverter works. In case of singlge element it shoulb be... (commin sense says buffer).

  • @ncooper8438
    @ncooper843820 күн бұрын

    Why are the capacitors needed, is it to initiate oscillation when the power is applied?

  • @andreyselectronics149
    @andreyselectronics14919 күн бұрын

    2:08 Well, then it's a great thing that oscilloscope manufacturers have largely agreed to phase out switchable probes, so you can't accidentally use a X1 instead of X10 probe.

  • @PsiQ
    @PsiQ19 күн бұрын

    i've been trying to get my colleagues to use a DCDC daughter board (like the external one-part-oscillator) or at least add an "option" area with in+out pins around the dcdc area to allow to connect that instead of the onboard components multiple times now. Somehow always something isn't working or running out of spec.. and the components they use are too small to easily handsolder for no reason. its easier to do when you can actually see them.. ..then a new batch of PCBs gets done with 2 weeks waiting time and then they find another error and they go into the bin. Or the components reach end of lifetime "suddenly" before the release version. Now if you have the (test)pins you can just throw on a small pcb with whatever components are available in ten years and try different versions, even power externally. Looking for defects and repairs are also easier with just A-B swapping modules. As large as possible, as small as needed. Doesnt help when you stuff everything into one place and then need to add large areas and extra layers for cooling hotspots.

  • @Electronzap
    @Electronzap20 күн бұрын

    Great video Dave, crystal oscillators is something I seen here and there for decades but never took the time to really learned how to use them. Will definitely watch more videos like this.

  • @muratkancaoglu3284
    @muratkancaoglu328420 күн бұрын

    Oscillators are suitable for non-battery powered applications as they're relatively high on consumption. STM32 G0 series have enable pin controller to actually disable crystal during sleeping.

  • @kensmith5694

    @kensmith5694

    20 күн бұрын

    You can make an extremely low powered Xtal oscillator if you need to. It only works at lowish frequencies. Basically, the inverter than makes it go is made with very small MOSFETs

  • @tvelektron
    @tvelektron20 күн бұрын

    like this kind of "quick" information. One detail unsettles me: the internal mosfet that is controlled by the enable signal can short-circuit x1. I would be afraid that the output of the external oscillator gets short-circuited and damaged. Or there are completely confusing interactions when the same scillator is used for several circuit parts.

  • @Chupacabras222
    @Chupacabras22220 күн бұрын

    Crystal oscillator has 10mA current consumption. It can be sometimes a very big disadvantage.

  • @michaelmoorrees3585
    @michaelmoorrees35858 күн бұрын

    "DTMF" !!! I use to work in the telco industry. DTMF was very common, at one time. Other, than grandma, with her old landline phone, who uses DTMF anymore. And if she's a really old grandma, she might still have a dial phone, so no DTMF there. I had an aunt that made it to 101 yo. In my pile of parts, I still have about a dozen DTMF generator ICs. Won't be using them, anymore.

  • @JAKOB1977
    @JAKOB197719 күн бұрын

    When are your review video on Siglent SDS800X HD gonna land?

  • @jeremiahbullfrog9288
    @jeremiahbullfrog928820 күн бұрын

    How did you find this part? We use 3.686400MHz crystals and the HC-49 surface mount package is awful! We've been searching for a smaller package (with reliable availability) for a long time but these lower frequencies are hard to find

  • @EEVblog

    @EEVblog

    20 күн бұрын

    I just searched LCSC

  • @l3p3
    @l3p320 күн бұрын

    In general, why do some boards have multiple crystals of the same value? And even if they differ, why not use a frequency divider? Or do I overvalue things being aligned with each other?

  • @EEVblog

    @EEVblog

    18 күн бұрын

    If you have different chips dong different things, they usually don't need to be synchronous. Also, one chip might want to use a sleep mode or something.

  • @sgctactics
    @sgctactics20 күн бұрын

    I'm down for short circuit tips, always good to know more ways to fry chips. Jokes aside, it'd be like altium academy, but with dave instead. Who can say no to that?

Келесі