1
\$\begingroup\$

I have a relaxation oscillator circuit which is supposed to oscillate around 6 MHz. It mostly oscillates in a very stable manner around that frequency.

Sometimes, however, it starts to oscillate at 25 MHz which is the fastest oscillation available for this comparator (TLV3202) given its propagation delay is 40 ns. Some cases where this happens are:

  1. On frequent on-off, I can put the circuit in this mode.
  2. Bringing fingertip near inverting input, not touching just in the air.
  3. Touching an open ended wire to non-inverting input.
  4. During normal handling of running circuit we have seen this.

As this circuit will be used for further capacitive sensing, we are in trouble.

A few observations:

  • Touching the non-inverting input with an open ended probe brings it back to 6 MHz
  • A power reboot also fixes it.

Circuit diagram:

schematic

PCB layout:

PCB layout

A few things that I tried to fix this, with no success:

  1. Putting a 10 pf capacitor between comparator-output <----> comparator-non-inverting input.
  2. Putting a 200 ohm resistor on comparator-output.
\$\endgroup\$
7
  • 2
    \$\begingroup\$ Check your title! 25 mHz (millihertz) is not 40ns (nanosecond period) ;) \$\endgroup\$
    – carloc
    Commented May 8, 2019 at 7:45
  • \$\begingroup\$ fixed,its Mega only \$\endgroup\$
    – neeraj
    Commented May 8, 2019 at 8:26
  • 1
    \$\begingroup\$ Supply decoupling? Supply voltage? It's "MHz" and not "Mhz". \$\endgroup\$
    – Andy aka
    Commented May 8, 2019 at 8:30
  • \$\begingroup\$ Supply Voltage is 3.3v from an LDO ( mic5205) , decoupling caps are 0.1UF + 10UF. BTW I have tried to even add a third large electrolytic 100UF. \$\endgroup\$
    – neeraj
    Commented May 8, 2019 at 9:44
  • \$\begingroup\$ Partial schematics like this may hide problems...where else does pin 2 (inverting input) go? These RC oscillators often run with period approx. = time constant. Yours seems to run faster, at a higher frequency. Perhaps you should join C13 & R11 at a common ground point. \$\endgroup\$
    – glen_geek
    Commented May 8, 2019 at 13:41

2 Answers 2

1
\$\begingroup\$

A few things.

1 - You appear to have 3 decoupling caps on the comparator, on the left side of the IC. While the V+ lead is nice and short and compact, the ground trace for the two lower (presumably smaller) caps heads off to who-knows-where, and this will make them less effective. Especially the 0.1, which needs both traces as short and thick as possible to the IC pins. If you're not willing to redo the board, try running a small (as short as possible) jumper from the two smaller caps to the ground pins of the IC.

2 - Grounding both pins of the unused comparator is a bad idea. If you get a unit with extremely small input offset voltage, the unused portion may be primed to change state in response to very small inputs, and this transition can, in turn, affect the other section. Try lifting pin 6 and jumpering it to pin 8. The TLV3202 is rated for rail-to-rail inputs, so this should work.

\$\endgroup\$
0
\$\begingroup\$

From the symptoms ---- vulnerable to various pieces of metal near the pins 1,2,3 --- this seems like Electric Field feedback, thru the air.

Thus 2 steps to a cure

(1) capture some of the electric field coupling from output to non-inverting input; these are pins 1 and pins 2. Perform this capturing, by drilling 2 or 3 or 4 holes down thru the GND plane, and install some vertical metal pins on both sides of the feedback resistor. These grounded bits of metal serve as RETURN_PATHS for the Efield.

Your PCB, which looks good, by the way, has direct coupling between pins 1 and 2, INSIDE THE PCB, under pins 1 and 2, inside the FE-4 dielectric. NOthing to be done about that, unless you could bring the Grounded foil to be closer to those pins, which would capture more of the Efield underneath the solder-pads.

(2) add a small capacitor (5--10pF) across the +feedback resistor R13

(2a) reduce the 4.7K ohm resistors (3 of them) to 1Kohm

And where is the timing capacitor?

\$\endgroup\$
3
  • \$\begingroup\$ trace coming out of pad towards lower right corner has two capacitor in parallel. One is visible on lower right side another capacitor is formed by a cylnderical capacitor. These 2 in parallel are my timing capacitor. Let me try (2) and (2a) both. Didn't understand "bring the Grounded foil to be closer to those pins" \$\endgroup\$
    – neeraj
    Commented May 8, 2019 at 21:51
  • \$\begingroup\$ BTW earlier I added a 10pf cap between (+ve) and (-ve) and that stopped all 25Mhz oscillation, I must admit I don't know the theory behind this, but it was the only suggestion mentioned in tlv3202 datasheet regarding oscillation issues. I have already tried (2a) , just remembered. 10 pf between output and (+ve), it didn't help. I was able to put oscillator in 25MHz freq. which feedback resistor you mentioned in (1) +ve or -ve ?? \$\endgroup\$
    – neeraj
    Commented May 8, 2019 at 22:01
  • \$\begingroup\$ As I wrote, there is coupling thru the air. To reduce that, have small pieces of metal that are grounded, over the Vout, the Vin+, the Vin-. \$\endgroup\$ Commented May 8, 2019 at 22:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.