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 support@ccsinfo.com

Tri state input/output chip

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



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

Tri state input/output chip
PostPosted: Fri Jun 24, 2005 1:26 pm     Reply with quote

I am looking for a chip I can put on port d. I would like it to be in transparent mode or tri-state mode. The problem is I want different pins on port be to input and output,... set_tris_d(0b10011010).

Which chip can do both input and output in transparent mode. then switch to tri-stated. I was thinking 74HC573. Can this work in both input and output at the same time?


Last edited by treitmey on Fri Jun 24, 2005 2:39 pm; edited 1 time in total
Steve H.
Guest







PostPosted: Fri Jun 24, 2005 2:02 pm     Reply with quote

Tri state is really just input mode where you don't read the input, right? For port expansion I have used the Maxim MAX7301, it is an SPI device with pretty good drive levels. Fully programmable for bi-directional I/O.

Philips also makes a I2C device, but as I recall it only has week pullup on output not a true push/pull drive.

Regards,

Steve Hageman
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Jun 24, 2005 2:10 pm     Reply with quote

No. When I say tristate, I want say 8 of these on the port D and then use a 3-8 de-mux to pick the device. so 1 device is active and the rest are tristated.

Good idea the max7301, but I think that may be too slow.
I'll get a sample and experiment.

I think the closest is the 74HC245 transciever.
BUT that is all in or all out. NOT A MIX


Last edited by treitmey on Fri Jun 24, 2005 2:17 pm; edited 1 time in total
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 24, 2005 2:15 pm     Reply with quote

Quote:
I wanted the interface to (for example) a 12 key keypad
Why do you need an external chip to do this ? Why can't PortD do it ?
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Jun 24, 2005 2:19 pm     Reply with quote

I would like fast IO to say, my keypad, my lcd, my relays, my dip addresses, my wiegand reader(4 readers) ... I run out of pins fast,.. so perhaps the solution is a bigger uP.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Fri Jun 24, 2005 4:41 pm     Reply with quote

Bigger pic or have you thought about using another pic to do what you want.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Sat Jun 25, 2005 5:44 pm     Reply with quote

yes, I thought about that, not the cleanest, tho...
I'll use this as an excuse to get a bigger chip and lean something new.

(really thought the 18F452 would hold me for a while)
diogoc



Joined: 12 Feb 2008
Posts: 19

View user's profile Send private message Visit poster's website MSN Messenger

max7301
PostPosted: Sat Feb 21, 2009 8:13 pm     Reply with quote

I want use max7301 with spi interface. someone have some code example?

thanks
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