Page 2 of 2
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Wed Jul 25, 2018 10:58 am
by GaBuZoMeu
Rockwells circuit is the typical standalone TTL crystal oscillator. Completely independant of anything else. The same here:
(called (C)EPAC, a publication from the German monthly c't)
Using this autonomous oscillator circuit allows to insert a clock divider (which in turn permits the use of smaller and/or cheaper higher frequency crystals). They use LS14 or HC14 (schmitt-trigger) that performs a little better for the reset circuitry (upper right corner) and not worse within the oscillator.
I think the older MOS circuits are created to minimize the amount of glue logic. In 1975
each gate was valuable

Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Wed Jul 25, 2018 11:14 am
by BigEd
Might be worth noting that these days clock cans are much preferred - they are encapsulated oscillators, literally.
Also might be worth noting that a clock divider gives the possible advantage of a 50% duty cycle, and control over the edge rate and drive. (Clock can specs can be 40/60 or similar, IIRC.)
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Wed Jul 25, 2018 12:30 pm
by kazzie
First, just to say, I've been lurking here for far too long

I'll try to make an effort to post more often... So hello to those who don't know me from other forums.
My first thought was "you're not lurking, I've read
loads of your posts", then I realised I wasn't thinking of this forum!
Crystal oscillators using logic gates back then, was one of those areas of electronics that was known in some circles as a "black art" (hard to understand, so left to the people who were 'good' at it). So data sheet designs would often be copied.
I think the older MOS circuits are created to minimize the amount of glue logic. In 1975
each gate was valuable

Yes, I think we're on the money here.
Might be worth noting that these days clock cans are much preferred - they are encapsulated oscillators, literally.
Which is what I've decided to use in my build (see first post). And the double inverter can stay where it is, so I hopefully won't be creating any new timing issues.
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Wed Aug 08, 2018 12:16 pm
by kazzie
For anyone who's interested, I've succeeded in getting my System 1 clone running. (Cassette interface is pending.) I've got a write-up of the build on the Acorn-oriented
Stardot forums.
I now have a nice platform for playing around with some 6502 assembly in the future!
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Wed Aug 08, 2018 5:15 pm
by GaBuZoMeu
Congratulations!
May I asked how many inverters/buffers you have left in your oscillator circuit?
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Fri Aug 10, 2018 6:12 pm
by kazzie
Congratulations!
May I asked how many inverters/buffers you have left in your oscillator circuit?
I used the two LS04 inverters that were used in the original circuit. Thus, except for the use of a can oscillator instead of a crystal and resistor, the whole board* is wire-for-wire equivalent to an original System 1.
*Except for the cassette interface, which I haven't built yet. There's space reserved for that to be added at a later date.
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Fri Dec 07, 2018 8:06 pm
by linker3000
Hello,
I'm working on a work-alike build of an
Acorn System 1, which had an NMOS 6502 running at 1MHz. I've got a fistfull of Rockwell 6502s to hand, but the 1MHz crystal was a bit more bother. It seems they only exist in the big HC-51 package, which is too big for my board, so I'm planning on using an 8-pin DIP oscillator instead.
Attached is an extract of the System 1's circuit diagram:
system1clock.png
(As can be seen, the System 1 supported using a capacitor instead of a crystal for industrial applications where timing was not critical.)
I'll be connecting the DIP oscillator directly to Phi0in, and removing the resistor and crystal/capacitor. That'll leave me with Phi2out passing through a pair of inverters on its way to fee the rest of the board. Are the inverters needed? The only benefit I can foresee is that using the 74LS04 to drive the board's clock may be preferable to using the 6502, and that there are two extra gate delays on the Phi2 clock. If these weren't needed, why wouldn't the designers have taken Phi2 direct from the 6502 and foregone the second inverter? Or would this mean the other devices connected to Phi2 would affect the crystal's timing?
Looking at Garth Wilson's primer on
clock generation, he suggests a different crystal-based circuit, where Phi2 goes directly to the board, and isn't used in the clock generation. (This is the style of circuit used by Acorn in their later BBC Microcomputer.) This suggests that the double-inversion isn't needed in my case.
If the two inverters are no longer necessary, I may repurpose them for something else.
Hi,
Did you ever complete the project? I have yet to start!!
viewtopic.php?f=12&t=3286&hilit=planning+build+acorn#
Re: Clock circuit for NMOS 6502 - Gate Delay on Phi2?
Posted: Fri Sep 06, 2019 9:08 am
by kazzie
Just stumbled across this post while looking to reference what I'd learned about oscillator circuits; sorry for the late reply!
I made a build thread over on
stardot.org, so all the gory details are there.
The machine is fully built and working, with the exception of the cassette circuitry, which needs more debugging: it can't save and load programs to cassette at the moment, but will run programs that are typed in or in ROM. I'll probably be attacking it again over the winter months...