6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 8:38 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Noob on 6522
PostPosted: Mon Aug 16, 2021 12:42 pm 
Offline

Joined: Wed Oct 18, 2017 1:26 am
Posts: 28
Can someone explain how to use the 6522 to a noob like me? Not exactly sure what it does and how it works.


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Aug 16, 2021 1:10 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Garth's primer is often a good place to start, in this case perhaps at
https://wilsonminesco.com/6502primer/IO_ICs.html

You'll notice it points you to the datasheets - always a good idea to have a datasheet in front of you, and to have familiarised yourself with it.

And, he notes that his Tip of the Day topic mentions many 6522 tricks:
viewtopic.php?f=7&t=342


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Aug 16, 2021 3:12 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8506
Location: Midwestern USA
xlar54 wrote:
Can someone explain how to use the 6522 to a noob like me? Not exactly sure what it does and how it works.

The 6522 (or 65C22, the current incarnation) is a general-purpose I/O device, incorporating two parallel I/O registers, one serial I/O register, two precision timers, and various control and status registers. Some of the possible uses of this device are:

  • Drive a Centronics printer.

  • Generate discrete outputs that can control a machine, turn on/off "lights" (LEDS, for example), start the morning coffee, etc.

  • Transfer data to/from another computer.

  • Act as an input or output to a MIDI device.

  • Acquire data for scientific purposes.

  • Accurately time events and cause the computer to do something at a certain point in time.

The site Ed referred you to can give you many more ideas. As always, the data sheet is your friend.

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Aug 16, 2021 3:38 pm 
Offline

Joined: Wed Oct 18, 2017 1:26 am
Posts: 28
Thanks. I will admit much of this is above my head right now, so even the datasheet isnt very helpful. But not giving up. Thanks for the replies!


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Aug 16, 2021 4:24 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
You might find good explanations in a nice old book about 6502 interfacing, for example on the Internet Archive...

Programming & interfacing the 6502, with experiments by De Jong, Marvin L
Programming the 6502 by Zaks, Rodnay


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Aug 16, 2021 6:22 pm 
Offline

Joined: Fri Jul 09, 2021 10:12 pm
Posts: 741
I'd suggest you focus on one bit of it at a time, don't try to learn it all at once. You could play with the timers for example, or the I/O ports, whatever you fancy - but you only really need to understand how each subsystem works independently for most things.


Top
 Profile  
Reply with quote  
 Post subject: Re: Noob on 6522
PostPosted: Mon Feb 07, 2022 6:24 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
xlar54, are you making progress?

_________________
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  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

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