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

SPI ISR

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



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

SPI ISR
PostPosted: Sun Apr 13, 2008 8:39 pm     Reply with quote

I am converting from I2C PIC Master/PIC Slave communications to SPI PIC Master/PIC Slave because I need more speed in the transfers than I2C.
I used the I2C ISR in the example files and that works well. However, when I look at the Ex_SPI_Slave.c example it does not use an interrupt routine. Is there an example of SPI ISR in another file or can I just modify the I2C routine and use the spi_data_is_in and instruction type being sent instead of i2c_isr_state?
Maybe if I use the interrupt I won't even need to monitor spi_data_is_in?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Apr 13, 2008 9:42 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=26888
bwhiten



Joined: 26 Nov 2003
Posts: 151
Location: Grayson, GA

View user's profile Send private message

PostPosted: Mon Apr 14, 2008 6:24 am     Reply with quote

Exactly what I was looking for. I did a search but never saw that particular post. Thanks again.
I will be using HW SPI on both ends of the link and using the Slave Select method to alert the slave of incoming.
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