6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Apr 27, 2024 7:47 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Mar 12, 2024 5:28 pm 
Offline

Joined: Sun Aug 28, 2022 7:30 pm
Posts: 25
Hi, experts.

I need to test an R6520 from a microcontroller. The data sheets for the R6520 and M6820/6821 indicate 100 kHz as the minimum value for frequency (maximum period of 10 usec).
Some information from Commodore says that the MC6821 is a completely static device. On the other hand I saw a VHDL code that emulated the MC6821, without any minimum frequency restriction.
Will the R6520 or MC6821 work below 100 kHz?

Thanks in advance.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 13, 2024 11:02 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1000
Location: Canada
I've had a MOS 6502 run well at 50kHz, but I can't guarantee any other 6500 series chip will run at that speed. Just give it a try.

Edit: Oops, so if it fails you won't know if it's because it's running too slow or the chip is bad. Why do you need to run it it so low?

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2024 7:05 am 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 990
Location: near Heidelberg, Germany
Maybe have a look at the WDC65C21. This chip is still being produced and IIRC fully static.
Does it need to be the old M6821 or R6520?

Edit: oops you want to test an original chip. What Microcontroller are you using to test it? I believe you can run Arduinos fast enough to run the chip above 100kHz. 16MHz/100kHz is 160 cycles... Maybe not in C though.

Or you can test the PIA in a known working computer like the Commodore VIC20, the PET, or even the VC1541.

_________________
Author of the GeckOS multitasking operating system, the usb65 stack, designer of the Micro-PET and many more 6502 content: http://6502.org/users/andre/


Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 14, 2024 6:20 pm 
Offline

Joined: Wed Aug 21, 2019 6:10 pm
Posts: 217
Also, if what the data sheet means by "static" is that the E line does not have to keep pulsing when not doing an operation on the chip, then it seems like a circuit could be rigged up to run through two clock cycles when triggered. A clocked latch to catch read values from the bus at the right part of the process and then the MCU doesn't have to be running at an effective ~50kHz (for the falling select line transition in the middle of Phi1 before the rising E clock).


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 18, 2024 1:56 pm 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1392
Don't know about the Motorola MC6821.

But MOS 6520 appears to have only fully static latches insdie, so it is supposed to run at very low frequencies.
For a detailed MOS 6520 chip dissection, go here.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 18, 2024 2:57 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1399
Location: Scotland
Not strictly related to this but when I was building my 6507 Project I found I could move the wire on the breadboard from a 1Mhz oscillator to a 2Mhz oscillator (and back again) and other than it just stopping when the wire was unplugged for a couple of seconds the thing just kept on running as if nothing had happened.

These were Rockwell 6507s if that makes a difference...

I never tried it for more than a few seconds but it was mildly amusing at the time.

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 29 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: