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

Is it possible to detect the state of SS when using the PIC

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



Joined: 13 Jan 2007
Posts: 91

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

Is it possible to detect the state of SS when using the PIC
PostPosted: Fri Apr 19, 2013 1:33 pm     Reply with quote

In a SPI slave using the PIC Hardware spi peripheral, is it possible to find out if SS went low for the current byte or was already low to begin with before the current byte was transferred, without hooking SS to a another separate PIC pin like INT?

This question is for a PIC16F87x and/or PIC18Fx550
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Apr 19, 2013 3:01 pm     Reply with quote

I had a look at the 18F4550 datasheet, chapter 19 - MSSP and according to what I could see in the 'block diagram' and text, there isn't any bit to read the status of *SS. It's internally tied to some logic....so I'm of the opinion you'll have to hardwire to another I/O pin to be a 'monitor'.

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Sat Apr 20, 2013 2:09 am     Reply with quote

On most chips, the pin is still readable as a standard input logic pin, when SS is enabled.

Best Wishes
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