6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 12:27 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Aug 15, 2023 12:44 am 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
There are some things about the 6522 that I'm sure I'll never be able to recall from memory, and rather than scrolling back and forth in datasheets I decided to collect them all together into a one-page cheat sheet. I thought I'd share it in case it's useful to anyone, or in case anyone already has a better one.

It's not meant to be conclusive documentation, just enough to nudge the memory, reminding which bit is which, or which of the timer register reads and writes have IRQ flag side effects. I've given up trying to actually memorize that!

The diagrams are taken from a PDF of a badly-scanned Rockwell datasheet - but I used these because I liked their compactness compared to the WDC ones. It's good enough for my purposes I think, but also wouldn't be too hard to redraw.


Attachments:
File comment: 6522 quick reference cheat sheet
6522_quickreference.png
6522_quickreference.png [ 2.18 MiB | Viewed 3124 times ]
Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 15, 2023 8:38 am 
Offline
User avatar

Joined: Sat Jul 24, 2021 1:37 pm
Posts: 282
This is great, thanks for sharing!

_________________
BB816 Computer YouTube series


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 16, 2023 8:14 am 
Offline
User avatar

Joined: Wed Feb 13, 2013 1:38 pm
Posts: 586
Location: Michigan, USA
Very handy chart. Thank you.

The 6522 is a fun chip. I used one in a clock/calendar + parallel interface board for an OEM customer some years ago.


Attachments:
Clock-Port.JPG
Clock-Port.JPG [ 165.79 KiB | Viewed 3043 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 17, 2023 4:34 am 
Offline

Joined: Fri Feb 12, 2021 10:17 pm
Posts: 34
Yes, thank you !

_________________
Shaking out the dirty bits!

https://github.com/DonaldMoran


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 17, 2023 5:20 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3354
Location: Ontario, Canada
Nice work, George!

I'm attaching two somewhat similar documents which I cobbled together for my own use. Rather than being a general quick reference, they're just some collected notes, comparatively detailed. The first deals with Shift Register operation, and the second lists differences between the "N" and "S" versions of the WDC 6522's.

-- Jeff
Attachment:
via sr waves.gif
via sr waves.gif [ 263.06 KiB | Viewed 2968 times ]
Attachment:
differences etc.png
differences etc.png [ 94.08 KiB | Viewed 2968 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: Thu Aug 17, 2023 6:34 pm 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
Nice Jeff. The T2 diagrams there remind me of something that caught me out the other day - I had assumed that when I read or wrote to the SR register to start the transaction, it would immediately load the C2 counter from its 8-bit latch and start counting down from there, so that the first shift would occur T2CL cycles after the SR register was accessed. However, the WDC part at least actually appears to leave T2 counting from whatever 16-bit value it's already set to, and only reset it to the 8-bit latched value each time it expires. This makes some sense regarding complexity, but I don't think it was explicit in either datasheet, and isn't highlighted in the timing diagrams.

It means that if you want the first shift to happen soon then you need to set T2CH to a small value (probably zero) after setting T2CL appropriately. It also means that in addition to the option to change T2CL later in the operation (useful for skipping half a bit, for example), you can also use T2CH to cause a much longer wait before the first shift if you want to.


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: Hermes and 11 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: