CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

expanding 2 input into 3

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
chava



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message Send e-mail

expanding 2 input into 3
PostPosted: Sun Jan 25, 2004 6:09 am     Reply with quote

Hello
I have two inputs connected to a pic. I want to expand those two into 3
can you advise me with the chipes way of doing so?

The true is that I have 3 resistors and 3 on/off inputs.
all together: 6 !
I connected the 3 resistors to a 4052 (dual four channel multiplexer) . the fourth input of the 4052 (both x, y) has to pass a 4 stages signal to the pic througth the 4052.

the possibility of taking the 4051 is not posible
wa822



Joined: 17 Dec 2003
Posts: 4
Location: London UK

View user's profile Send private message

Expanded Inputs
PostPosted: Sun Jan 25, 2004 6:27 am     Reply with quote

A 74HC165 device can provide input expansion from 3 wires.

There is a driver for this device (74165.c) supplied by CCS with the code in the "Drivers" folder. Each device allows 8 inputs. They can be cascaded to give many inputs from the 3 pins.

regards
_________________
Andrew White
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group