Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 15th January 2008, 01:44 AM   (permalink)
Wink Wiring a 4013

OK, I have only built 2 electronics circuits before. The first was a flip-flop, and the second was a d-type flip-flop. Now I have designed a logical diagram of a simple calculator circuit using one of these simulators. All works fine. Now the hard bit, actually translating that logic diagram into a circuit. My first dilemma is wiring up a 4013 chip. I thought, ok simple, just +9v into v+ and 0v to ground. But it doesn't behave as i expect, in fact Q1 always seems to have output even if i ground data in and clock. Can someone explain to me how to correctly wire a 4013 chip.
matthewwren is offline  
Old 15th January 2008, 02:04 AM   (permalink)
Default

Quote:
Originally Posted by matthewwren
OK, I have only built 2 electronics circuits before. The first was a flip-flop, and the second was a d-type flip-flop. Now I have designed a logical diagram of a simple calculator circuit using one of these simulators. All works fine. Now the hard bit, actually translating that logic diagram into a circuit. My first dilemma is wiring up a 4013 chip. I thought, ok simple, just +9v into v+ and 0v to ground. But it doesn't behave as i expect, in fact Q1 always seems to have output even if i ground data in and clock. Can someone explain to me how to correctly wire a 4013 chip.
What are you using it for, and what are you expecting it to do? A 4013 looks at the logic level (0 or 1, 0V or 9V in your case) presented to the D input, and transfers that level to the Q output when the clock input transitions rapidly from 0 to 1. Nothing happens on the falling edge of the clock, and nothing happens when the logic level changes on the D input, until the next clock edge. To make all this work, you must connect the SET and RESET inputs to logic 0.
__________________
Ron

Roff is offline  
Old 15th January 2008, 02:06 AM   (permalink)
Default

Set and Reset must be grounded. Then the Q Output becomes the same logic state that the D Input is at when the Clock Input goes high.

If the D Input is high when the Clock Input goes high then the Q Output becomes high.
If the D Input is low when the clock Input goes high then the Q Output goes low.
It is clocked on the positive-going edge of the Clock Input.
__________________
Uncle $crooge
audioguru is offline  
Old 15th January 2008, 04:51 PM   (permalink)
Default

At first I didn't connect s and r to ground. How would I know if I damaged the chip?

Must I have the clock connected? I was kind of sticking a wire in and out of the bread board to simulate a clock ticking.

The other thing I don't understand is how important the value of the resistors are. I mean I have a 9v input and these things can operate at a max of 12v, so do i ned to use resistors? And if so would that be purely to manipulate the direction of the current?

On Q output, can i directly connect this up to say an LED and then ground the LED, or should I stick the Q output to a transistor?

I also get stuck on running parallel circuits - how do I stop the current getting diverted away from one line of high resistance to the one with lower? I imagine there is some formula for equalising resistance so that current flows in both circuits, can someone help me understand how to get current flowing into both circuits?

Sorry, I am a real noob at electronics.
matthewwren is offline  
Old 15th January 2008, 04:54 PM   (permalink)
Default

A clock signal is how fast the chip will operate. Do you know what a 555 Timer is?
Krumlink is offline  
Old 15th January 2008, 04:59 PM   (permalink)
Default

yup, i already have build a circuit with a 555 chip ... my design for the calulator uses the clock to read/write to the flip-flops. First though I just want to control the inputs manually to see that the 4013 works the way i expect it to. Ie data only gets set when the clock has input. I did build a flip-flop using just transistors and resistors, so I understand how the chip should work ... i even wired it up to my pc. However I don't seem to be able to wire up this 4013 chip correctly ...
matthewwren is offline  
Old 15th January 2008, 05:02 PM   (permalink)
Default

Quote:
It is clocked on the positive-going edge of the Clock Input.
Will me sticking a wire in and out of the clock input create an edge? I didn't think these 4013 chips were edge triggered ... I thought it would read as long as I had the voltage high.
matthewwren is offline  
Old 15th January 2008, 05:03 PM   (permalink)
Default

Hmmm

Well hook up a 555 timer to create a nice slow signal (around 5 hz) so that if you connected a LED up to it you could see it flashing. Then try and see if it works?
Krumlink is offline  
Old 18th January 2008, 11:53 PM   (permalink)
Default

No luck with wiring the timer up. If I hook an LED up to the 555 output I can see the flashing light. If I then put this into the clock input on the 4013, then ground S and R, it really doesn't matter what I put in D, output Q just follows the clock pulse, ie Q is high when Clock is high, and low when it is low, and I get nothing out Qbar. Can someone maybe scribble me a diagram of how to wire this 4013 with a switch controlling input to D and a 555 inputting to clk, with resistors and all, as this has really stopped me in my tracks.

Thanks,

Matt
matthewwren is offline  
Old 19th January 2008, 12:20 AM   (permalink)
Default

If you connect the D input of a CD4013 to its Q-bar output then it should divide the clock frequency by 2. Then the Q output can drive an LED.

Using a wire as the clock input is not good. The wire can "bounce" and make many contacts and the counter might count them all.

You show your circuit with its resistors and all for us to help fix it.

EDIT: Q-bar connects to the D input for the CD4013 to divide the clock frequency by 2.
__________________
Uncle $crooge

Last edited by audioguru; 19th January 2008 at 01:07 AM.
audioguru is offline  
Old 19th January 2008, 12:35 AM   (permalink)
Default

Get yourself a pushbutton momentary contact switch. Build the circuit below.
The capacitor C1 debounces Switch. The first flipflop generates a single short pulse every time you push the switch. The second flipflop changes state every time it sees the pulse on the clock input.
To make the LED brighter, eliminate the resistor in series with the LED (replace it with a piece of wire).
Attached Images
File Type: png debouncer and toggle ff sch.PNG (26.5 KB, 29 views)
__________________
Ron

Roff is offline  
Old 19th January 2008, 01:04 AM   (permalink)
Default

OOPS,
Ron is correct.
Connecting Q-bar to the D input makes the CD4013 divide the clock frequency by two.
__________________
Uncle $crooge
audioguru is offline  
Old 19th January 2008, 01:11 AM   (permalink)
Default

ok, here is the circuit I built. Initially the light is off, then if I push the button the light goes on - I release the swith and the light stays on ...

Bouncing is to do with the signal from the switch bouncing, right? Which wouldn't cause the above effect, or not?
Attached Images
File Type: jpg circuit.JPG (13.1 KB, 21 views)
matthewwren is offline  
Old 19th January 2008, 01:22 AM   (permalink)
Default

Thank you for your diagram Roff. The problem is I don't understand why you put the resistors and capacitors where they are. I am a complete noob at this, so I need a little pointing in the right direction. Can you explain briefly why you are putting the capacitors and resistors where they are? And why do you have a separate circuit at the top? What does that do?

Sorry for the really basic questions.

Matt
matthewwren is offline  
Old 19th January 2008, 01:28 AM   (permalink)
Default

Roff corrected my mistake before.

With the D input high all the time then clocking the CD4013 makes the Q output high. So it will always be high.
Connect the D input to the Q-bar output for the LED to alternately turn on and off with each clock pulse.

Roff's circuit uses one part of the CD4013 as a switch debounce circuit.

Never leave a Cmos input floating like you show with the D input and the switch open. It must be high or low. Use a resistor for one and the switch for the other.
__________________
Uncle $crooge
audioguru is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
New to using 4013 flip flop ICs chadj2 General Electronics Chat 11 3rd December 2007 07:34 PM
Help needed with 4013 circuit glids Electronic Projects Design/Ideas/Reviews 12 21st March 2007 03:59 PM
Finding a specific wiring diagram Skye Datasheet/Parts Requests 2 5th June 2006 04:29 AM
Step motor wiring diagram?? need help 5V - --- > 12V linuxglobal General Electronics Chat 5 22nd February 2006 03:19 PM
+5v pulse to trigger 4013 Flip Flop RaG Electronic Projects Design/Ideas/Reviews 3 31st January 2005 02:44 AM



All times are GMT. The time now is 01:11 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker