Clock sources

For discussing the 65xx hardware itself or electronics projects.
Post Reply
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Clock sources

Post by Dajgoro »

Could you post your clock sources schematics, i only know how to rig a 4060 as a crystal oscillator, so i would like something that can actually run faster than 4MHz...
User avatar
GARTHWILSON
Forum Moderator
Posts: 8775
Joined: 30 Aug 2002
Location: Southern California
Contact:

Post by GARTHWILSON »

A couple of old but good ap. notes from Fairchild:
HCMOS crystal oscillators: http://www.fairchildsemi.com/an/AN/AN-340.pdf
CMOS oscillators: http://www.fairchildsemi.com/an/AN/AN-118.pdf

It's often most productive however to just use one of the off-the-shelf oscillator cans that take the space of an 8- or 14-pin DIP. This will make sure the oscillator will always work correctly for the whole voltage and temperature range, and it's easy to change.

Image
ElEctric_EyE
Posts: 3260
Joined: 02 Mar 2009
Location: OH, USA

Post by ElEctric_EyE »

I made this last year. It works well, except the 74S124 uses some current.
Might be a little more money, but it's better then buying multiple crystals/cans.
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

GARTHWILSON wrote:
It's often most productive however to just use one of the off-the-shelf oscillator cans that take the space of an 8- or 14-pin DIP. This will make sure the oscillator will always work correctly for the whole voltage and temperature range, and it's easy to change.
I would love to do that, if just there were any to buy... They don't really sell them in electronic stores here where am I, and also are kinda rare on ebay...

So i am left whit crystals self made oscillators...

And thanks for the schematics...

One more question, will it work if i use a 74LS01 or other 74LS as an inverter?
User avatar
PaulF
Posts: 143
Joined: 08 Dec 2008
Location: Brighton, England

Post by PaulF »

TTL Chips (74LS, etc) need a different circuit to CMOS gates.
The one I use is as follows

Code: Select all

    470 ohm            470 ohm
    ----               ----
 --|    |--         --|    |--
|   ----   |       |   ----   |
|          |       |          |
|  |\      |  10n  |  |\      |     |\
|--| >O--------||-----| >O----------| >O---
|  |/                 |/    |       |/
|                           |
 -------------|X|-----------
This has worked reliabally with crystals from 1MHz to 18MHz using a 74LS04 or 74S04 device.
Shift to the left,
Shift to the right,
Mask in, Mask Out,
BYTE! BYTE! BYTE!
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Post by Dajgoro »

Thanks! :D
User avatar
GARTHWILSON
Forum Moderator
Posts: 8775
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Clock sources

Post by GARTHWILSON »

In trying to figure out what some obviously erroneous oscillator data in a PIC microcontroller data sheet should have been (yes, there are other companies besides WDC that have errors in their data sheets), I came across this page that links some more ap. notes on crystal oscillator design near the top: http://www.microchip.com/forums/m49934.aspx
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Clock Sources

Post by BigDumbDinosaur »

Here's the clock generator circuit I used in POC V1. It produce an output frequency that is one-half that of the can oscillator that drives it.

Two phase clock generator.
Two phase clock generator.
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Re: Clock sources

Post by Dajgoro »

Phi1 and Phi2 shown on the schematic are not the same as the one generated by the 6502, since the 6502 splits the clock on his own.
In my new cpu board I use a 74HC393 counter to get multiple clocks(I have rotary switch for selecting clocks).
User avatar
BigDumbDinosaur
Posts: 9428
Joined: 28 May 2009
Location: Midwestern USA (JB Pritzker’s dystopia)
Contact:

Re: Clock sources

Post by BigDumbDinosaur »

Dajgoro wrote:
Phi1 and Phi2 shown on the schematic are not the same as the one generated by the 6502, since the 6502 splits the clock on his own.

That's correct. However, this clock generator is on my W65C816S-powered POC. For other applications just ignore the phase you don't need. Also note that the two phase clock is not required with the W65C02S. That was an NMOS "feature." All timing on WDC microprocessors is based on the Ø2 clock only.

Quote:
In my new cpu board I use a 74HC393 counter to get multiple clocks (I have rotary switch for selecting clocks).

Tick-tock. :D
x86?  We ain't got no x86.  We don't NEED no stinking x86!
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Re: Clock sources

Post by Dajgoro »

What about making a more advanced clock source with a custom clock divider, so it can divide by 2,3,4,5, etc... Maybe a fast oscillator with a ring counter could be used.
Also software clock settings would be nice.
User avatar
GARTHWILSON
Forum Moderator
Posts: 8775
Joined: 30 Aug 2002
Location: Southern California
Contact:

Re: Clock sources

Post by GARTHWILSON »

Dajgoro wrote:
What about making a more advanced clock source with a custom clock divider, so it can divide by 2,3,4,5, etc... Maybe a fast oscillator with a ring counter could be used.
Also software clock settings would be nice.
That sounds more or less like the Maxim/Dallas DS1077 and the DS1085, both of which work at 5V and need no external components. They don't have crystal accuracy, but about 1% error which is good enough for RS-232, and the frequency can be programmed via I²C, from 8.1kHz to 133MHz.

Image

If accuracy is not important at all and you just want to see how fast you can run it up before the computer starts having problems, you can make a relaxation oscillator whose frequency varies with a pot, like so:

Image

That one goes to 73MHz. Below is an earlier one I did which is slower:

Image
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
User avatar
Dajgoro
Posts: 808
Joined: 08 Aug 2011
Location: Croatia
Contact:

Re:

Post by Dajgoro »

PaulF wrote:
TTL Chips (74LS, etc) need a different circuit to CMOS gates.
The one I use is as follows

Code: Select all

    470 ohm            470 ohm
    ----               ----
 --|    |--         --|    |--
|   ----   |       |   ----   |
|          |       |          |
|  |\      |  10n  |  |\      |     |\
|--| >O--------||-----| >O----------| >O---
|  |/                 |/    |       |/
|                           |
 -------------|X|-----------
This has worked reliabally with crystals from 1MHz to 18MHz using a 74LS04 or 74S04 device.
It also works fine with a 7404, I tested it at 10MHz.
Post Reply