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

If using the hw SPI is the ss pin then free?

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








If using the hw SPI is the ss pin then free?
PostPosted: Tue Oct 13, 2009 1:42 pm     Reply with quote

When using the SPI hardware module:

SDI,SDO,SCk 3 pin mode. Is the SS pin the free to use as normal I/O?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 13, 2009 2:01 pm     Reply with quote

It should be available for normal i/o.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Wed Oct 14, 2009 1:03 am     Reply with quote

As an additional note:
The Slave Select pin is only active when the SPI hardware is used as a slave. In a master this pin is never used and free for normal I/O operations.

Don't place the SS_DISABLED define in your spi_setup call for a SPI master or it will create an invalid setup.
Torello



Joined: 29 Sep 2006
Posts: 120

View user's profile Send private message

PostPosted: Thu Oct 15, 2009 11:39 am     Reply with quote

Hi Guest,

Beware when you want to use this pin as an input!!

http://www.ccsinfo.com/forum/viewtopic.php?t=31562&highlight=

Edwin.
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