6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 8:58 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jun 09, 2015 8:33 pm 
Offline

Joined: Sun Sep 28, 2014 3:40 pm
Posts: 2
Im newbie. a month ago I bought apatco kit to learn 65c02 programming. Fast question, does anyone can help me in Interfacing LED using push button switch to 6502 with some code?


Top
 Profile  
Reply with quote  
PostPosted: Tue Jun 09, 2015 9:46 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
Welcome.

What do you want the pushbutton to do? You could connect it from one of the 65c22 VIA port pins to ground, with a pull-up resistor to Vcc. It will need debouncing, but that can be done in software.

As for connecting the LED, it can go from one of the port pins of a 65c22 VIA to either Vcc or ground. (If to ground, put the LED's cathode toward ground. If to Vcc, put the LED's anode toward Vcc.) I would add a series resistor of at least 470 ohms if not 1K to keep the LED current (and port pin current) under control.

_________________
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  [ 2 posts ] 

All times are UTC


Who is online

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