rudy
Joined: 27 Apr 2008 Posts: 167
|
Changing slave address with jumper configuration |
Posted: Sat Sep 15, 2012 1:04 pm |
|
|
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. |
|