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

Software I2C PIN

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



Joined: 26 Feb 2005
Posts: 64

View user's profile Send private message

Software I2C PIN
PostPosted: Sun Jan 14, 2007 7:51 pm     Reply with quote

HI,

I'm going to use a PIC16F88 as I2C master. It has SSP hw device and not mssp. so I'm forced to use Software I2C routine instead of HW. should I use PINs B1 and B4 to implement my I2C software BUS or can I use whatever PIN i want to do this job? are there some PIN i shouldn't use?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 14, 2007 8:16 pm     Reply with quote

To find a pin description, look in the "Device Overview" section of the
16F88 data sheet. All PIC data sheets will describe the pins in that
section. It shows that pin RA5 is an input-only pin, so you shouldn't
try to use it for your software i2c master.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 14, 2007 11:40 pm     Reply with quote

I would use the SSP pins just in case you want the device to ever be a slave. Also, a future chip with the same pin out could have the hardware master and you might decide to use it later.
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