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

Configuring a PIC as a master

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



Joined: 21 Mar 2006
Posts: 9

View user's profile Send private message

Configuring a PIC as a master
PostPosted: Tue Mar 21, 2006 8:33 am     Reply with quote

I have a PIC16F876A and I want to configure it as a Master PIC in I2C protocol, but not using the #use_i2c directive. Do I just edit the SPCOM3-0 BITS in the SSPCON1 Register?
mlosso1



Joined: 21 Mar 2006
Posts: 9

View user's profile Send private message

PostPosted: Tue Mar 21, 2006 11:45 am     Reply with quote

Nevermind, I think I answered my own question, can someone confirm this.
rberek



Joined: 10 Jan 2005
Posts: 207
Location: Ottawa, Canada

View user's profile Send private message

PostPosted: Tue Mar 21, 2006 11:59 am     Reply with quote

You always have the option of writing/reading the registers directly to do what you want. And yes, the SSPCON register would be the place to make this an I2C Master.
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