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

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: lowest frequency?
PostPosted: Tue Dec 12, 2006 11:17 am 
Offline

Joined: Tue Dec 12, 2006 11:14 am
Posts: 1
Does the 6502 have a lowest frequency? for example, 10HZ


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 12, 2006 2:13 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
The old NMOS 6502 could start to lose the data from its registers below 100kHz, but the CMOS ones can be stopped indefinitely with the clock high. WDC's current production can be stopped with the clock in either phase and won't lose info.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 23, 2006 12:40 pm 
Offline

Joined: Sat May 20, 2006 2:54 pm
Posts: 43
Location: Brighton, England
There is no minimum clock frequency for a CMOS processor (65C02 etc), but the clock must have the correct duty cycle. The low portion of the clock cycle can be no longer than 5 microseconds, while the high portion of the clock cycle can be of any length.

To run a 65C02 at a low speed, you need to hold the clock input high most of the time and pulse it briefly low at a suitable rate.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 23, 2006 5:39 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
Quote:
The low portion of the clock cycle can be no longer than 5 microseconds
Again, WDC's 65c02's being made today can be high or low as long as you want. All the others (which are no longer made, like Rockwell, Synertek, GTE (CMD), etc.) must be kept low no more than 5µs at a time.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Dec 23, 2006 11:40 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
Much, much more important is the slew rate of the clock. When WDC says that their clocks have a maximum rise or fall time of 5ns, they mean it. :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 27, 2006 6:55 pm 
Offline

Joined: Sat May 20, 2006 2:54 pm
Posts: 43
Location: Brighton, England
Very true, but generating a clock with a fast slew rate is easy. Run your oscilator at twice the desired frequency and divide it down using a 74AC74 connected to the 65C02 clock input with a short lead. This will give sub-nanosecond rise and fall times.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 27, 2006 9:33 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
Nope. Look closely again at the 74AC timings; you'll see its rise and fall times are just a hair outside of WDC's specs.

You need to use those clock oscillator cans. That's the only thing that will work that's super cheap.

Also, 74F-series logic will also switch fast enough too, but just barely.

(I know this because I've done it. Look around the forum for my Kestrel-related problems. :) )


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 27, 2006 11:11 pm 
Offline

Joined: Sat May 20, 2006 2:54 pm
Posts: 43
Location: Brighton, England
Hummm, yes, I see what you mean.

Using the 65C816 chip, where phi2 is an input and the clock oscilator also drives the main phi2 line through the rest of the machine puts a heavy capacitive load on the oscilator, requiring a powerful driver and, ideally, line termination to prevent reflections. I'm surprised the little oscilator cans can manage it.

I was thinking of the 65C02, where the clock oscilator ONLY drives the phi0 input on the CPU itself. In this case, the capacitive loading on the clock chip is low, and the 74AC series easily achieves the rise-time specifications required.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Dec 28, 2006 4:32 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
Quite possibly. In my next-generation Kestrel design, I'm going to drive the CPU clock from a can, plus one NAND gate as a buffer, feeding whatever other logic needs it. That keeps the CPU's clock nice and clean. I still have a few 74F00 gates left over from my last experiments with the Kestrel 1p3.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 29, 2006 2:47 pm 
Offline

Joined: Sat May 20, 2006 2:54 pm
Posts: 43
Location: Brighton, England
That will work. If you've got the spare gates, buffer the oscillator twice, with one buffer just feeding the CPU and the other feeding the rest of the system. This avoids propogation delay differences.


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

All times are UTC


Who is online

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