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

Using #int_ssp for multi_master devices

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



Joined: 08 Jan 2011
Posts: 7

View user's profile Send private message

Using #int_ssp for multi_master devices
PostPosted: Thu Apr 21, 2011 5:07 am     Reply with quote

I have two pics and an eeprom on the same i2c line. Pics are multi_master. One of the pic reads analog inputs and then write it to the eeprom, the other pic reads the analog inputs from eeprom.

it works perfectly. but I realized that the pic reads from eeprom is so busy to do other works. I decided to use a ssp interrupt. So that pic only reads when there is an activity on the i2c line.

it didn't work. Can anyone help me about how to use ssp interrupt for multi master pics?

Code:

.
.
#use i2c(multi_master,sda=pin_c4,scl=pin_c3,fast=400000)
.
.
#int_ssp
void data_exists()
{
     output_high(pin_e2);
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 21, 2011 11:11 am     Reply with quote

Mark has multi-master code here, that uses #int_ssp:
http://www.ccsinfo.com/forum/viewtopic.php?t=22105
isikmurat06



Joined: 08 Jan 2011
Posts: 7

View user's profile Send private message

PostPosted: Fri Apr 22, 2011 6:10 am     Reply with quote

PCM programmer wrote:
Mark has multi-master code here, that uses #int_ssp:
http://www.ccsinfo.com/forum/viewtopic.php?t=22105


thanks so much...
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