Recommended clock input
-
KhanTyranitar
- Posts: 81
- Joined: 21 Dec 2016
Recommended clock input
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
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
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: Recommended clock input
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?
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/
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
-
KhanTyranitar
- Posts: 81
- Joined: 21 Dec 2016
Re: Recommended clock input
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'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
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
- floobydust
- Posts: 1394
- Joined: 05 Mar 2013
Re: Recommended clock input
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.
Regards, KM
https://github.com/floobydust
https://github.com/floobydust
-
White Flame
- Posts: 704
- Joined: 24 Jul 2012
Re: Recommended clock input
You could even use the 6526's own cycle timer to trigger TOD blips. 
Re: Recommended clock input
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
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
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
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...
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Recommended clock input
What would you use for your output divider value? 546.13333333333333333333333333333?
Mike B.
Mike B.
-
DerTrueForce
- Posts: 483
- Joined: 04 Jun 2016
- Location: Australia
Re: Recommended clock input
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.
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.
Re: Recommended clock input
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.