6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Oct 03, 2024 12:22 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Recommended clock input
PostPosted: Wed Jan 18, 2017 11:44 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 1:07 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1383
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/

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 2:53 am 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 3:26 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1383
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 12:21 pm 
Offline

Joined: Tue Jul 24, 2012 2:27 am
Posts: 674
You could even use the 6526's own cycle timer to trigger TOD blips. ;)

_________________
WFDis Interactive 6502 Disassembler
AcheronVM: A Reconfigurable 16-bit Virtual CPU for the 6502 Microprocessor


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 12:48 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 452
Location: Canada
Would vertical sync from the video be accurate enough ? It'd required a 60Hz filter.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 19, 2017 2:54 pm 
Offline

Joined: Wed Dec 21, 2016 9:26 pm
Posts: 81
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 26, 2017 1:20 am 
Offline

Joined: Sat Feb 07, 2015 7:57 pm
Posts: 13
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...


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 26, 2017 6:20 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1948
Location: Sacramento, CA, USA
What would you use for your output divider value? 546.13333333333333333333333333333?

Mike B.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 26, 2017 10:56 am 
Offline

Joined: Sat Jun 04, 2016 10:22 pm
Posts: 483
Location: Australia
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.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 26, 2017 11:41 am 
Offline

Joined: Sun Apr 10, 2011 8:29 am
Posts: 597
Location: Norway/Japan
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot], qookie and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: