6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 1:04 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Aug 15, 2014 8:40 pm 
Offline

Joined: Mon Aug 05, 2013 10:43 pm
Posts: 258
Location: Southampton, UK
While I could do some experiments to try to determine the behavoir I was wondering what best practise is.

I'd like to add a 65C22 to my micro for the purpose of:

:arrow: Generic parallel IO via a header; or
:arrow: 2 9 pin joystick ports

(Amongst other things, like the timers and serial input to a keyboard.)

I read (not on the datasheet) that inputs float high. So is it reasoanable to not use external pullups? With external pllups I can't make the port general purpose (ie. useable for outputs via the header when the joysticks aren't plugged in.)

If I need external pullups I'll probably scrub the joystick ports, since putting the 2 ports on general purpose headers sounds more useful.

_________________
8 bit fun and games: https://www.aslak.net/


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 15, 2014 9:00 pm 
Online
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
On non-WDC VIAs, inputs offer an LSTTL load. This is true even of 65c22's from Rockwell. An unconnected LSTTL input is basically high. The loading presents a problem for some applications. I definitely recommend using WDC's which not only have true CMOS inputs, but also bus-holding devices, so floating inputs are not a problem.

WDC's also have very strong output drivers. I have tested Rockwell and WDC 65c22 outputs here, and they are many times as strong as the data sheet says (and I believe the processor has the same output circuits). In my experiment, WDC's outputs were able to pull to within 0.8V of either rail with a 220-ohm resistor to the opposite rail, meaning a 19mA load, even pulling up, and give 50mA into a dead short. Rockwell's could pull down with 100mA into a dead short, but could not pull up as hard, not being symmetrical like WDC's.

_________________
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: Google [Bot] and 34 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: