6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Sep 20, 2024 8:30 am

All times are UTC




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Dec 16, 2015 12:17 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
So, in theory somebody could make a design where the clock is stopped for somewhat less than 20 microseconds, and then do a single 'refresh' cycle. If they really wanted to use the NMOS part, of course.


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 16, 2015 12:21 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
I think that would work. It might not suit a life-critical application!


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 16, 2015 3:33 pm 
Offline

Joined: Sun Apr 10, 2011 8:29 am
Posts: 597
Location: Norway/Japan
BigDumbDinosaur wrote:
That's because there is no delete button. :D Everyone knows that once it's on the Internet it never goes away. :lol:

I wish that were true, sometimes.. :) see "The secret, hidden, transparent 6502 DMA channel" (the illustrations are gone.)
(I'm currently hunting another info page which disappeared with no trace in archive.org or anywhere else. With little hope)


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 16, 2015 6:00 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8389
Location: Midwestern USA
Tor wrote:
BigDumbDinosaur wrote:
That's because there is no delete button. :D Everyone knows that once it's on the Internet it never goes away. :lol:

I wish that were true, sometimes.. :) see "The secret, hidden, transparent 6502 DMA channel" (the illustrations are gone.)
(I'm currently hunting another info page which disappeared with no trace in archive.org or anywhere else. With little hope)

I, of course, was being somewhat sarcastic. :D As you've noted, things do seem to disappear now and then. It's the embarrassing stuff that seems to stick around.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 16, 2015 7:21 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8510
Location: Southern California
BigEd wrote:
Ah, I see 50kHz minimum is mentioned on a datasheet. That gives a max cycle time.
http://archive.6502.org/datasheets/mos_ ... v_1985.pdf
via viewtopic.php?f=4&t=3371
and
Quote:
So, in theory somebody could make a design where the clock is stopped for somewhat less than 20 microseconds, and then do a single 'refresh' cycle. If they really wanted to use the NMOS part, of course.

The data sheet is not clear on whether the duty cycle must be 50% at the minimum guaranteed operating frequency; but if it does need to, you would need to have a clock edge at least every 10µs, which is the half cycle.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 17, 2015 5:45 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
We know that datasheets dictate timing in terms of pulse-width, not duty cycle, so in that sense we can choose any duty cycle we please as long as pulse-width spec's are satisfied. The linked Commodore datasheet is a bit of a headscratcher, though! :) I quickly noticed two typos, and later a couple of goofy but serious problems I won't bother describing unless someone asks. Also, regarding the point at hand, I find it odd that Commodore lists both min and max figures for PWHØ0 (ie, Ø0 (IN) Pulse Width).

Rockwell's NMOS '02 datasheet makes more sense, specifing a min figure only, as I'd expect. (Both datasheets state a limit for slowest operation, but they do so by means of a separate spec -- either min clock frequency or its reciprocal, max cycle time.)
Attachment:
Rockwell NMOS '02 timing.png
Rockwell NMOS '02 timing.png [ 62.56 KiB | Viewed 525 times ]
Here (above) is what Rockwell has to say, and I must say I sure as heck would rather use their datasheet than Commodore's!! I expect the two chips are fundamentally the same, even though the exact figures may differ. It looks to me as though it's possible to stop the clock either high or low for periods up to about 10 uS (Rockwell) or 20 uS (Commodore). The actual (as opposed to specified) limit may be in the millisecond range, as Ed suggested.

I agree the 'C02 offers even more timing freedom (and other major advantages as well). But you can go a long way with 10 uS -- certainly in terms of cycle-stretching, and even DMA.

-- Jeff


Attachments:
rockwell_r650x_r651x.pdf [2.3 MiB]
Downloaded 56 times

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
Top
 Profile  
Reply with quote  
PostPosted: Fri Dec 18, 2015 6:14 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1228
Location: Soddy-Daisy, TN USA
Concerning the Apple IIe and stopping the clock...

I could be wrong but I'm pretty sure the Apple IIe (or II series) did not stop the clock even while rendering video.

IIRC, the video hardware would access the addr/data bus during the low phase of the cycle and the CPU gets it during the high phase. Or something like that. Effectively allowing both devices to access data at the same time. Well, same clock time.

At least that's how I understand it works

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 19, 2015 3:57 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1948
Location: Sacramento, CA, USA
cbmeeks wrote:
... I could be wrong but I'm pretty sure the Apple IIe (or II series) did not stop the clock even while rendering video ...

Apparently it wasn't a stop, but more of a periodic stretch:

viewtopic.php?p=29095#p29095

Mike B.


Top
 Profile  
Reply with quote  
PostPosted: Sat Dec 19, 2015 5:51 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
As RDY was brought to the internal expansion bus, it's possible that some Apple I/O cards would use RDY to stall the CPU while they did some DMA. As you say, the clock itself continues, in its special irregular way. But the programmer experience could be that the CPU stops for DMA.


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

All times are UTC


Who is online

Users browsing this forum: handyandy and 7 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: