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

Same SPI line but two ICs

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



Joined: 22 Dec 2004
Posts: 78

View user's profile Send private message

Same SPI line but two ICs
PostPosted: Tue Dec 13, 2005 10:39 pm     Reply with quote

Hi.. I am using 18F2550. And I want to use same SPI PINs for two
different ICs. For that I have used latch to handle one by one.
It seems one chip is working and other is not working.

Is it possible to communicate like that? Or I have to send "setup_spi()"
everytime for that perticular chip?

Thanks...
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Wed Dec 14, 2005 2:56 am     Reply with quote

Can you give some more information.

If you mean you have one device (the PIC) talking to two other SPI devices then... If the PIC is the master , then the SPI bus is connected to all devices and you use a spearate CS line from the PIC to each of the devices.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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