Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Start-up of D-type flip-flop

971 views
Skip to first unread message

jonathan mark engel

unread,
May 7, 2003, 3:36:21 PM5/7/03
to
How can I ensure the start-up output state of a D-type flip-flop? I have
a flip-flop that has the D input connected to logic 1 (high) and when the
first clock signal comes in will set the output Q high as well. My
problem is ensuring that Q will be low until the first clock pulse. The
time from power up to the first clock pulse is undetermined, and may be
infinite. Ideas? For once, Horowitz and Hill have not been able to help me.

For those interested, this circuit is part of an automotive ignition
system.

Thanks!

-Jonathan Engel

Keith R. Williams

unread,
May 7, 2003, 4:10:29 PM5/7/03
to
In article <Pine.GSO.4.31.030507...@ux5.cso.uiuc.edu>,
jme...@students.uiuc.edu says...

> How can I ensure the start-up output state of a D-type flip-flop? I have
> a flip-flop that has the D input connected to logic 1 (high) and when the
> first clock signal comes in will set the output Q high as well. My
> problem is ensuring that Q will be low until the first clock pulse. The
> time from power up to the first clock pulse is undetermined, and may be
> infinite. Ideas?

If you can tolerate *some* glitching at the output you can hold the
RESET pin active until power is stable. This is not perfect though
because the output pin may move until the flip-flop is powered up
enough to feed back. In the mean time it's difficult to determine what
the outputs are going to do.

> For once, Horowitz and Hill have not been able to help me.

This isn't an easy thing to design and is very sensitive the particular
circuit in use. Your needs will dictate the care that must be taken.

> For those interested, this circuit is part of an automotive ignition
> system.
>
> Thanks!

Good luck.

--
Keith

ånønÿmøu§

unread,
May 7, 2003, 5:25:30 PM5/7/03
to
On Wed, 7 May 2003 14:36:21 -0500, jonathan mark engel
<jme...@students.uiuc.edu> wrote:
>How can I ensure the start-up output state of a D-type flip-flop? I have
>a flip-flop that has the D input connected to logic 1 (high) and when the
>first clock signal comes in will set the output Q high as well. My
>problem is ensuring that Q will be low until the first clock pulse. The
>time from power up to the first clock pulse is undetermined, and may be
>infinite.
You need a "power on reset pulse" or a "POR" signal. There are many
different ways to create them. If you want, I can post some examples
for you.

>Ideas? For once, Horowitz and Hill have not been able to help me.
I'm sure they can, they must just be busy...

>For those interested, this circuit is part of an automotive ignition
>system.
Some systems have complex routines that they run at power on (or at
reset). This insures that they will come up in a known state.

jonathan mark engel

unread,
May 7, 2003, 6:46:03 PM5/7/03
to
Thanks for the tip. I checked out Maxim's website, they have a number of
stand-alone POR IC's. Sometimes it is impossible to find what you want
when you don't know what to call it. I think this will work fine, I can
use the POR signal as the clear input to the D flip-flop.

Jon

Charles Jean

unread,
May 7, 2003, 10:58:06 PM5/7/03
to
Jonathon's right. You need a POR pulse. You can't get anywhere unless
you know where you're starting from. Sometimes it's also nice to have
a manual reset button to reset the system if something goes awry.
That familiar beep you hear when you turn on the power switch to your
computer indicates that power has been good enough long enough to
generate a system reset pulse. Everything initializes, including the
microprocessor. Whenever it senses the reset pulse, it starts to
execute the program located at XXXX address, which resides on your
CMOS BIOS chip, which eventually loads in the operating system. If
your operating system is Windows and you later wind up with the Blue
Screen of Death, you can press your manual reset button to get things
started again!

_________

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress depends on the
unreasonable.

- George Bernard Shaw (1856-1950)

John Fields

unread,
May 8, 2003, 10:08:14 AM5/8/03
to
On Wed, 7 May 2003 14:36:21 -0500, jonathan mark engel
<jme...@students.uiuc.edu> wrote:

>How can I ensure the start-up output state of a D-type flip-flop? I have
>a flip-flop that has the D input connected to logic 1 (high) and when the
>first clock signal comes in will set the output Q high as well. My
>problem is ensuring that Q will be low until the first clock pulse. The
>time from power up to the first clock pulse is undetermined, and may be
>infinite. Ideas? For once, Horowitz and Hill have not been able to help me.

---
The easiest way is to connect one end of a resistor to Vcc and the other
end to the free terminal of a grounded capacitor, then connect the
junction of the RC to the low true RESET input of the Dflop. If you're
using a device with a high true RESET, like a 4013, reverse the Vcc and
ground connections to the RC.

You may get a glitch out of Q when power is first applied, but it will
go away and Q will remain low until you send your clock to the Dflop.

Skipp

unread,
May 8, 2003, 11:17:21 AM5/8/03
to
John F. stole my thunder... he's right. A simple resistor and cap are
all I need to ensure my cmos circuits restart properly. In some
applications, I also might include a diode to discharge the cap.

Use the circuit as he describes it. If you are using cmos chips, I can
provide the part values. Maxium has good stuff, but sometimes you can
replace a chip with two or three parts.

cheers
skipp
http://sonic.ucdavis.edu

: jonathan mark engel <jme...@students.uiuc.edu> wrote:
: How can I ensure the start-up output state of a D-type flip-flop? I have

jonathan mark engel

unread,
May 9, 2003, 5:53:45 PM5/9/03
to
I tried the below, and I am having trouble. I am using a 74LS74 dual D
type flip flop, and when I power on the circuit the output Q always takes
the value D regardless of the clock. This is not desirable, since I need
the circuit to wait for the clock before setting the output to D.

I have an RC circuit (as described below) to hold the CLR pin low for the
few ms that the cap takes to charge but the output goes to D (high)
anyway. If I start the circuit up with D low, then Q stays low on power
up. Ideas? I ordered a POR IC but it has not arrived. The RC should
work, but what is the problem?

Thanks!

-Jon

John Fields

unread,
May 10, 2003, 9:25:59 AM5/10/03
to
On Fri, 9 May 2003 16:53:45 -0500, jonathan mark engel
<jme...@students.uiuc.edu> wrote:

>I tried the below, and I am having trouble. I am using a 74LS74 dual D
>type flip flop, and when I power on the circuit the output Q always takes
>the value D regardless of the clock. This is not desirable, since I need
>the circuit to wait for the clock before setting the output to D.
>
>I have an RC circuit (as described below) to hold the CLR pin low for the
>few ms that the cap takes to charge but the output goes to D (high)
>anyway. If I start the circuit up with D low, then Q stays low on power
>up. Ideas? I ordered a POR IC but it has not arrived. The RC should
>work, but what is the problem?

---
I suspect a glitch on the clock line after CLEAR goes high. Also, make
sure that PRESET goes to Vcc and that the time constant of the RC is
substantially (10 times?) greater than the power supply rise time.

0 new messages