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

pic 18F2550 interrupts and I2c

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



Joined: 13 Jan 2018
Posts: 23
Location: Tun

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

pic 18F2550 interrupts and I2c
PostPosted: Sat Jan 13, 2018 6:31 pm     Reply with quote

hello ... i'm using a 18F2550 for my project and i wish to use I2C communication and external interrupts 0 and 1 in the same time ... YET SDA and INT0 are on the same pin and SCL and INT1 are on the same port also... (i need at least 2 external interrupts for the project) is there any solution please .. ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jan 13, 2018 6:45 pm     Reply with quote

In the #use i2c() statement, specify two other i/o pins that are available
in your design. The compiler will automatically use i2c routines that are
for software i2c.
eng.mohamedtoumi



Joined: 13 Jan 2018
Posts: 23
Location: Tun

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

PostPosted: Sat Jan 13, 2018 7:08 pm     Reply with quote

thank you for your response ... problem solved Smile

Last edited by eng.mohamedtoumi on Sat Jan 13, 2018 7:18 pm; edited 1 time in total
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