How Can I Generate a 1Hz Pulse for a Digital Clock Using 74LS90 and 74LS47?

In summary, a NAND gate can generate a 1Hz square wave. You can do this by using a watch crystal and a 74HC4060 oscillator.
  • #1
minhduc515
12
1
i'm new on creating my own circuit. And I'm trying to create a digital clock, using 74ls90+74ls47
I have problem on creating 1hz square pulse part.

This is my teacher's Simulation
LdW3i7U.jpg


I have searched on google that i can create 1hz pulse by using NAND gate, crystal, or Ne555, but i can't find any document have image same to my teacher's simualtion

Anyone can explain me how that circuit work ? And how i can choose value of resistor, capacitor ? (eg :R43 = 4k7, R44 = 1k, C3 = 100uF ..)

(Link to the simulation, using Altium Designer : https://www.mediafire.com/?a4yljeglibk9rei)
Sorry for my bad English :D
 
Physics news on Phys.org
  • #2
When the circuit starts, the output of U13A will either by high or low. Which ever it is will cause a voltage swing on its input as current moves through R43 to either charge or discharge C3. This will continue until the U13A input voltage crosses the threshold so that the input is interpreted as switching from eithe 1 to 0 or 0 to 1.

Let's say that U13A output goes high. It will immediately force U13B low and two things will happen: Our circuit output will go low, and this sudden transition to low will be pass through C3 and reinforce the already low state of the U13A input. From here, R43 will slowly recharge C3 eventually causing the U13A input to cross the voltage threshold and become a logic 1. Making U13A go low, U13B go high, and everything happens in reverse until we reach the start of a new square wave.

In this case, "slowly" means half a second. So, in order to determine values for C3 and R43, you will need to know the output voltage swings of U13A and U13B and their 0-1 and 1-0 input transition voltages.
 
  • Like
Likes minhduc515
  • #3
minhduc515 said:
i'm trying to create a digital clock, using 74ls90+74ls47
I have problem on creating 1hz square pulse part.
Welcome to the PF. :smile:

You're not going to get a very accurate clock with an RC circuit. Even if you use a potentiometer to tune the frequency close to 1Hz, it willl drit with temperature and over time.

A much better way (and simpler) is to use a 32kHz watch crystal and a 74HC4060 oscillator + divider IC. I've used these before for a number of circuits, and the 4060 is a sweet IC. The figure below shows that you get 2Hz out of Q14, so to get 1Hz, just add one more external Flip-Flop.

https://www.eevblog.com/forum/micro...-oscillator-with-74hc4060-doesn't-oscillate!/

HC4060 Counter and 32kHz Xtal.jpg
 
  • Like
Likes minhduc515 and davenn
  • #5
  • Like
Likes jim hardy
  • #6
berkeman said:
Welcome to the PF. :smile:

You're not going to get a very accurate clock with an RC circuit. Even if you use a potentiometer to tune the frequency close to 1Hz, it willl drit with temperature and over time.

A much better way (and simpler) is to use a 32kHz watch crystal and a 74HC4060 oscillator + divider IC. I've used these before for a number of circuits, and the 4060 is a sweet IC. The figure below shows that you get 2Hz out of Q14, so to get 1Hz, just add one more external Flip-Flop.

https://www.eevblog.com/forum/microcontrollers/32khz-crystal-oscillator-with-74hc4060-doesn't-oscillate!/

View attachment 205460

thanks :D but i have already talked to my teacher that i'll use NAND gate create a 1hz square pulse :D
I have found this site about NAND gate waveform generator, that similar to my simulation : http://www.electronics-tutorials.ws/waveforms/generators.html
It said that the frequency of the square wave is given by f = 1 / 2.2 R1C1. But how it is derived?
 
  • #7
minhduc515 said:
thanks :D but i have already talked to my teacher that i'll use NAND gate create a 1hz square pulse :D
I have found this site about NAND gate waveform generator, that similar to my simulation : http://www.electronics-tutorials.ws/waveforms/generators.html
It said that the frequency of the square wave is given by f = 1 / 2.2 R1C1. But how it is derived?
So it sounds like this is for a schoolwork / homework assignment, so I will move it to the schoolwork forums for you.

Also, since this is your assignment, you should try to do the calculation yourself and show us your work. We can check it for you. :smile:
 
  • #8
BTW, you show a 100uF polar capacitor in your original circuit. Why is it a design error to use a polar capacitor in that position? :smile:
 
  • #9
minhduc515 said:
It said that the frequency of the square wave is given by f = 1 / 2.2 R1C1. But how it is derived?

It's pretty complicated to derive that equation and I'm not going to try here. Basically the capacitor charges in alternate directions with an exponential waveform of the form

Vc = Vcc(1-e-t/T).......(1)

See "Stable RC oscillator" in here...

https://www.fairchildsemi.com/application-notes/AN/AN-118.pdf

I would start with the waveform on the capacitor at the top of page 3. Note how the voltage on the capacitor goes below 0V and above Vcc. The capacitor actually charges from -0.5Vcc towards Vcc. When it reaches 0.5Vcc the logic gates toggle and the capacitor voltage shoots up to 3/2 Vcc and starts discharging towards 0V. So in my equation (1) you need to replace Vcc with 3/2*Vcc.

Knowing the starting and ending voltages it's possible to plug all the numbers into the capacitor exponential equation to work out "t" the time each phase takes and hence the frequency.

The equation you quoted (f = 1 / 2.2 R1C1) is actually a simplified version of the full equation they give on page 2. It assumes R2 >> R1. The capacitor C is mainly charged by current flowing through resistor R1 but there is a complication because the capacitor voltage exceeds Vcc and goes below 0V. This voltage is "clamped" to Vcc and 0V by the input diodes on gate A so there is a voltage across and current through R2. This effects the charge/discharge time and explains why their equation is more complicated. If you assume R2 >> R1 then R2//R1 is approximately equal to R1 and their equation is the same as the one you quoted.

It's slightly easier to understand how the single Schmitt Input oscillator works. If you are committed to using a NAND gate then a single Schmitt input NAND gate oscillator (74xx132 with one unused input connected to Vcc) might be a possibility.
 
  • Like
Likes minhduc515
  • #10
minhduc515;
You are asking for a square wave but I do not think you actually need a square wave, you only need a regular digital pulse signal with one pulse per second. A counter or divider only advances on one edge of the clock signal so the duty cycle does not need to be exactly 50%. If you take a train of short rectangular pulses and use a D-type flip-flop to divide that frequency by two, you will get a square wave with 50% duty cycle. It is difficult to build a true square wave oscillator using TTL logic which has an asymmetric internal circuit structure.

The 74LS00 circuit may work as a model, but I would not actually build an oscillator that way. Apart from the polar capacitor pointed out by berkeman in post #8, there is also an electrical problem with the LED and R44.
TTL gates are a “current sinking logic” and have little ability to supply current from Vcc through a loaded output to ground. If instead you connect the LED and series resistor between +5Vcc and the TTL output it will be much happier, as a TTL gate is very good at sinking current when low. The LED will then be on when the gate output is low.

The output characteristics of TTL are described here; https://en.wikipedia.org/wiki/Transistor–transistor_logic#TTL_with_a_.22totem-pole.22_output_stage

A TTL input signal is defined as "low" when between ground and 0.8V with respect to the ground, and "high" when between 2V and +5Vcc. https://en.wikipedia.org/wiki/Transistor–transistor_logic#Interfacing_considerations
 
  • Like
Likes berkeman and minhduc515

Related to How Can I Generate a 1Hz Pulse for a Digital Clock Using 74LS90 and 74LS47?

1. How do you create a 1Hz square pulse?

To create a 1Hz square pulse, you will need a signal generator, a pulse shaping circuit, and a power supply. The signal generator will produce a continuous signal at 1Hz frequency, and the pulse shaping circuit will convert this into a square pulse with a 50% duty cycle. The power supply will provide the necessary voltage and current to the circuit.

2. What is the purpose of using a pulse shaping circuit?

The pulse shaping circuit is used to convert a continuous signal into a square pulse with a specific frequency and duty cycle. This is important for accurately creating a 1Hz square pulse, as a continuous signal cannot be used directly.

3. Can a 1Hz square pulse be created without a signal generator?

No, a signal generator is necessary to create a 1Hz square pulse. It is responsible for generating a continuous signal at the desired frequency, which is then converted into a square pulse by the pulse shaping circuit.

4. What is the importance of a 50% duty cycle in a 1Hz square pulse?

A 50% duty cycle means that the square pulse has an equal amount of time in the "on" and "off" states. This is important for accurately representing the frequency of the pulse. A different duty cycle would result in a different effective frequency of the pulse.

5. Can a 1Hz square pulse be used in real-life applications?

Yes, a 1Hz square pulse can be used in various applications such as clock signals, data transmission, and control systems. It can also be used as a reference signal for testing and calibrating electronic devices.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
2
Views
4K
Replies
3
Views
3K
Replies
13
Views
3K
Replies
4
Views
3K
Replies
11
Views
10K
Replies
7
Views
3K
Replies
3
Views
4K
Replies
5
Views
5K
Back
Top