Author Topic: Strange output with RC one shot and comparator  (Read 1338 times)

0 Members and 1 Guest are viewing this topic.

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Strange output with RC one shot and comparator
« on: March 17, 2021, 11:06:00 pm »
I’m working on a simple RC based one shot that goes into a comparator to provide a 40-50 ms reset pulse during board start up for a digital IC. I’m using a 4.7uF and 10kOhm resistor that goes into a comparator with a 2.5V threshold. The circuit is powered from a 5V voltage supply. Sorry I don’t have the schematic handy right now but will try to upload it later.

In simulation everything works fine. The comparators outputs a nice stable digital signal. When I prototyped the circuit I used a “fast” push-pull comparator but my output has a slope to it, almost 20-30 ms to raise to 5V. This is strange behavior since the output should just be a square wave. Did anyone else have this issue? I tried two different comparators.

I also tried to use a dual op-amp, with one acting as a buffer amplifier but the results were the same.
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Strange output with RC one shot and comparator
« Reply #1 on: March 17, 2021, 11:09:22 pm »
Waiting for circuit.

And, why not use a regular reset generator like MCP102?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #2 on: March 18, 2021, 01:17:13 am »
Waiting for circuit.

And, why not use a regular reset generator like MCP102?

Tim

I was trying to use the parts we already had in the lab. Plus this circuit apparantly is used in a production design, so it should've worked but I'm not sure what is happening.

Attached is the schematic. I don't have the oscilloscope screenshot, so here is a crude drawing of the output.   ;D

I used a MCP6541 in the prototype.
« Last Edit: March 18, 2021, 01:59:20 am by aiq25 »
 

Online uer166

  • Frequent Contributor
  • **
  • Posts: 993
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #3 on: March 18, 2021, 01:42:04 am »
Do you expect the comparator to work as a comparator at all voltages, including 0 and as it rises to the nominal levels?
 

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #4 on: March 18, 2021, 01:45:54 am »
Do you expect the comparator to work as a comparator at all voltages, including 0 and as it rises to the nominal levels?

The reference voltage has a time delay and I will try removing the 100nF. I didn't expect the output wave to have a raise, since it is a comparator I expected the output to reach 5V once it hits the reference voltage of 2.5V, otherwise the output should be 0V. What I see at the output of the comparator is a raise in voltage, over 20-30ms. Is this assumption wrong?
 

Online T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22434
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Strange output with RC one shot and comparator
« Reply #5 on: March 18, 2021, 07:13:49 am »
What is the "5V" from, how long does it take to reach 5V?

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: Strange output with RC one shot and comparator
« Reply #6 on: March 18, 2021, 09:17:14 am »
Waiting for circuit.

And, why not use a regular reset generator like MCP102?

Tim

I was trying to use the parts we already had in the lab. Plus this circuit apparantly is used in a production design, so it should've worked but I'm not sure what is happening.

Attached is the schematic. I don't have the oscilloscope screenshot, so here is a crude drawing of the output.   ;D

I used a MCP6541 in the prototype.
Get rid of C1 and put a 1M resistor from U1's output, to the +input. A diode across R4 is also a good idea to protect the comparator's input, when the power is removed and enable the circuit to reset quickly, by providing a discharge path for C3. I'd also increase R4 and decrease C3: timing capacitors should generally be as small as possible.
 

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #7 on: March 18, 2021, 11:18:51 am »
What is the "5V" from, how long does it take to reach 5V?

Tim

In this case the 5V is coming from a lab power supply. I haven't timed it but it has a fairly fast response (no where near the ramp up of the output).
 

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #8 on: March 18, 2021, 11:20:22 am »
Waiting for circuit.

And, why not use a regular reset generator like MCP102?

Tim

I was trying to use the parts we already had in the lab. Plus this circuit apparantly is used in a production design, so it should've worked but I'm not sure what is happening.

Attached is the schematic. I don't have the oscilloscope screenshot, so here is a crude drawing of the output.   ;D

I used a MCP6541 in the prototype.
Get rid of C1 and put a 1M resistor from U1's output, to the +input. A diode across R4 is also a good idea to protect the comparator's input, when the power is removed and enable the circuit to reset quickly, by providing a discharge path for C3. I'd also increase R4 and decrease C3: timing capacitors should generally be as small as possible.

Thanks! Will try that.
 

Offline aiq25Topic starter

  • Regular Contributor
  • *
  • Posts: 241
  • Country: us
Re: Strange output with RC one shot and comparator
« Reply #9 on: March 20, 2021, 02:39:04 pm »
Turns out the circuit design was fine, it was the power supply ramp up. Not sure how I missed that.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf