6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Wed Sep 25, 2024 5:19 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Apple II and 6522
PostPosted: Wed Oct 25, 2017 3:59 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
I wonder if it's worth checking the reset input of the VIA - or even tying it off inactive. A glitch on reset could cause your symptoms, I think.


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II and 6522
PostPosted: Wed Oct 25, 2017 9:55 pm 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 588
Location: Michigan, USA
You're not accessing the 65C22 registers via the 16 "device select" addresses associated with the "slot" you're using?


Top
 Profile  
Reply with quote  
 Post subject: Re: Apple II and 6522
PostPosted: Thu Oct 26, 2017 6:19 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1429
I'm not familiar with the Apple II, that's why I hesitated to post in this thread.

The interesting question is, if DDRA is set to $00, or if it contains a "random value" when getting corrupted.
If DDRA is set to 0 (all PA Bits are inputs), then BigEd is right about checking the /RESET signal.

If DDRA is set to something different from $00, then to me it looks like a timing problem, which happens during write cycles.

The WDC W65C22N datasheet says: address, /CS and R/W have to be stable >10ns before the rising edge of PHI2,
and they have to stay stable for >10ns after the falling edge of PHI2.

The old Rockwell R6522 datasheet says: for the R6522(1MHz) address, /CS and R/W have to be stable > 180ns
before the rising edge of PHI2, and they don't have to be stable after the falling edge of PHI2.

So if something goes wrong during a write cycle, it could happen at the rising edge or at the falling edge of PHI2.

;---

My suggestion would be to try an old 6522 chip like the R6522, and to see if DDRA is getting corrupted, too.
If yes, would it be possible to solder a wire to the PHI2 output of the 6502 for feeding the PHI2 input of the 6522 directly ?

The pinout of the 6526 isn't too different from the pinout of the 6522.
But for the 6526, the write timing is supposed to be more simple because it's only related to the falling edge of PHI2.
Maybe trying if the data direction register of a 6526 is getting corrupted too might be helpful...


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

All times are UTC


Who is online

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