Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Run out of Ports

 
Post new topic   Reply to topic    Forum Index -> Files
Author Message
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 14 June 2010, 20:19 PM    Post subject: Run out of Ports Reply with quote

I have a legacy product that I built and sold back in the late 80s and throughout the 90s. It was built around a MicroMint BCC-52 micro controller. Interfaced to the controller were two rotary shaft encoder with counts of 2048 or 4096 per revolution. These encoders were interfaced to a pair of HCTL-2000 quadrature decoder/counter interface ICs. Without going into detail, the -52 periodically read the counts of the two encoders and used that information to determine the azimuth and elevation angles of the telescope they were attached to.

Most of these systems are quite obsolete but have stood the test of time. Many are still working as designed. However I am starting to get calls from owners who are looking to upgrade their units. Since the telescope device is the most expensive and robust part of the system, I have been giving thought to simply replacing the controller hardware with
something a bit more modern and plug compatible with the telescope. I am considering a ZX-24. I find that I can still get the HCTL-2000 interfaces.

Each of these ICs outputs the current encoder counts as a pair of 8 bit words which means that I will have to use 8 I/O ports to read each -2000. I cannot afford to use 16 I/O ports as some will be needed to attend to other functions. Is there any solution to this dilemma?

Vic



HCTL-2000.pdf
 Description:

Download
 Filename:  HCTL-2000.pdf
 Filesize:  325.31 KB
 Downloaded:  1462 Time(s)

Back to top
twesthoff



Joined: 17 Mar 2006
Posts: 191
Location: Fredericksburg, VA

Posted: 14 June 2010, 21:02 PM    Post subject: Re: Run out of Ports Reply with quote

victorf wrote:

Each of these ICs outputs the current encoder counts as a pair of 8 bit words which means that I will have to use 8 I/O ports to read each -2000. I cannot afford to use 16 I/O ports as some will be needed to attend to other functions. Is there any solution to this dilemma?

Vic


Yes, theHCTL-2000 chips have tri-state outputs so you can parallel the D0-D7 outputs of both chips on one controller port. Then use 2 other I/O pins to select the chip you want with the ~OE pins (or 1 extra pin and an inverter). Fairly easy to do...
I can give you more specific help offline if you wish.
Tom W.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 14 June 2010, 21:02 PM    Post subject: Re: Run out of Ports Reply with quote

victorf wrote:
I cannot afford to use 16 I/O ports as some will be needed to attend to other functions. Is there any solution to this dilemma?
You could use a 40-pin or 44-pin ZX device. Alternately, AN-213 External Device Interfacing contains several ideas for expanding the number of available I/O pins.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> Files Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group