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

Changing slave address with jumper configuration

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



Joined: 27 Apr 2008
Posts: 167

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

Changing slave address with jumper configuration
PostPosted: Sat Sep 15, 2012 1:04 pm     Reply with quote

Hi.

I am planning to start a new development, probably, It will have one 16F877A as master and three others processors as slave over I2C line, and one RTC and one 256kb I2C memory also.

My question is if there is any way to configure the slaves addresses using two or three configurations jumpers instead of use something like this:

Code:

#include <16f877a.h>
#fuses HS,PUT,WDT,PROTECT,NOBROWNOUT,NOLVP,NOCPD
#use delay(clock=20000000, RESTART_WDT)
#use I2C (SLAVE, ADDRESS=0x12, SDA=PIN_B4, SCL= PIN_B6, SLOW, RESTART_WDT)


Thank you for help me up;

Regards.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Sep 15, 2012 2:31 pm     Reply with quote

Download the CCS manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
Do a search of the PDF for the word: slave

What's the first function that you find ? That's the one you want.
rudy



Joined: 27 Apr 2008
Posts: 167

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

PostPosted: Sat Sep 15, 2012 3:44 pm     Reply with quote

What a team!!!!!

Great.
Thanks a lot.
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