6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:31 pm

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Wed Mar 29, 2006 8:51 pm 
Offline

Joined: Tue Mar 09, 2004 3:43 pm
Posts: 44
Location: Bristol, UK
blackadder wrote:
The Commodore 64 did something like this, they took 9VAC from the power supply and ran it through a schmitt trigger to create 60Hz clock pulses for the 6526 TOD counter.


Which is fine until you run your code on a Commodore 64 in Europe and the interrupts come in at 50Hz. Did the C64 ROM correct for this somehow? I know I had a non-volatile real-time clock add-on for the Atari ST that came with clock software that assumed a 60Hz clock and ran slow on 50Hz mains.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Mar 29, 2006 9:30 pm 
Offline

Joined: Mon Mar 20, 2006 2:03 am
Posts: 24
coredump wrote:
Which is fine until you run your code on a Commodore 64 in Europe and the interrupts come in at 50Hz. Did the C64 ROM correct for this somehow? I know I had a non-volatile real-time clock add-on for the Atari ST that came with clock software that assumed a 60Hz clock and ran slow on 50Hz mains.


The TOD clock in the 6526 CIA apparently has a setting for 50/60Hz.
Of course doing a clock using the power line freq for interrupts you wouldn't have this luxury. As long as you only want time to the second it's just a matter of counting pulses and incrementing the clock every 50 or 60 counts.


BTW, you can see the schmitt trigger circuit here, it's at the bottom of sheet 2.
http://www.devili.iki.fi/Computers/Commodore/C64/Programmers_Reference/Schematic/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 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: