Oscillator with 50% duty

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice.
Post Reply
gesari
Posts: 31
Joined: 11 Apr 2019, 07:15
Location: Valladolid, Spain
Contact:

Oscillator with 50% duty

Post by gesari » 08 May 2019, 08:08

Hi,
After receiving a Gigatron kit I finished assembling it yesterday late at night. I built a fully socketed one, and this allowed me to do some experimentation regarding its clock oscillator.
First, replacing U1 by a 74HC04 I got a near perfect square wave for the clock. With this clock, and without the delaying capacitor, C3, I could run the Gigatron at 8MHz with a 70ns SRAM (A cypress part, not the 55ns one provided with the kit).

So the easy way to get a square wave in the clock is to replace U1, but what can we do if a 74HCT04 is already soldered without a socket?
Well, a square wave can be achieved by changing the resistor network:
oscillators.gif
oscillators.gif (13.47 KiB) Viewed 184 times
The idea is to desolder the 1Meg resistor and to connect it to the two terminals of the crystal, and to add another 1K2 resistor to ground.
These are the waveforms obtained:
osc2.jpg
osc2.jpg (80.35 KiB) Viewed 184 times
osc1.jpg
osc1.jpg (81.25 KiB) Viewed 184 times

User avatar
marcelk
Posts: 290
Joined: 13 May 2018, 08:26

Re: Oscillator with 50% duty

Post by marcelk » 09 May 2019, 18:26

Thanks that will come in handy! I never got the 74HC04 to start oscillating reliably BTW.

klf
Posts: 1
Joined: 10 Jan 2019, 22:48

Re: Oscillator with 50% duty

Post by klf » 09 May 2019, 22:22

You should use 74HCU04 for an oscillator, not 74HC04. A 74HC04 actually consists of three inverters in a row, therefore it cannot be biased into linear mode (that's what the 1Meg resistor does).

gesari
Posts: 31
Joined: 11 Apr 2019, 07:15
Location: Valladolid, Spain
Contact:

Re: Oscillator with 50% duty

Post by gesari » 10 May 2019, 21:43

Yes, I know about the 74HCU04. It is well suited for linear amplifiers (as does the 4069U). But when it comes to oscillators the problem with the HC04 or the HCT04 is to oscillate at some other frequency than the crystal (a buffered inverter with a feedback resistor is a ring oscillator already). This is what looks strange to me: Marcel says its HC04 doesn't star, but I had no problem at all with an HC04 in the Gigatron oscillator. I made it oscillate with several crystals (2.048MHz, 4MHz, 6.0MHz, 6.144MHz, 6.25MHz, 8MHz, 9.04MHz, 10MHz), and even with some coils in the place of the crystal, and I always got a nice square wave. (For 6.0 to 8.0 MHz I also got my monitor in sync. At 9.04 or 10MHz the Gigatron LEDs stopped working)

Here, a photo with a homemade coil, running at about 7MHz...
coil1.jpg
coil1.jpg (124.24 KiB) Viewed 130 times

Post Reply