Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Another pulse on falling edge of PWM with dead time

Status
Not open for further replies.

xmen_xwk

Full Member level 3
Joined
Sep 12, 2014
Messages
172
Helped
2
Reputation
4
Reaction score
2
Trophy points
18
Activity points
1,373
I have a simple PWM with low frequency(like 10Hz) coming out of uC. Now I want to have another pulse generated after a pulse from uC.

eg

Untitled-1.png


I saw some dead time generator on google, but they all are inverting. Like their HIGH and LOW swaps. However what I need is, if there is no pulse, the other should stay LOW. It should only create pulse when there is pulse on input.

Is there any chip for that ?
 

What is the maximum and minimum pulse width coming out of the micro?

Do you want the pulse width coming out of the micro to be duplicated after the 1 mS delay, or do you you just need another delayed pulse of a fixed duration?
 

This is a 2-stage sequencer. A single incoming pulse causes 2 subsequent pulses. You'll take the righthand output (or second echo). The middle pulse is the 'dead time'.

6533787500_1482613068.png


By playing with values you can change pulse lengths. Changing one thing affects other things, so it will require experimentation to get your desired results.
 
What is the maximum and minimum pulse width coming out of the micro?

Do you want the pulse width coming out of the micro to be duplicated after the 1 mS delay, or do you you just need another delayed pulse of a fixed duration?

The pulse width out of uC has range from 1ms to 30ms with frequency of 20Hz.
I need delayed(programmable) pulse of a fixed duration.


@BradtheRad, thank you, I will try that in LTSpice.
 

You can use one CMOS 4093 package with the additional components shown to generate the delayed pulse.

R1 and C1 determine the delay time, while R2 and C2 set the width of the output pulse.

Diodes are all 1N914 or 1N4148 type.
 

Attachments

  • dly_plse.png
    dly_plse.png
    29.5 KB · Views: 67
Awesome, however, is it possible to control the delay with uC ?
 

Hi,

I'd say it is the simples solution to do it inside the microcontroller.
* Falling edge of the first signal,
* Delay (dead time)
* set output 2
* delay (pulse width of second signal)
* clear output 2

Do as much as possible with internal periferals.

Klaus
 
Hi,

I'd say it is the simples solution to do it inside the microcontroller.
* Falling edge of the first signal,
* Delay (dead time)
* set output 2
* delay (pulse width of second signal)
* clear output 2

Do as much as possible with internal periferals.

Klaus
Yes thats the last resort, I would like to avoid using delay inside interrupt call as uC is doing way too many things. A separate uC for this, is kind of an overkill, but if nothing works thats the way it has to go.
 

Hi,

Do as much as possible with internal periferals.
This is what I meant: You shouldn't do this with busy waits like "delay()", but with timer, waveform generation...

Even the SPI periferal could be "misued" for this:
Sending "0b00011110" with the correct SPI speed could be used.
Where the leading zeroes define the start delay and the count of "ones" give the pulswidth.
Then it's just sending out one byte. Less than one microsecond of processing time.

Klaus
 

Even the SPI periferal could be "misued" for this:
Sending "0b00011110" with the correct SPI speed could be used.
Where the leading zeroes define the start delay and the count of "ones" give the pulswidth.
Then it's just sending out one byte. Less than one microsecond of processing time.

lol thats some tricky business to do. But thank you :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top