Author Topic: Pass PWM but block steady DC  (Read 656 times)

0 Members and 1 Guest are viewing this topic.

Offline JoeyGTopic starter

  • Regular Contributor
  • *
  • Posts: 130
  • Country: au
Pass PWM but block steady DC
« on: July 20, 2023, 08:28:42 am »
I looking for circuit suggestions at 5V Logic, that can pass a PWM signal and block  Vdd steady signal   up to about 20KHz.

THe PWM would be 0 to 95%    I'm thinking something with an XOR gate and and  RC time constant to set the period when the signal stays high too long.

When the time is too long on logic high (not PWM)  the should be logic zero.

 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12671
  • Country: ch
Re: Pass PWM but block steady DC
« Reply #1 on: July 20, 2023, 08:46:19 am »
Perhaps something using a retriggerable monostable multivibrator, but triggered on a low pulse rather than a high one?

That would catch very small low pulses, so that even e.g. 99.9% duty cycle wouldn’t be detected as DC. On the other hand, if it makes sense in your application for almost 100% to count as 100%, you could also consider some kind of filtering to analog, and use a comparator.
 
The following users thanked this post: PCB.Wiz

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6966
  • Country: nl
Re: Pass PWM but block steady DC
« Reply #2 on: July 20, 2023, 09:28:48 am »
I think your description is too poor.

Is it just a PWM signal riding on Vdd? If so just level shift.

Should a long high input signal be regarded as idle and pull the output low? RC filter it with a bypass diode across the resistor so low level is immediately passed, invert it and combine it with the input with an AND gate. (Though I question the sanity of the application.)
« Last Edit: July 20, 2023, 09:41:45 am by Marco »
 

Offline wasedadoc

  • Super Contributor
  • ***
  • Posts: 1659
  • Country: gb
Re: Pass PWM but block steady DC
« Reply #3 on: July 20, 2023, 09:49:51 am »
PWM contains AC and DC. A capacitor can pass AC and block DC. The DC in PWM can be easily reconstituted after the capacitor.
 

Offline PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1878
  • Country: au
Re: Pass PWM but block steady DC
« Reply #4 on: July 20, 2023, 08:05:58 pm »

THe PWM would be 0 to 95%    I'm thinking something with an XOR gate and and  RC time constant to set the period when the signal stays high too long.

When the time is too long on logic high (not PWM)  the should be logic zero.

#1 is a good start.
You need a retriggerable monostable for the time window, but it will signal at both 0% and 100%
If you want 0% ( or 100% ?)  to do something else, you need more logic, and a better description  8)

An AND gate can combine pwm with mono.q to force 0 on static hi.
 

Offline Marco

  • Super Contributor
  • ***
  • Posts: 6966
  • Country: nl
Re: Pass PWM but block steady DC
« Reply #5 on: July 20, 2023, 08:52:57 pm »
Oops, I guess XOR works, but you still need to bypass the resistor with a diode to get it to work instantly when input goes low.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf