Recommended clock input

For discussing the 65xx hardware itself or electronics projects.
Post Reply
KhanTyranitar
Posts: 81
Joined: 21 Dec 2016

Recommended clock input

Post by KhanTyranitar »

Ok, I am using a 6526 chip in my project, and I want to use a 60Hz TTL level input that is quite accurate. What would you guys recommend?
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support
User avatar
floobydust
Posts: 1394
Joined: 05 Mar 2013

Re: Recommended clock input

Post by floobydust »

KhanTyranitar wrote:
Ok, I am using a 6526 chip in my project, and I want to use a 60Hz TTL level input that is quite accurate. What would you guys recommend?
The 6526 TOD can be configured for either 50- or 60Hz input. In short, it was designed to use the line frequency to drive it (voltage dropped and signal shaped of course). As most power companies manage the number of cycles in a 24-hour period to maintain synchronous clock accuracy, it should be an accurate source.

Other than this, getting a 60Hz accurate source was accomplished by some older style chips, such as the MM5369, which uses a standard color burst Xtal at 3.58MHz. Here a link:

http://www.eleccircuit.com/60hz-clock-pulse-generator/
KhanTyranitar
Posts: 81
Joined: 21 Dec 2016

Re: Recommended clock input

Post by KhanTyranitar »

Yes, but that assumes using AC current as a source for the signal, but my project runs off 12v DC. I don't want to run AC just to time a chip.

I'll have a look at that pulse generator.
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support
User avatar
floobydust
Posts: 1394
Joined: 05 Mar 2013

Re: Recommended clock input

Post by floobydust »

Re needing AC line access... true, but you never specified any details about your project. You just have to think about the options. You can also use a can oscillator and a series of dividers to get 60Hz. It all depends on your overall goals and what existing clock sources exist in your project.
White Flame
Posts: 704
Joined: 24 Jul 2012

Re: Recommended clock input

Post by White Flame »

You could even use the 6526's own cycle timer to trigger TOD blips. ;)
User avatar
Rob Finch
Posts: 465
Joined: 29 Dec 2002
Location: Canada
Contact:

Re: Recommended clock input

Post by Rob Finch »

Would vertical sync from the video be accurate enough ? It'd required a 60Hz filter.
KhanTyranitar
Posts: 81
Joined: 21 Dec 2016

Re: Recommended clock input

Post by KhanTyranitar »

The application will have a regulated power supply that supplies 12v and 5v DC. But no AC. The unit I'm building may also run off batteries. But I would like the TOD clock to work.
I am working on building a 65816 based computer (for personal use)

Eventual goals include:
65816 CPU up to 14-16 MHz (In Turbo Mode)
up to 16MB RAM (512K on the main board)
Dual YM3438 audio
IEC serial device support
grey-lensman
Posts: 13
Joined: 07 Feb 2015

Re: Recommended clock input

Post by grey-lensman »

Complete 32.768 kHz can oscillators are easy to come by. Divide the output with a pair of 8 bit counters (74HC590 or equivalent) and you'll get an accurate 60 Hz square wave. It's good enough for clocks...
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Recommended clock input

Post by barrym95838 »

What would you use for your output divider value? 546.13333333333333333333333333333?

Mike B.
DerTrueForce
Posts: 483
Joined: 04 Jun 2016
Location: Australia

Re: Recommended clock input

Post by DerTrueForce »

Barry is right there. The divisor would not be an integer if you wanted to use a 32.768 kHz signal.
You could use a 1.8432MHz crystal(an ACIA baud-rate crystal) and divide it by 30,720($7800). Or, if you're using one of the NXP UARTS, you could take the 3.6864MHz that they use and divide by 61439($EFFF). Both of those would produce 60Hz, if I've got my maths right.
Tor
Posts: 597
Joined: 10 Apr 2011
Location: Norway/Japan

Re: Recommended clock input

Post by Tor »

A 32.768kHz oscillator was used in my first digital watch (LED), back in 1976. There was a tiny tuning thingie in there. Probably a capacitor. The clock was a bit too fast, so I connected a frequency counter and fine-tuned the 60Hz. After three months the watch was still within one second off. Presumably the oscillator had then been shifted to 32.760 kHz, which doesn't sound unreasonable.
Post Reply